This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Previewer: Dark frame subtraction

Hello All,

I have to use the dark frame subtraction feature of the previewer (dm6446). I have few queries regarding this as the VPFE ug doesn't explain much about it.

The register fields contains two bit regarding dark frame capture and dark frame subtract enable/disable. If we observe prev_params structure there is member variable to store a  pointer to the dark frame data (void *dark_frame_addr; file - davinci_previewer.h)

My understanding is that the dark frame needs to be pre-captured and before enabling previewer, allocate a mem block, load the dark frame data to the malloc'd block and update dark_frame_addr to this block. Is this how it is?

If it is so, what is the purpose of PCR.DRKFCAP bit? one another question is, what should the field DSDR_ADDR be loaded with, is it similar to dark_frame_addr? can we automate this as dark frame data need to be changed with each sensor.

If not what sequence of steps to be followed to perform dark frame subtraction, please advise.

Thanks for your help.

--

Best Regards

Arun