SX430 - This will be my first porting Attempt - page 8 - DryOS Development - CHDK Forum

SX430 - This will be my first porting Attempt

  • 166 Replies
  • 179387 Views
Re: SX430 - This will be my first porting Attempt
« Reply #70 on: 12 / November / 2018, 15:26:50 »
Advertisements
i am very sorry i was not available the last 1 and a half days...

yes i am ready to do what ever is necessary
i do not remember but long back i think i did do a search on one of the older models for one particular propcase

pls give me a few hours, its already almost 2am so i should be able to the excercise in a few hours

thanks ... and sorry once again for the delay

Re: SX430 - This will be my first porting Attempt
« Reply #71 on: 12 / November / 2018, 15:31:21 »
You may (or may not  ;) ) find the chdkptp propcase tools useful for verifying the propcase values;

You can load them with
Code: [Select]
!require'extras/devutil'.init_cli()
after that, dpget reads propcases 0-1000. dpcmp gets the values again, compares the values with the last dpget, outputs the changed values.

With this, you can do a dpget, change a setting, and then do a dpcmp to see what changed.  Note that some unrelated values may change every half press (or for other reasons) so you should verify that changes are reproducible if it's not obvious: If you change shutter speed the value of the shutter speed prop should always be the same for a given shutter speed.

For props that need a half press to update, you can include lua code in the dpget command like
Code: [Select]
dpcmp -c='press "shoot_half" sleep(500)'

Changes between propsets tend be values being added and removed. E.g. if PROPCASE_TV is 123 in one propset, and 124 in another, then all the subsequent IDs will likely by +1 until the next change. If you guess a value that you can't verify please note it in the file.

Note that the meanings of values may also change, e.g. the PROPCASE_RESOLUTION value for M1 jpeg size might be 3 in one propset and 2 in another.

Most of the exposure props are in APEX*96 units, so it can be helpful to refer to APEX http://dougkerr.net/Pumpkin/#APEX to verify that you have the right value. E.g. if you are looking at a shutter speed value, 1/2 second should be 96.

i will have a look at the link later .... but i think a quick scan using the misc tools in CHDK menu .... would be more fruitful.... in the initial stages.... at least it would require less study of new material ... so i will go thru the excercise .... in a few hours ....

Re: SX430 - This will be my first porting Attempt
« Reply #72 on: 13 / November / 2018, 12:03:42 »
i hope i am doing this right

here is the Shooting Mode

Code: [Select]

setting    propcase           
Shooting Mode    56    57   
possible values
            P    32773
            Auto    32768
            Live    33346
            Portrait    32790
            Face Self Timer    33333
            LowLight    32814
            MonoChrome    33344
            FishEye    33336
            ToyCamera    33340
            Miniature    33337
            SuperVivid    33331
            Poster    33332
            FireWorks    32800
            LongShutter    32775

 

Re: SX430 - This will be my first porting Attempt
« Reply #73 on: 13 / November / 2018, 12:45:13 »
these are the non zero values.... i hope it is ok to go on increasing to find iso wb etc

Code: [Select]
5    1   
8    1   
9    47185920   
12    1   
21    1   
29    384   
65    1   
66    1   
69    65537   
71    1   
73    1573    changes on half press Focus?
79    64955    changes on half press Focus?
81    62464   
87    192   
94    124   
95    93   
101    5152   
103    1   
110    1   
113    5152   
114    1   
116    64   
119    9   
121    15728960   
122    2   
124    1   
132    1    momentarily becomes 17 at half press returns to 1 is it status of AF LED
135    1   
136    64   



*

Online reyalp

  • ******
  • 12156
Re: SX430 - This will be my first porting Attempt
« Reply #74 on: 13 / November / 2018, 13:13:49 »
these are the non zero values.... i hope it is ok to go on increasing to find iso wb etc
You need to find out which value is which. The shooting modes you listed look reasonable.

