public interface ImageFilterInterface extends DataSourceInterface<AbstractConfig.BindData>
Modifier and Type | Method and Description |
---|---|
void |
draw(Texture texture,
float[] mvpMatrix,
float[] stMatrix,
float aspectRatio)
Draw texture in OpenGl Context
|
boolean |
hasIntensityConfig()
Check if the Filter has Intensity Control
|
void |
release()
Release the shader program and texture
|
Bitmap |
renderImage(Bitmap bitmap,
float intensity,
boolean previewMode)
Apply the renderscript filter with a specific intensity.
|
createViewHolder, generateBindData, generateBindDataAsync, getLayout, getName, getVerticalLayout, isDirty, isSelectable, setDirtyFlag
void draw(Texture texture, float[] mvpMatrix, float[] stMatrix, float aspectRatio)
texture
- the camera preview texturemvpMatrix
- the camera sourceType transformationstMatrix
- the stage destination transformationaspectRatio
- the camera image aspectboolean hasIntensityConfig()
void release()
@Nullable Bitmap renderImage(Bitmap bitmap, float intensity, boolean previewMode)
bitmap
- the sourceType image.intensity
- the filter intensitypreviewMode
- set true to triggerOperatorsIfNeeded a faster preview