Thanks reyalp, I mean the codes (for example libdng->write_dng(fd, rawadr, altrawadr, CAM_UNCACHED_BIT );) between the second started() ....... finished() is the actual SD card raw file writing process. Is my guess right?
And I also noticed , in RAW.C, the function void raw_postprocess() {} is empty, so I suppose it is reserved for users to put their own codes here? For example to modify raw image pixels?
But what confused me is that, in order to call this function in main.c , the returned value of raw_savefile() should be 1, which means the variable ret defined in above function should be 1. My question is in which case this will happen?
Great Thanks in advance!