EOS M3 porting - page 28 - DryOS Development - CHDK Forum

EOS M3 porting

  • 746 Replies
  • 427594 Views
*

Offline srsa_4c

  • ******
  • 4451
Re: EOS M3 porting
« Reply #270 on: 02 / February / 2017, 11:28:45 »
Advertisements
Could you try to run rawopint on the M10, just a couple of shoot, and post the log file….
Are you looking for something specific (such as script setup / scene type), or just some random shots? Please head over to the m10 thread with the answer (this is off-topic here).

*

Offline reyalp

  • ******
  • 14126
Re: EOS M3 porting
« Reply #271 on: 02 / February / 2017, 23:48:27 »
FWIW, market and real ISO seems to be equal on the m10.
If they are equal, the defines should be like G7X, not the defaults like the M3 port.
Don't forget what the H stands for.

*

Offline c_joerg

  • *****
  • 1251
Re: EOS M3 porting
« Reply #272 on: 06 / February / 2017, 13:51:12 »
The SV propcases should be pretty easy to identify and verify. When you set the ISO to a specific setting in the UI, they will change, and SV_MARKET should be the APEX96 value of the set ISO. The SV value will be similar, either identical or offset by some mostly fixed APEX96 value. The difference between SV and SV_MARKET needs to be found and set in platform_camera.h if it isn't the default.

DELTA_SV can be found in camera auto ISO mode, where SV_MARKET + DELTA_SV should equal APEX96 of the camera chosen ISO value. The SV_MARKET in this case will be the CAM_MARKET_ISO_BASE value, which might also need to be overridden.
Not sure if I really understood the whole stuff…
I did some testing with ISO settings in the Canon user interface (UI)
I set ISO in Tv Mode to ISO100, ISO200, ISO400, ISO800 and ISO1600.


Code: [Select]
press("shoot_half")
repeat
   sleep(10)
until get_shooting() == true
sv96_prop = get_prop(props.SV)
sv96_get  = get_sv96()
release("shoot_half")

print("sv96_prop:",sv96_prop,"/",sv96_to_iso(sv96_prop),"; sv96_get:",sv96_get,"/",sv96_to_iso(sv96_get))

Update:
I’m a little bit confused:
For ISO100 I got SV96=480 and not 412 difference 68
For ISO200 I got SV96=576 and not 508 difference 68
For ISO400 I got SV96=672 and not 604 difference 68
Is this a mismatch?

Update 2
This is the same difference (+1) which I see in the rawopint log file…

« Last Edit: 06 / February / 2017, 14:38:08 by c_joerg »
M100 100a, M3 121a, G9x II (1.00c), 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

*

Offline srsa_4c

  • ******
  • 4451
Re: EOS M3 porting
« Reply #273 on: 06 / February / 2017, 19:55:52 »
For ISO100 I got SV96=480 and not 412 difference 68
For ISO200 I got SV96=576 and not 508 difference 68
For ISO400 I got SV96=672 and not 604 difference 68
If you can compile CHDK (with this, for example), add the following lines to platform/m3/platform_camera.h and make a build:
Code: [Select]
    // "real" to "market" conversion definitions
    #define SV96_MARKET_OFFSET                  0
    #define ISO_MARKET_TO_REAL_MULT             1
    #define ISO_MARKET_TO_REAL_SHIFT            0
    #define ISO_MARKET_TO_REAL_ROUND            0
    #define ISO_REAL_TO_MARKET_MULT             1
    #define ISO_REAL_TO_MARKET_SHIFT            0
    #define ISO_REAL_TO_MARKET_ROUND            0

*

Offline c_joerg

  • *****
  • 1251
Re: EOS M3 porting
« Reply #274 on: 07 / February / 2017, 00:15:55 »
If you can compile CHDK (with this, for example)

Thanks. I haven’t compiled CHDK before, but I will go into it. But it will take some time…
What is the correct value for ISO100? Sv96=412? my S110 delivers 411…
M100 100a, M3 121a, G9x II (1.00c), 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

*

Offline Ant

  • *****
  • 509
Re: EOS M3 porting
« Reply #275 on: 07 / February / 2017, 09:37:20 »
add the following lines to platform/m3/platform_camera.h and make a build

Done.
« Last Edit: 07 / February / 2017, 10:08:37 by Ant »

*

Offline c_joerg

  • *****
  • 1251
Re: EOS M3 porting
« Reply #276 on: 07 / February / 2017, 11:41:11 »
add the following lines to platform/m3/platform_camera.h and make a build

Done.
Should something change with the run?
I got the same sv96 values.
I looked into shooting.c. The result is exact log2(iso/3.125)*96+0.5)
M100 100a, M3 121a, G9x II (1.00c), 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

*

Offline Ant

  • *****
  • 509
Re: EOS M3 porting
« Reply #277 on: 07 / February / 2017, 11:55:29 »
Should something change with the run?

no more Sv related warnings in RAWOPINT.CSV

*

Offline c_joerg

  • *****
  • 1251
Re: EOS M3 porting
« Reply #278 on: 07 / February / 2017, 12:06:55 »
no more Sv related warnings in RAWOPINT.CSV
No warnings anymore  :D :D :D 
But why I got on my S110 and G1x on ISO100 sv96=411 and on the M3 sv96=480?

Update:
The black_level=127 from Reply #80 has changed to black_level=511 in Reply #259 (like on the G1x), But I’m not sure why…
« Last Edit: 07 / February / 2017, 12:22:29 by c_joerg »
M100 100a, M3 121a, G9x II (1.00c), 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

*

Offline Ant

  • *****
  • 509
Re: EOS M3 porting
« Reply #279 on: 07 / February / 2017, 12:41:17 »
But why I got on my S110 and G1x on ISO100 sv96=411 and on the M3 sv96=480?
and on the M10 sv96=480 too

The black_level=127 from Reply #80 has changed to black_level=511 in Reply #259 (like on the G1x), But I’m not sure why…
Because it was long time ago, when CAM_SENSOR_BITS_PER_PIXEL was not corrected.
« Last Edit: 07 / February / 2017, 13:19:03 by Ant »

 

Related Topics


SimplePortal © 2008-2014, SimplePortal