PowerShot SX210 IS - Porting Thread - page 20 - General Discussion and Assistance - CHDK Forum

PowerShot SX210 IS - Porting Thread

  • 589 Replies
  • 325078 Views
Re: PowerShot SX210 IS - Porting Thread
« Reply #190 on: 05 / September / 2010, 12:24:16 »
Advertisements
I'm working on the keymap now.  BTW the chrome frame in IE works nicely if you don't mind using it.
Canon Models - SD300, SD780, & SX210

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #191 on: 05 / September / 2010, 12:28:19 »
Quote
I'm working on the keymap now.  BTW the chrome frame in IE works nicely if you don't mind using it.
Ok, I allready send the request to join your wave.

Have you finished the boot.c?

Re: PowerShot SX210 IS - Porting Thread
« Reply #192 on: 05 / September / 2010, 12:33:09 »
Posted new files.  The boot.c is in the new style and the keymap is updated.  As for when multiple values change it is usually a compounding effect.  Such as when you hit full_shutter you are actually doing a half_shutter + full_shutter (they show as 2 different bits)   The keymasks are a OR of all values we update.

The new kbd.c is on the wave.  

You can edit the Wave now btw.  Just double click in the main part and it will ask if you wish to edit.  Then click the done buttone once edits complete.
« Last Edit: 05 / September / 2010, 13:20:20 by HarpoMa »
Canon Models - SD300, SD780, & SX210

Re: PowerShot SX210 IS - Porting Thread
« Reply #193 on: 05 / September / 2010, 13:20:44 »
Working on a decent colour palette.
Canon Models - SD300, SD780, & SX210

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #194 on: 05 / September / 2010, 13:58:17 »
Good work Harpoma,

Testing so far:
-hangs on load script file
-hangs or black screen on making a picture (sometimes)
-picture taken is blury
-no raw
-hangs of filebrowser 

->maybe all the file stuff is related to some wrong address in stubs???

-About the zoom, I made some calculations for main.c and, maybe the 392 is no acurate enough but:

// Focal length range is 5.0 - 70,0 mm, 27.3 - 392 in 35-mm equivalent.
// So, CF_EFL = 27.3/5.0*10000=54600 or392/70*10000=56000
// diff = 56000 - 54600 = 1400, split it 1400 / 2 = 700
// add to base 56000 + 700 = 56700
// divide by 10 to avoid overflow in get_effective_focal_length()
#define CF_EFL  5670

I don't know if we need to change also the  fl_tbl[]  and the zoompoints
« Last Edit: 05 / September / 2010, 15:53:18 by asm1989 »

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #195 on: 05 / September / 2010, 16:33:51 »
Solved the hang of filebrowser
-I trace The hang on filebrower to gui_fselect_init >gui_fselect_read_dir
and it hangs on   closedir(d);

So the address was wrong for this one.

This is the good one:
NHSTUB(closedir, 0xFFAA1B7C);



*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #196 on: 06 / September / 2010, 11:35:34 »
Got most of the  modemap

some are the same as in sx200

Code: [Select]
static const CapturemodeMap modemap[] = {
{ MODE_AUTO,               32768  },
{ MODE_P,                  32772  },
{ MODE_TV,                 32771  },
{ MODE_AV,                 32770  },
{ MODE_M,                  32769  },
{ MODE_EASY,               33314  }, // Changed in SX210
{ MODE_PORTRAIT,           32783  }, // Changed in SX210
{ MODE_NIGHT_SNAPSHOT,     32781  }, // Changed in SX210
{ MODE_LANDSCAPE,          32782  }, // Changed in SX210
{ MODE_VIDEO_COLOR_ACCENT, 2610   }, //??
{ MODE_VIDEO_COLOR_SWAP,   2611   }, //??
{ MODE_VIDEO_STD,          2612   },// Changed in SX210
{ MODE_KIDS_PETS,          32786  },// Changed in SX210
{ MODE_INDOOR,             32787  },// Changed in SX210

{ MODE_SCN_SUNSET,         16402  },   //??
{ MODE_SCN_NIGHT_SCENE,    16398  }, //??
{ MODE_SCN_FIREWORK,       16408  },// Changed in SX210
{ MODE_SCN_BEACH,          16407  },// Changed in SX210
{ MODE_SCN_AQUARIUM,       16939  },// ??? Is it fisheye?
{ MODE_SCN_FOLIAGE,        16405  },// Changed in SX210
{ MODE_SCN_SNOW,           16406  },// Changed in SX210
{ MODE_SCN_ISO_3200,       16413  }, //?? Is it lowlight
{ MODE_SCN_COLOR_ACCENT,   16925  }, // Changed in SX210?
{ MODE_SCN_COLOR_SWAP,     16926  }, // Changed in SX210
{ MODE_SCN_STITCH,         16908  }  // Changed in SX210
};

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #197 on: 06 / September / 2010, 12:00:09 »
Now the apertures:
Code: [Select]
const ApertureSize aperture_sizes_table[] = {
{  9, 322, "3.1" },
                { 10, 352, "3.5" },
{ 11, 384, "4.0" },
{ 12, 416, "4.5" },
{ 13, 448, "5.0" },
{ 14, 480, "5.6" },
{ 15, 512, "6.3" },
{ 16, 544, "7.1" },
{ 17, 576, "8.0" } 
};

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #198 on: 07 / September / 2010, 16:05:24 »
Keep testing,

No news on:
-Blurry image (looks like the shutter is opened more time than expected???)
-only JPG
-Crash on script
-Crash taking picture if AV 4.0 or less sometimes?? , dont know why yet?
-no raw file saved

-> Harpoma, do you have the same results?


But If I change this, at least it dosnt crash with raw enabled:

In *hook_raw_image_addr()
Code: [Select]
//return (char*)(0x41DB3B80);
return (char*) (*(int*)(0x3310+0x18) ? 0x43289400 : 0x415D7CC0);   //0x3310 at FF880698 others at FF86AA48

Using the two buffers like in sx10

instead of
Code: [Select]
//return (char*)(0x41DB3B80);

Edit: Updated testing
« Last Edit: 08 / September / 2010, 14:27:12 by asm1989 »

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #199 on: 08 / September / 2010, 12:19:03 »
Another Beta Binaries and the latest sources
http://es.drop.io/sx210is_platformv01

Use at your own risk, in fact, no real functionaly, and report back >  sx210isCHDKbeta002.zip

Also you have the latest sources with the "includes" too  >  Sourcesx210isASM1989-v.06.zip

 

Related Topics


SimplePortal © 2008-2014, SimplePortal