S100 porting thread - page 28 - DryOS Development - CHDK Forum

S100 porting thread

  • 286 Replies
  • 123340 Views
Re: S100 porting thread
« Reply #270 on: 15 / November / 2014, 15:41:33 »
Advertisements
If you take a Canon RAW image, you can use the Adobe dng_validate program (from the DNG SDK) to get the correct values for cam_CFAPattern, and active area. Use the -v option on dng_validate.
Might also be worth checking the COLOR_MATRIX values - the comments in platform_camera.h say the values are from the G15.
dng_validate doesn't seem to like Canon CR2 files?  ( dng_validate version 1.3 )
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: S100 porting thread
« Reply #271 on: 15 / November / 2014, 15:44:27 »
If you take a Canon RAW image, you can use the Adobe dng_validate program (from the DNG SDK) to get the correct values for cam_CFAPattern, and active area. Use the -v option on dng_validate.
Might also be worth checking the COLOR_MATRIX values - the comments in platform_camera.h say the values are from the G15.
dng_validate doesn't seem to like Canon CR2 files?  ( dng_validate version 1.3 )

Sorry, missed a step. You need to convert the CR2 to a DNG with the Adobe DNG convertor first :)

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)
  g7x2 (1.01a, 1.01b, 1.10b)

Re: S100 porting thread
« Reply #272 on: 15 / November / 2014, 15:59:48 »
Sorry, missed a step. You need to convert the CR2 to a DNG with the Adobe DNG convertor first :)
This just is not my day - the Adobe DNG Convertor app ( v6.2.0.28 ) won't open the Canon CR2 files.

Curiously,  RawTherapee opens the CR2 files with the same borked purple coloration.
« Last Edit: 15 / November / 2014, 16:06:23 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: S100 porting thread
« Reply #273 on: 15 / November / 2014, 16:11:37 »
Sorry, missed a step. You need to convert the CR2 to a DNG with the Adobe DNG convertor first :)
This just is not my day - the Adobe DNG Convertor app ( v6.2.0.28 ) won't open the Canon CR2 files.

Curiously,  RawTherapee opens the CR2 files with the same borked purple coloration.

Can you upload or email me a sample CR2 file.

Edit: Found a sample S100 CR2 file online - Adobe DNG convertor 8.5 works with it.

Edit2: Values from the DNG file match what is currently in CHDK platform_camera.h, so it looks like Canon is writing the odd CAM_ACTIVE_AREA_Y1 value to the CR2 file ::) RawTherapee may also be expecting an even value.

Phil.
« Last Edit: 15 / November / 2014, 16:28:47 by philmoz »
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)
  g7x2 (1.01a, 1.01b, 1.10b)


Re: S100 porting thread
« Reply #274 on: 15 / November / 2014, 16:35:57 »
Edit: Found a sample S100 CR2 file online - Adobe DNG convertor 8.5 works with it.

Edit2: Values from the DNG file match what is currently in CHDK platform_camera.h, so it looks like Canon is writing the odd CAM_ACTIVE_AREA_Y1 value to the CR2 file ::) RawTherapee may also be expecting an even value.
Yea - things got better once I downloaded the 2014 version of Adobe DNG Convertor rather than the one from 2010.   Strange that they leave that obsolete link laying around.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: S100 porting thread
« Reply #275 on: 15 / November / 2014, 16:43:53 »
Edit: Found a sample S100 CR2 file online - Adobe DNG convertor 8.5 works with it.

Edit2: Values from the DNG file match what is currently in CHDK platform_camera.h, so it looks like Canon is writing the odd CAM_ACTIVE_AREA_Y1 value to the CR2 file ::) RawTherapee may also be expecting an even value.
Yea - things got better once I downloaded the 2014 version of Adobe DNG Convertor rather than the one from 2010.   Strange that they leave that obsolete link laying around.

Can you see if this patch fixes the DNG files when set to 'Full' for the crop size.

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)
  g7x2 (1.01a, 1.01b, 1.10b)

Re: S100 porting thread
« Reply #276 on: 15 / November / 2014, 17:14:19 »
Can you see if this patch fixes the DNG files when set to 'Full' for the crop size.
Patched and tested all three "sizes".  They all look good now - thanks!
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 14080
Re: S100 porting thread
« Reply #277 on: 28 / December / 2014, 17:12:49 »
Just a reminder, "firm update" booting FI2 support is broken on this cam http://chdk.setepontos.com/index.php?topic=12153.msg119427#msg119427
Don't forget what the H stands for.


Re: S100 porting thread
« Reply #278 on: 12 / February / 2015, 02:26:04 »
Hi, a quick question concerning ND filter state support:   
   
Both S100 and S110 have ND filters. Why does the S110 have the CAM_HAS_ND_FILTER / CAM_HAS_NATIVE_ND_FILTER flags in the platform_camera.h but not the S100?
Is there some problem with controlling the ND filter on this model?

*

Offline reyalp

  • ******
  • 14080
Re: S100 porting thread
« Reply #279 on: 12 / February / 2015, 16:28:07 »
Hi, a quick question concerning ND filter state support:   
   
Both S100 and S110 have ND filters. Why does the S110 have the CAM_HAS_ND_FILTER / CAM_HAS_NATIVE_ND_FILTER flags in the platform_camera.h but not the S100?
Is there some problem with controlling the ND filter on this model?
If it isn't discussed somewhere earlier in this thread, I would guess that the person doing the S100 port just didn't know about it.

If you can verify that ND control works with these defines, we can add them.

Don't forget what the H stands for.

 

Related Topics