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

PowerShot SX210 IS - Porting Thread

  • 588 Replies
  • 199148 Views
*

Offline srsa_4c

  • ******
  • 4023
Re: PowerShot SX210 IS - Porting Thread
« Reply #570 on: 27 / April / 2013, 09:59:34 »
Advertisements
That script doesn't know about mode numbers which do not appear in CHDK source.
The unmapped mode numbers are:
16940, 33320, 33321, 33322
It's not impossible that some or all of these modes are not accessible from the Canon user interface, so if you can't find them, they are most probably useless anyway.

The source includes 2 of those mode numbers, but they are commented out (see the green lines)

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_MINIATURE_EFFECT,         16940  },   //New in sx210 ???
//   { MODE_SCN_FISH_EYE,         16939  },    //New in sx210 ???
//   { MODE_SCN_LOW_LIGHT,         16417 },    //New in sx210 ???
//   { MODE_SCN_SMART_SHUTTER,         33321 },    //New 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,       16417  }, //?? 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 srsa_4c

  • ******
  • 4023
Re: PowerShot SX210 IS - Porting Thread
« Reply #571 on: 27 / April / 2013, 10:09:13 »
Unless I'm terribly wrong, the script could not switch to the following modes, so either some of them are wrong or the mode change delay is not enough.

TRY                P   2 | TV   3 32771 STL  600ms CHANGE FAIL req   2 got 3
TRY VIDEO_COLOR_SWAP  14 | TV   3 32771 STL 1000ms CHANGE FAIL req  14 got 3
TRY   NIGHT_SNAPSHOT  36 | TV   3 32771 STL  570ms CHANGE FAIL req  36 got 3
TRY      SCN_FOLIAGE  38 | TV   3 32771 STL  510ms CHANGE FAIL req  38 got 3



... and I almost forgot:

Can you prove that CHDK's ISO override is effective under ISO 80 (i.e. the value under which flash crashes the camera)?
Use fixed aperture and shutter speed, constant lighting and constant scene. Set ISO override to 80, and then to a lower value.
Compare the JPEGs for brightness (use histogram for example).

« Last Edit: 27 / April / 2013, 10:56:33 by srsa_4c »

Re: PowerShot SX210 IS - Porting Thread
« Reply #572 on: 27 / April / 2013, 12:10:00 »
That script doesn't know about mode numbers which do not appear in CHDK source.
The unmapped mode numbers are:
16940, 33320, 33321, 33322
It's not impossible that some or all of these modes are not accessible from the Canon user interface, so if you can't find them, they are most probably useless anyway.

The source includes 2 of those mode numbers, but they are commented out (see the green lines)

Yes, the script displays the number, when in 'set cap mode test' you set option 'single'. Then, when you press shutter, it displays mode number, but for mode name it might show 'UNKNOWN'. The number is the same one shown with Debug Parameter/Props/Page 4/propcase 49.

I think I've tested all camera modes and here is what I've found:

There seem to be no 33321 or 33322. There is an error in the code for SCN_SMART_SHUTTER, it should be 33320 (instead of 33321), so I think it could be corrected and comment removed.
19640 is MODE_SCN_MINIATURE_EFFECT, so the comment can probably be removed too.
MODE_SCN_ISO_3200 is replaced in SX210 with MODE_SCN_LOW_LIGHT, 16417
MODE_SCN_AQUARIUM is replaced in SX210 with MODE_SCN_FISH_EYE, 16939
I can't find modes MODE_SCN_SUNSET and MODE_SCN_NIGHT_SCENE.

So in the end, I think this could be left like this:

Quote
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_MINIATURE_EFFECT,         16940  },   //New in sx210 ???
   { MODE_SCN_FISH_EYE,         16939  },    //Replaces MODE_SCN_AQUARIUM in sx210 ???
   { MODE_SCN_LOW_LIGHT,         16417 },    //Replaces  MODE_SCN_ISO_3200 in sx210 ???
   { MODE_SCN_SMART_SHUTTER,         33320 },    //New 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,       16417  }, //?? 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
};


Re: PowerShot SX210 IS - Porting Thread
« Reply #573 on: 27 / April / 2013, 14:00:27 »
Unless I'm terribly wrong, the script could not switch to the following modes, so either some of them are wrong or the mode change delay is not enough.

