-
- All Implemented Interfaces:
-
com.otaliastudios.cameraview.filter.Filter
public class DocumentaryFilter extends BaseFilter
Applies black and white documentary style effect.
-
-
Constructor Summary
Constructors Constructor Description DocumentaryFilter()
-
Method Summary
Modifier and Type Method Description voidsetSize(int width, int height)Called anytime the output size changes. StringgetFragmentShader()Returns a String containing the fragment shader. voidonCreate(int programHandle)The filter program was just created. voidonDestroy()The filter program is about to be destroyed. -
Methods inherited from class com.otaliastudios.cameraview.filter.BaseFilter
copy, draw, getVertexShader -
Methods inherited from class com.otaliastudios.cameraview.filter.Filter
copy -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
setSize
void setSize(int width, int height)
Called anytime the output size changes.
- Parameters:
width- widthheight- height
-
getFragmentShader
@NonNull() String getFragmentShader()
Returns a String containing the fragment shader.Together with getVertexShader, this will be used tocreate the OpenGL program.
-
onCreate
void onCreate(int programHandle)
The filter program was just created. We pass in a handle to the OpenGLprogram that was created, so you can fetch pointers.
- Parameters:
programHandle- handle
-
onDestroy
void onDestroy()
The filter program is about to be destroyed.
-
-
-
-