Hi,
If you are looking to apply post-processing effects to your output, you can find a sample implementation of tone mapping in the official CameraX test app repository. The sample demonstrate how to use the CameraEffect and SurfaceProcessor APIs for different use cases.
Here are the link to the sample implementations:
To help us better understand the specific issue you are facing, could you please provide a code snippet of how you are currently implementing the effect or configuring your pipeline?
Thanks!
The issue regarding the rotation of OpenGL filters when using both PREVIEW and VIDEO_CAPTURE occurs because these surfaces require distinct transformation adjustments. The surface transformation matrix corresponds to the specific requirements of each output target, which differ due to the way sensor orientation and display rotation are handled.
To resolve this, please ensure you apply the updateTransformMatrix method specifically to each SurfaceOutput instance individually, rather than applying a global correction. Verify the target type of each surface within your implementation and apply the transformation calculation specific to that individual surface.