public interface ImageFilterInterface extends DataSourceInterface<AbstractConfig.BindData>
Modifier and Type | Method and Description |
---|---|
boolean |
hasIntensityConfig()
Check if the Filter has Intensity Control
|
void |
preloadLut() |
void |
release()
Release the shader program and texture
|
android.support.v8.renderscript.Allocation |
renderImage(android.support.v8.renderscript.Allocation allocation,
float intensity,
boolean previewMode)
Apply the renderscript filter with a specific intensity.
|
android.graphics.Bitmap |
renderImage(android.graphics.Bitmap bitmap,
float intensity,
boolean previewMode)
Apply the renderscript filter with a specific intensity.
|
void |
unloadLut() |
createViewHolder, generateBindData, generateBindDataAsync, getId, getLayout, getName, getVerticalLayout, isDirty, isSelectable, setDirtyFlag
boolean hasIntensityConfig()
void preloadLut()
void release()
@Nullable android.support.v8.renderscript.Allocation renderImage(android.support.v8.renderscript.Allocation allocation, float intensity, boolean previewMode)
allocation
- the sourceType image allocation (RGBA_8888).intensity
- the filter intensitypreviewMode
- set true to triggerOperatorsIfNeeded a faster preview@Nullable android.graphics.Bitmap renderImage(android.graphics.Bitmap bitmap, float intensity, boolean previewMode)
bitmap
- the sourceType image.intensity
- the filter intensitypreviewMode
- set true to triggerOperatorsIfNeeded a faster previewvoid unloadLut()