android add live camera effects to custom camera library CameraView

I'm creating an application with the features of live camera effects. I've used custom camera library ( ) for making images and videos. Now the issue is that I want to apply live camera effects to this camera preview. Searched alot but couldn't find any solution. Kindly give your suggestions.

cameraView.addFrameProcessor(new FrameProcessor() {
public void process(Frame frame) {
    byte[] data = frame.getData();
    int rotation = frame.getRotation();
    long time = frame.getTime();
    Size size = frame.getSize();
    int format = frame.getFormat();
    // Process...

this is method for frame processing