Android camera2 and color effect

I want to set CONTROL_EFFECT_MODE

to capture. If I use ImageReader

with ImageFormat.JPEG

, everything is fine. But if I try to use ImageFormat.YUV_420_888

, the filter is canceled and then CaptureRequest

returns an unfiltered image. While CaptureCallback

two CaptureRequest

and TotalCaptureResult

requested value CONTROL_EFFECT_MODE

.

How is it possible that Image and CaptureResult have different parameters?

And how to fix CONTROL_EFFECT_MODE

for ImageFormat.YUV_420_888

?

+3


source to share





All Articles