When creating a CameraEffect using PREVIEW or VIDEO_CAPTURE, the filter effects implemented in OpenGL are rotated.

20 views
Skip to first unread message

Hong Wang (LazyIonEs)

unread,
9:04 AM (5 hours ago) 9:04 AM
to Android CameraX Discussion Group
When creating a CameraEffect using PREVIEW or VIDEO_CAPTURE, the filter effects implemented in OpenGL are rotated.When I change the targets to PREVIEW, it displays correctly again; currently, I am using surfaceOutput.updateTransformMatrix to correct the rotation, which works correctly in PREVIEW, but is rotated again when combined with VIDEO_CAPTURE. What should I do?

Leo Huang

unread,
12:12 PM (2 hours ago) 12:12 PM
to Android CameraX Discussion Group, lazy...@gmail.com

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!


lazy...@gmail.com 在 2026年4月27日 星期一晚上9:04:56 [UTC+8] 的信中寫道:
Reply all
Reply to author
Forward
0 new messages