A800 Porting Thread

  • 277 Replies
  • 29773 Views
  • Publish
    Re: A800 Porting Thread
    « Reply #130 on: 18 / March / 2012, 21:17:46 »
    Advertisements
    The "0056" opens as a full size image with RawTherappe. Color looks good too - no purple.

    Alright, at least one mystery solved - it seems that philmoz was spot on and the tweak to the cam_CFAPattern value is indeed needed to make RAW pictures work on this camera.  This still leaves questions about the tiny purple thumbnails and why the .CR2 files are purple (and the whole purple issue in that other thread) but for now I think it's safe to say that the change to the cam_CFAPattern value should be put into the trunk - at least as far as I can tell.

  • Publish
    Re: A800 Porting Thread
    « Reply #131 on: 18 / March / 2012, 21:18:07 »
    As for the .CR2 files, they could very well be all kinds of messed up - I was able to open them just fine, they were just purple.
    If you can open a CHDK RAW file from a new camera port ( CR2 or RAW extension does not matter - that's just the filename and does not affect the data in the image file in any way ) then you are indeed luckly.   Until the folks at dcraw officially import your camera then what you see - if anything - in any of the current image programs is just dumb luck.  If its purple,  then that's how it is.  If you can get a good DNG then you are "good to go" for now.


  • Publish
    Re: A800 Porting Thread
    « Reply #132 on: 18 / March / 2012, 21:22:58 »
    If its purple,  then that's how it is.  If you can get a good DNG then you are "good to go" for now.
    Hehe can't argue with that :)  I'm guessing that's what srsa_4c meant by saying that a800 users will have to use DNG not .CR2.  Although a tad mind breaking, I think I can tentatively say that we accomplished the goal - if you can get this cam_CFAPattern change put into the trunk then I think we officially have DNG support for this camera firmware :D

    *

    Offline reyalp

    • ******
    • 9961
  • Publish
    Re: A800 Porting Thread
    « Reply #133 on: 18 / March / 2012, 21:25:23 »
    If that one, 0064.DNG, also looks good (and not purple) then changing the cam_CFAPattern value was a red herring.
    In irfanview and picasa 0064.DNG looks purple to me. 0056 looks reasonably correct.

    Quote
    If what srsa_4c says is true then it's all good that it doesn't do anything to non-DNG "CHDK raw" because apparently that isn't usable on this camera model anyways (although I'm a little fuzzy on just why that's the case.)
    CHDK raw is not a format. If it contains a complete copy of the framebuffer, it is correct. Based on the DNG, this appears to be the case.

    If some program fails to interpret it correctly, that's entirely the fault of the program. If dcraw or other programs only guess based on size, and don't allow you to override the bayer pattern, that's their problem.

    You should be able to create a profile in dng4ps2 with the correct cfa pattern, if you want to convert CHDK raws from this camera.

    edit:
    I've checked this in for both release and trunk, r1751 and r1752 respectively.
    « Last Edit: 18 / March / 2012, 21:35:34 by reyalp »
    Don't forget what the H stands for.


    *

    Offline srsa_4c

    • ******
    • 3136
  • Publish
    Re: A800 Porting Thread
    « Reply #134 on: 18 / March / 2012, 21:28:31 »
    Until the folks at dcraw officially import your camera
    Not likely to happen (no headers, decision is done by filesize only).
    edit:
    ... unless CHDK code is changed to strip the last row of the RAW for example.

    Code: [Select]
    { 15467760, "Canon",    "PowerShot SX110 IS",0 },
    If its purple,  then that's how it is.  If you can get a good DNG then you are "good to go" for now.
    that's what srsa_4c meant by saying that a800 users will have to use DNG not .CR2
    Yes.
    « Last Edit: 18 / March / 2012, 21:33:39 by srsa_4c »

  • Publish
    Re: A800 Porting Thread
    « Reply #135 on: 18 / March / 2012, 21:41:52 »
    Ah, thanks for the clarifications, that makes a lot more sense :)  So reyalp, are you adding this cam_CFAPattern change to the main autobuild and the /trunk version?  I think that'd be a good idea, at least as best as I can tell.

  • Publish
    Re: A800 Porting Thread
    « Reply #136 on: 18 / March / 2012, 22:07:18 »
    Until the folks at dcraw officially import your camera
    Not likely to happen (no headers, decision is done by filesize only).
    It would be interesting to see what will happen here.  This can't be the first tiime the filesize has ever matched ?

    Quote
    edit:
    ... unless CHDK code is changed to strip the last row of the RAW for example.
    Now that's an interesting idea !

    Quote
    that's what srsa_4c meant by saying that a800 users will have to use DNG not .CR2
    Almost.  They can't depend on dcraw based products but can use .CR2 of they are able to setup custom profiles for the A800.


    *

    Offline philmoz

    • *****
    • 2936
      • Photos
  • Publish
    Re: A800 Porting Thread
    « Reply #137 on: 18 / March / 2012, 22:35:37 »
    Until the folks at dcraw officially import your camera
    Not likely to happen (no headers, decision is done by filesize only).
    It would be interesting to see what will happen here.  This can't be the first tiime the filesize has ever matched ?

    It would appear to be the first time the filesize has matched; but the bayer pattern hasn't.

    Quote
    Quote
    edit:
    ... unless CHDK code is changed to strip the last row of the RAW for example.
    Now that's an interesting idea !

    The bayer pattern is 2x2 so you should strip the bottom 2 rows to avoid having an odd image height.

    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)


    *

    Offline srsa_4c

    • ******
    • 3136
  • Publish
    Re: A800 Porting Thread
    « Reply #138 on: 18 / March / 2012, 23:00:26 »
    It would appear to be the first time the filesize has matched; but the bayer pattern hasn't.
    Bernd R has been fighting with something similar on the Ixus1000
    http://chdk.setepontos.com/index.php?topic=5722.msg82387#msg82387
    Quote
    The bayer pattern is 2x2 so you should strip the bottom 2 rows to avoid having an odd image height.
    :-[

    Anyway, if a method like this is decided, the black and shadow areas have to be taken into account (i.e. not chop away rows that actually contain some useful image data).

  • Publish
    Re: A800 Porting Thread
    « Reply #139 on: 18 / March / 2012, 23:15:28 »
    Anyway, if a method like this is decided, the black and shadow areas have to be taken into account (i.e. not chop away rows that actually contain some useful image data).
    Two rows of pixels does not sound like a lot of useful data - seems like a fair trade off ?

     

    Related Topics