I am creating an app where I need to apply filters to the my video while recording it. For example the way we apply filters to the video in Retrica app. I am using camera 2 api as I have not been able to find anything regarding this in Camera x. Right now I am using the following way to apply filters to the video
captureRequestBuilder = cameraDevice.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW);
captureRequestBuilder.set (CaptureRequest.CONTROL_EFFECT_MODE, CaptureRequest.CONTROL_EFFECT_MODE_SEPIA);
There are some deafult values that we can use to apply such filters in camera2 api. What I want to do is also add custom filter effects to the video. How can I add such filters?