Picture save routines in A570 - General Discussion and Assistance - CHDK Forum
supplierdeeply

Picture save routines in A570

  • 2 Replies
  • 282 Views
Picture save routines in A570
« on: 06 / May / 2022, 05:07:08 »
Advertisements
Hi,

I want to change routines which save the picture in order to save it to a "different place" (hidden area in custom SD card).

I found the raw save routines in raw.c (raw_process), but I cannot find the place where the JPG is being saved.
I see firmware hooks in platform/a570/sub/101a/capt_seq.c where they call out to capt_seq_hook_raw_here which in turn sets the flag that raw data is available.

Am I right that the JPG is being saved in the built-in firmware? Or did I miss the place it CHDK where it is saved?

regards,
chris

*

Offline reyalp

  • ******
  • 13749
Re: Picture save routines in A570
« Reply #1 on: 06 / May / 2022, 14:51:52 »
Am I right that the JPG is being saved in the built-in firmware? Or did I miss the place it CHDK where it is saved?
Correct. However, you should be able to use the filewrite hook the remote shoot code uses to override it. You may need to do a bit of surgery to make it usable in the non-remoteshoot case, but fundamentally I think you probably just need to change the name in the fwt_data_struct.
Don't forget what the H stands for.

Re: Picture save routines in A570
« Reply #2 on: 12 / May / 2022, 08:18:24 »
Thanks.
Looking into it....

 

Related Topics