I am writing an android camera app using camera2 API. I want to know how to add various filtering effects i.e sepia, negative in android camera surface as a list. Please help to solve the same.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You can set CONTROL_EFFECT_MODE like this:
mPreviewRequestBuilder.set(CaptureRequest.CONTROL_EFFECT_MODE, CaptureRequest.CONTROL_EFFECT_MODE_SEPIA);