TRY                P   2 | TV   3 32771 STL  600ms CHANGE FAIL req   2 got 3
TRY VIDEO_COLOR_SWAP  14 | TV   3 32771 STL 1000ms CHANGE FAIL req  14 got 3
TRY   NIGHT_SNAPSHOT  36 | TV   3 32771 STL  570ms CHANGE FAIL req  36 got 3
TRY      SCN_FOLIAGE  38 | TV   3 32771 STL  510ms CHANGE FAIL req  38 got 3

You are true. The issue here was with the delay. I've set the mode change delay in the script to 300ms, and it passes all modes. See log attached.

Quote

... and I almost forgot:

Can you prove that CHDK's ISO override is effective under ISO 80 (i.e. the value under which flash crashes the camera)?
Use fixed aperture and shutter speed, constant lighting and constant scene. Set ISO override to 80, and then to a lower value.
Compare the JPEGs for brightness (use histogram for example).

I've taken two pictures, with ISO set to 80 in OSD.
1/100 F3.1 ISO Override 60 --> EXIF ISO 80
1/100 F3.1 ISO Override 10 --> EXIF ISO 16

The second one is slightly darker (not very noticeable), with histogram slightly shifted to the left. See histogram comparison attached.
So, I think real ISO value obtained could be marginally lower than 80.
Note that crash (only with flash on) occurs when ISO Override is less than 60 (i.e. 50 or lower). With Override value of 60 you get EXIF ISO 80, and camera is stable.


*

Offline srsa_4c

  • ******
  • 4023
Re: PowerShot SX210 IS - Porting Thread
« Reply #574 on: 27 / April / 2013, 21:38:21 »
@mike2k8

I think your tests prove that autobuild can be enabled for this camera, with the following changes:
- minimum ISO override restricted to 60 (the histogram you provided only shows a very marginal difference)
- the above modemap corrections

*

Offline srsa_4c

  • ******
  • 4023
Re: PowerShot SX210 IS - Porting Thread
« Reply #575 on: 30 / April / 2013, 17:24:22 »
autobuild can be enabled for this camera, with the following changes:
- minimum ISO override restricted to 60 (the histogram you provided only shows a very marginal difference)
- the above modemap corrections
Done, changesets 2744 and 2745.
Builds should appear shortly for CHDK stable and development versions.

Re: PowerShot SX210 IS - Porting Thread
« Reply #576 on: 08 / February / 2014, 12:43:19 »
If you are the owner of an SX210is we need your help improving the manual focus / subject distance override capability of CHDK.

Please read the instructions posted here < Link to Testing Instructions > and test your camera.

TIA.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: PowerShot SX210 IS - Porting Thread
« Reply #577 on: 11 / February / 2014, 20:39:14 »
I'm using: trunk-3349.zip

CHDK Settings->OSD Settings->Miscellaneous Values->Show Misc Values [Shoot]
Show Zoom [.]
Zoom Value [EFL]

 when  half press (camera_info.state.is_shutter_half_press) but it doesn't work. Why?


Re: PowerShot SX210 IS - Porting Thread
« Reply #578 on: 12 / February / 2014, 10:05:20 »
I'm using: trunk-3349.zip

CHDK Settings->OSD Settings->Miscellaneous Values->Show Misc Values [Shoot]
Show Zoom [.]
Zoom Value [EFL]

 when  half press (camera_info.state.is_shutter_half_press) but it doesn't work. Why?

@philmoz
  This is a bug in trunk-3349, gui_osd.c in 371:"conf.show_values==SHOW_HALF"  changed to "conf.show_values==2". SHOW_HALF==3!=Miscellaneous Values->Show Misc Values [Shoot].
Show Misc Values [ ]={ "Don't", "Always", "Shoot"}={0,1,2}

*

Offline philmoz

  • *****
  • 3128
    • Photos
Re: PowerShot SX210 IS - Porting Thread
« Reply #579 on: 12 / February / 2014, 19:14:43 »
I'm using: trunk-3349.zip

CHDK Settings->OSD Settings->Miscellaneous Values->Show Misc Values [Shoot]
Show Zoom [.]
Zoom Value [EFL]

 when  half press (camera_info.state.is_shutter_half_press) but it doesn't work. Why?

@philmoz
  This is a bug in trunk-3349, gui_osd.c in 371:"conf.show_values==SHOW_HALF"  changed to "conf.show_values==2". SHOW_HALF==3!=Miscellaneous Values->Show Misc Values [Shoot].
Show Misc Values [ ]={ "Don't", "Always", "Shoot"}={0,1,2}

Thanks for the report, it should be fixed in revision 3357.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)

 

Related Topics