supplierdeeply

SD940 (IXUS120) porting thread

  • 542 Replies
  • 60510 Views
*

Offline waldo

  • ***
  • 238
  • Publish
    Re: SD940 (IXUS120) porting thread
    « Reply #250 on: 16 / January / 2011, 17:25:57 »
    Advertisements
    That works for me in 102C.
    Do you still have a crashing problem with RAW - presumably after it saves a valid DNG image ?

    I just retested this with the latest version.  It turns out it DOES crash when doing Raw.  It used to work, so I assumed it still did.  Sorry for the confusion about that.

    The older version from my own build still works OK with Raw.  Looking at it briefly, I see that the 103c code that fixed the overrides behavior for short shutter presses was not carried over to 102c.  I'll try changing that to see if it has an effect.

    *

    Offline zebra

    • *
    • 24
  • Publish
    Re: SD940 (IXUS120) porting thread
    « Reply #251 on: 17 / January / 2011, 00:08:41 »
    ...wonderful :). I wasn't simply going mad then.

    Tried to gen a DNG, and found the badpixels LUA script didn't seem to execute correctly, and again, would lock the camera up...

    z

  • Publish
    Re: SD940 (IXUS120) porting thread
    « Reply #252 on: 17 / January / 2011, 00:28:29 »
    Tried to gen a DNG, and found the badpixels LUA script didn't seem to execute correctly, and again, would lock the camera up...

    Check out http://chdk.setepontos.com/index.php?topic=5855.msg59258#msg59258 for how I got around the badpixels situation.  

    I think I also saw some recent posts from reyalp that the LUA version is going away,  replaced by a  Basic script ?
    « Last Edit: 17 / January / 2011, 00:33:59 by waterwingz »

    *

    Offline reyalp

    • ******
    • 9959
  • Publish
    Re: SD940 (IXUS120) porting thread
    « Reply #253 on: 17 / January / 2011, 01:17:49 »
    I think I also saw some recent posts from reyalp that the LUA version is going away,  replaced by a  Basic script ?
    No, it's built into the raw menu now. However, if the script failed, this is likely to fail as well.
    Don't forget what the H stands for.


    *

    Offline dvip

    • ****
    • 451
  • Publish
    Re: SD940 (IXUS120) porting thread
    « Reply #254 on: 17 / January / 2011, 10:43:21 »
    @zebra,
    Try deleting badpixel.bin manually, then create it from raw menu with "Create badpixel.bin".

    *

    Offline zebra

    • *
    • 24
  • Publish
    Re: SD940 (IXUS120) porting thread
    « Reply #255 on: 17 / January / 2011, 18:05:30 »
    OK.

    Good news - I finally managed to capture a sensor data dump (I'm not calling it RAW anymore, thanks to you guys, as I now know the .extension "raw" isn't really all there is to this story!), and then subsequently open it in XnView.

    I achieved this by formatting a 2GB card with lower cluster/sector size. Originally, had 4GB SD HC with 64k cluster size.

    HOWEVER - this doesn't solve/fix the fact that the camera still hangs after every image is acquired in RAW.

    Trying to get some logging going soon...

    @ dvip: in the raw menu, I see no "Create badpixel.bin". Am I looking in the wrong place. Rough menu navigation went like this:

    [alt] --> press MENU --> "Raw parameters". Selected "Save as RAW". There does appear to be plenty of DNG options in here, but nothing about "Create badpixel.bin". The only reference I could find to this was in LUA scripts.


    z

    *

    Offline reyalp

    • ******
    • 9959
  • Publish
    Re: SD940 (IXUS120) porting thread
    « Reply #256 on: 17 / January / 2011, 22:05:27 »
    @ dvip: in the raw menu, I see no "Create badpixel.bin". Am I looking in the wrong place. Rough menu navigation went like this:
    This is a very recent addition to the CHDK trunk. It's likely the build you are using is from sources without this.
    Don't forget what the H stands for.

  • Publish
    Re: SD940 (IXUS120) porting thread
    « Reply #257 on: 17 / January / 2011, 22:48:04 »
    This is a very recent addition to the CHDK trunk. It's likely the build you are using is from sources without this.
    Sounds like its time for a Beta6 release. 

    @waldo - any progress on why RAW crashes in the 1.02c Beta5 release ?


    *

    Offline waldo

    • ***
    • 238
  • Publish
    Re: SD940 (IXUS120) porting thread
    « Reply #258 on: 19 / January / 2011, 15:31:43 »
    @waterwingz,
    With regard to the raw crashing on 102C, the address of SetFileTimeStamp should be 0xff835640.

    Also, you should uncomment the "fixes overrides behavior at short shutter press" lines.  Overrides did not consistently work for me unless I did that.

    You should also check if capt_seq_hook_set_nr is ever called.  I don't think it is.  I moved the call to another location where it gets called, but it still does not seem to work.  If we can't get that working, we should probably remove it from the code for now to avoid corrupting memory if nrflag is written to.

    Also, did you get the zebra and edge overlay to work on 103c?  It has never drawn properly on 102c.

  • Publish
    Re: SD940 (IXUS120) porting thread
    « Reply #259 on: 19 / January / 2011, 20:05:59 »
    With regard to the raw crashing on 102C, the address of SetFileTimeStamp should be 0xff835640.
    Made the change for 1.02C.  It was already set to that address in the 1.03C.

    Also, you should uncomment the "fixes overrides behavior at short shutter press" lines.  Overrides did not consistently work for me unless I did that.
    Made the change for 1.02C.  It was already set to that way in the 1.03C.

    You should also check if capt_seq_hook_set_nr is ever called.  I don't think it is.  I moved the call to another location where it gets called, but it still does not seem to work.  If we can't get that working, we should probably remove it from the code for now to avoid corrupting memory if nrflag is written to.
    I guess I need to study what this is supposed to do.  Does the call to wait_until_remote_button_is_released() immediately before the call to capt_seq_hook_set_nr() suggest its only called when you are using a USB remote to trigger the shutter ?

    Also, did you get the zebra and edge overlay to work on 103c?  It has never drawn properly on 102c.
    Zebra and edge overlay work perfectly in the 1.03C.  I posted a couple of changes a while back :
    http://chdk.setepontos.com/index.php?topic=5855.msg58941#msg58941
    and
    http://chdk.setepontos.com/index.php?topic=5855.msg59146#msg59146
    but I think you already saw those ?

    I'll update my trunk to the version 1050 and do a Beta6 release shortly.

     

    Related Topics