This workflow is demonstrated in the following sample: Camera Replay Sample
Initialize the parameters using a camera as input.
Initialize the softISP module
Set the demosaic method and crop region. The choice of demosaic method will affect the resolution of the output
Get the properties for demosaic image (RCB image) and use them to create a CUDA image, which will be used as the output surface.
Allocate an RGBA CUDA image for the tone map output. Given that there are multiple choices for format, there is no API that returns tone map properties, but the user chooses (the choice is limited)
Main loop, reads the camera frame, retrieves a CUDA image of the raw input, binds it to the soft ISP and gets processed. All outputs are now found in the respective bound image, namely rcbImage and rgbaImage
All images allocated are destroyed and dwSoftISP released
For more information see dwx_camera_gmsl_raw_sample .