public class FilterAsset extends AbstractAsset
Modifier and Type | Class and Description |
---|---|
static interface |
FilterAsset.FilterConfigIntensity
Implement this interface if a Filter has Intensity Control
|
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<FilterAsset> |
CREATOR |
static FilterAsset |
NONE_FILER |
static java.lang.String |
NONE_FILTER_ID |
Modifier | Constructor and Description |
---|---|
protected |
FilterAsset(android.os.Parcel in) |
protected |
FilterAsset(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
java.lang.Class<? extends AbstractAsset> |
getConfigType() |
float |
getDefaultIntensityValue() |
float |
getNeutralStartPoint() |
boolean |
hasIntensityConfig()
Check if the Filter has Intensity Control
|
protected void |
onDraw(GlProgram program,
float intensity) |
void |
preloadLut() |
void |
release() |
Allocation |
renderImage(Allocation allocation,
float intensity,
boolean previewMode) |
android.graphics.Bitmap |
renderImage(android.graphics.Bitmap bitmap,
boolean previewRendering) |
android.graphics.Bitmap |
renderImage(android.graphics.Bitmap bitmap,
float intensity,
boolean previewRendering) |
void |
unloadLut() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
afterAddToAssetMap, equals, getId, hashCode
public static final java.lang.String NONE_FILTER_ID
public static final FilterAsset NONE_FILER
public static final android.os.Parcelable.Creator<FilterAsset> CREATOR
@AnyThread protected FilterAsset(@NonNull java.lang.String id)
protected FilterAsset(android.os.Parcel in)
public android.graphics.Bitmap renderImage(android.graphics.Bitmap bitmap, boolean previewRendering)
@Nullable public android.graphics.Bitmap renderImage(android.graphics.Bitmap bitmap, float intensity, boolean previewRendering)
@Nullable public Allocation renderImage(Allocation allocation, float intensity, boolean previewMode)
@NonNull public java.lang.Class<? extends AbstractAsset> getConfigType()
getConfigType
in class AbstractAsset
public void release()
public void preloadLut()
public void unloadLut()
public boolean hasIntensityConfig()
protected void onDraw(GlProgram program, float intensity)
public int describeContents()
describeContents
in interface android.os.Parcelable
describeContents
in class AbstractAsset
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class AbstractAsset
public float getDefaultIntensityValue()
public float getNeutralStartPoint()