For things like TV and AV, half press and find the propcase values that correspond to the values on the OSD. The propcase values are in APEX units (described in the PDF I linked earlier) multiplied by 96, so for example 1/125th = 7*96 = 672 (that's actually 1/128, but usually displayed as 1/125).

The propcase numbers will likely be similar to other recent known propsets, so you can start by looking at nearby values. E.g. in propset 10, PROPCASE_AV is 23. So AV on your camera is likely somewhere in the 20s.
Don't forget what the H stands for.

Re: SX430 - This will be my first porting Attempt
« Reply #75 on: 13 / November / 2018, 13:32:12 »
these are the non zero values.... i hope it is ok to go on increasing to find iso wb etc
You need to find out which value is which. The shooting modes you listed look reasonable.

For things like TV and AV, half press and find the propcase values that correspond to the values on the OSD. The propcase values are in APEX units (described in the PDF I linked earlier) multiplied by 96, so for example 1/125th = 7*96 = 672 (that's actually 1/128, but usually displayed as 1/125).

The propcase numbers will likely be similar to other recent known propsets, so you can start by looking at nearby values. E.g. in propset 10, PROPCASE_AV is 23. So AV on your camera is likely somewhere in the 20s.

ok .. will do
however before that i am going thru the list to find those that are obvious
here is an updated list (posting just in case someone sees something familiar)
Code: [Select]
5    1   
8    1   
9    47185920   
12    1   
21    1   
29    384   
65    1   
66    1   
69    65537   
71    1   
73    1573    changes on half press Focus?
79    64955    changes on half press Focus?
81    62464   
87    192   
94    124   
95    93   
101    5152   
103    1   
110    1   
113    5152   
114    1   
116    64   
119    9   
121    15728960   
122    2   
124    1   
132    1    momentarily becomes 17 at half press returns to 1 is it status of AF LED
135    1   
136    64   
141    1   
150    1   
152    2    becomes 0 when flash raised
158    200    ISO MODE
163    1869504835   
166    2    Metering Mode :0Evaluative,2Center,1Spot
167    47   
175    1000    FrameRate?
176    0=vga 1=hd    video mode
179    2   
180    1   
191    -7995392   
192    -7936785   
193    -7936785   
196    3    MY_COLORS
208    0    is this light value seems to vary with light not distance from 0 to 300 to 33k to 50k (ND?)
218    0    0 becomes 1 at half press seems to be focus setteled ?- becomes 1 even if focus is not achieved
219    64   

Re: SX430 - This will be my first porting Attempt
« Reply #76 on: 13 / November / 2018, 14:18:26 »
Code: [Select]
222    1   
225    1   
230    5    RESOLUTION
231    90    ORIENTATION_SENSOR 0,90,270, doesn’t give 180 on upside down
236    1    TIMER_MODE
237    2000    TIMER_DELAY
258    955    changes on half press - is this distance 1573 when focus beeps once varies when there is proper focus
259    480   
260    411   
263    0-6    seems to be digital zoom, 1.6x=2,2x=3,
264    65   
265    0-126    OPTICAL_ZOOM_POSITION
275    209    tv ?   0=1"?
276    209    tv ?
277    567    av ?   f3.5?
278    65504   
279    541   
282    1192525760   
283    3    WB_MODE
284    923    WB_ADJ  ?
302    9   
311        ASPECT_RATIO
314    0-1    turns 1 at half press
315    262145-0   
321  1
323   47185920


that seems to end round 1
will check the whole thing once more and verify

*

Offline srsa_4c

  • ******
  • 4031
Re: SX430 - This will be my first porting Attempt
« Reply #77 on: 13 / November / 2018, 18:41:46 »
This is what I believe propset 11 should look like, compared to propset 10
Code: [Select]
                                PS 10 PS 11  offset

PROPCASE_AE_LOCK                3     3      0
PROPCASE_AF_ASSIST_BEAM         5     5      0
PROPCASE_REAL_FOCUS_MODE        141   142    1
PROPCASE_AF_FRAME               8     8      0
PROPCASE_AF_LOCK                11    11     0
PROPCASE_CONTINUOUS_AF          12    12     0
PROPCASE_FOCUS_STATE            18    18     0
PROPCASE_AV2                    22    22     0
PROPCASE_AV                     23    23     0
PROPCASE_MIN_AV                 28    28     0
PROPCASE_USER_AV                29    29     0
PROPCASE_BRACKET_MODE           33    33     0
PROPCASE_BV                     40    40     0
PROPCASE_SHOOTING_MODE          55    56     1
PROPCASE_CUSTOM_SATURATION      62    63     1
PROPCASE_QUALITY                64    65     1
PROPCASE_CUSTOM_CONTRAST        66    67     1
PROPCASE_FLASH_SYNC_CURTAIN     71    72     1
PROPCASE_SUBJECT_DIST2          72    73     1
PROPCASE_DELTA_SV               86    87     1
PROPCASE_DIGITAL_ZOOM_MODE      99    100    1
PROPCASE_DIGITAL_ZOOM_POSITION  103   104    1
PROPCASE_DRIVE_MODE             110   111    1
PROPCASE_OVEREXPOSURE           111   112    1
PROPCASE_DISPLAY_MODE           113   114    1
PROPCASE_EV_CORRECTION_1        115   116    1
PROPCASE_FLASH_ADJUST_MODE      129   130    1
PROPCASE_FLASH_FIRE             130   131    1
PROPCASE_FLASH_EXP_COMP         135   136    1
PROPCASE_FOCUS_MODE             141   142    1
PROPCASE_FLASH_MANUAL_OUTPUT    149   150    1
PROPCASE_FLASH_MODE             151   152    1
PROPCASE_IS_MODE                153   154    1
PROPCASE_ISO_MODE               157   158    1
PROPCASE_METERING_MODE          165   166    1
PROPCASE_VIDEO_FRAMERATE        175   176    1
PROPCASE_VIDEO_RESOLUTION       178   179    1
PROPCASE_CUSTOM_BLUE            184   185    1
PROPCASE_CUSTOM_GREEN           185   186    1
PROPCASE_CUSTOM_RED             186   187    1
PROPCASE_CUSTOM_SKIN_TONE       187   188    1
PROPCASE_MY_COLORS              195   196    1
PROPCASE_ND_FILTER_STATE        203   204    1
PROPCASE_OPTICAL_ZOOM_POSITION  206   207    1
PROPCASE_EXPOSURE_LOCK          217   218    1
PROPCASE_EV_CORRECTION_2        218   219    1
PROPCASE_IS_FLASH_READY         219   220    1
PROPCASE_IMAGE_FORMAT           221   222    1
PROPCASE_RESOLUTION             229   230    1
PROPCASE_ORIENTATION_SENSOR     230   231    1
PROPCASE_TIMER_MODE             234   236    2
PROPCASE_TIMER_DELAY            235   237    2
PROPCASE_CUSTOM_SHARPNESS       236   238    2
PROPCASE_SUBJECT_DIST1          256   258    2
PROPCASE_SV_MARKET              257   259    2
PROPCASE_TV2                    273   275    2
PROPCASE_TV                     274   276    2
PROPCASE_USER_TV                276   278    2
PROPCASE_WB_MODE                281   283    2
PROPCASE_WB_ADJ                 282   284    2
PROPCASE_SERVO_AF               308   310    2
PROPCASE_ASPECT_RATIO           309   311    2
PROPCASE_SV                     356   358    2
PROPCASE_TIMER_SHOTS            386   388    2
PROPCASE_SHOOTING_STATE         361   363    2
Based on: propcases found by sigfinder, PROPCASE_SHOOTING_MODE from ntstatic and comparing disassemblies of ixus175 and sx430. Propcases commented out in propset10.h are not in the list.
Disasm parts used (in case someone's interested):
ixus175 100a, 0xFF83D7C8- vs. sx430 100b 0xFF04098C-
ixus175 100a, 0xFF870770- vs. sx430 100b 0xFF079BA8-

Of course, it's recommended to verify these values.


Re: SX430 - This will be my first porting Attempt
« Reply #78 on: 14 / November / 2018, 00:33:32 »
This is what I believe propset 11 should look like, compared to propset 10
Code: [Select]
                                PS 10 PS 11  offset

PROPCASE_AE_LOCK                3     3      0
PROPCASE_AF_ASSIST_BEAM         5     5      0
PROPCASE_REAL_FOCUS_MODE        141   142    1
PROPCASE_AF_FRAME               8     8      0
PROPCASE_AF_LOCK                11    11     0
PROPCASE_CONTINUOUS_AF          12    12     0
PROPCASE_FOCUS_STATE            18    18     0
PROPCASE_AV2                    22    22     0
PROPCASE_AV                     23    23     0
PROPCASE_MIN_AV                 28    28     0
PROPCASE_USER_AV                29    29     0
PROPCASE_BRACKET_MODE           33    33     0
PROPCASE_BV                     40    40     0
PROPCASE_SHOOTING_MODE          55    56     1
PROPCASE_CUSTOM_SATURATION      62    63     1
PROPCASE_QUALITY                64    65     1
PROPCASE_CUSTOM_CONTRAST        66    67     1
PROPCASE_FLASH_SYNC_CURTAIN     71    72     1
PROPCASE_SUBJECT_DIST2          72    73     1
PROPCASE_DELTA_SV               86    87     1
PROPCASE_DIGITAL_ZOOM_MODE      99    100    1
PROPCASE_DIGITAL_ZOOM_POSITION  103   104    1
PROPCASE_DRIVE_MODE             110   111    1
PROPCASE_OVEREXPOSURE           111   112    1
PROPCASE_DISPLAY_MODE           113   114    1
PROPCASE_EV_CORRECTION_1        115   116    1
PROPCASE_FLASH_ADJUST_MODE      129   130    1
PROPCASE_FLASH_FIRE             130   131    1
PROPCASE_FLASH_EXP_COMP         135   136    1
PROPCASE_FOCUS_MODE             141   142    1
PROPCASE_FLASH_MANUAL_OUTPUT    149   150    1
PROPCASE_FLASH_MODE             151   152    1
PROPCASE_IS_MODE                153   154    1
PROPCASE_ISO_MODE               157   158    1
PROPCASE_METERING_MODE          165   166    1
PROPCASE_VIDEO_FRAMERATE        175   176    1
PROPCASE_VIDEO_RESOLUTION       178   179    1
PROPCASE_CUSTOM_BLUE            184   185    1
PROPCASE_CUSTOM_GREEN           185   186    1
PROPCASE_CUSTOM_RED             186   187    1
PROPCASE_CUSTOM_SKIN_TONE       187   188    1
PROPCASE_MY_COLORS              195   196    1
PROPCASE_ND_FILTER_STATE        203   204    1
PROPCASE_OPTICAL_ZOOM_POSITION  206   207    1
PROPCASE_EXPOSURE_LOCK          217   218    1
PROPCASE_EV_CORRECTION_2        218   219    1
PROPCASE_IS_FLASH_READY         219   220    1
PROPCASE_IMAGE_FORMAT           221   222    1
PROPCASE_RESOLUTION             229   230    1
PROPCASE_ORIENTATION_SENSOR     230   231    1
PROPCASE_TIMER_MODE             234   236    2
PROPCASE_TIMER_DELAY            235   237    2
PROPCASE_CUSTOM_SHARPNESS       236   238    2
PROPCASE_SUBJECT_DIST1          256   258    2
PROPCASE_SV_MARKET              257   259    2
PROPCASE_TV2                    273   275    2
PROPCASE_TV                     274   276    2
PROPCASE_USER_TV                276   278    2
PROPCASE_WB_MODE                281   283    2
PROPCASE_WB_ADJ                 282   284    2
PROPCASE_SERVO_AF               308   310    2
PROPCASE_ASPECT_RATIO           309   311    2
PROPCASE_SV                     356   358    2
PROPCASE_TIMER_SHOTS            386   388    2
PROPCASE_SHOOTING_STATE         361   363    2
Based on: propcases found by sigfinder, PROPCASE_SHOOTING_MODE from ntstatic and comparing disassemblies of ixus175 and sx430. Propcases commented out in propset10.h are not in the list.
Disasm parts used (in case someone's interested):
ixus175 100a, 0xFF83D7C8- vs. sx430 100b 0xFF04098C-
ixus175 100a, 0xFF870770- vs. sx430 100b 0xFF079BA8-

Of course, it's recommended to verify these values.

thank you .... i will try to verify these values

Re: SX430 - This will be my first porting Attempt
« Reply #79 on: 14 / November / 2018, 02:50:10 »
All Verified Properties YC=Yes but see Comment (only the last 3)

PS10PS11OffsetVerifiedRemarks
PROPCASE_OPTICAL_ZOOM_POSITION
206
207
1
Y0-126 (prop 265 seems to be the same)
PROPCASE_SHOOTING_STATE
361
363
2
Y0-normal, 2 half press, 3 shooting ?
PROPCASE_DIGITAL_ZOOM_POSITION
103
104
1
YProp 263 seems to be the same
PROPCASE_SHOOTING_MODE
55
56
1
Ysame as 57
PROPCASE_FLASH_FIRE
130
131
1
YSeems Right
PROPCASE_IS_MODE
153
154
1
YSeems Right
PROPCASE_IS_FLASH_READY
219
220
1
YSeems Right
PROPCASE_TV2
273
275
2
YSeems Right
PROPCASE_TV
274
276
2
YSeems Right
PROPCASE_WB_ADJ
282
284
2
YSeems Right
PROPCASE_AF_ASSIST_BEAM
5
5
0
Y
PROPCASE_CONTINUOUS_AF
12
12
0
Y
PROPCASE_FOCUS_STATE
18
18
0
Y
PROPCASE_AV2
22
22
0
Y
PROPCASE_AV
23
23
0
Y
PROPCASE_QUALITY
64
65
1
Y
PROPCASE_SUBJECT_DIST2
72
73
1
Y
PROPCASE_DRIVE_MODE
110
111
1
Y
PROPCASE_DISPLAY_MODE
113
114
1
Y
PROPCASE_EV_CORRECTION_1
115
116
1
Y
PROPCASE_FLASH_MODE
151
152
1
Y
PROPCASE_ISO_MODE
157
158
1
Y
PROPCASE_METERING_MODE
165
166
1
Y
PROPCASE_MY_COLORS
195
196
1
Y
PROPCASE_RESOLUTION
229
230
1
Y
PROPCASE_ORIENTATION_SENSOR
230
231
1
Y
PROPCASE_TIMER_MODE
234
236
2
Y
PROPCASE_TIMER_DELAY
235
237
2
Y
PROPCASE_SUBJECT_DIST1
256
258
2
Y
PROPCASE_WB_MODE
281
283
2
Y
PROPCASE_SERVO_AF
308
310
2
Y
PROPCASE_ASPECT_RATIO
309
311
2
Y
PROPCASE_DIGITAL_ZOOM_MODE
99
100
1
YC0=off or standard, 2=1.6x, 3=2x (Prop 263 seems to be more comprehensive )
PROPCASE_VIDEO_RESOLUTION
178
179
1
YC176 and 179 [VGA: 176=0, 179=2, HD:176=1,179=4]
PROPCASE_AF_FRAME
8
8
0
YCCenter:1, Face:2, Tracking:2

 

Related Topics