public class LutColorFilterAsset extends FilterAsset implements FilterAsset.FilterConfigIntensity
FilterAsset.FilterConfigIntensity
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<LutColorFilterAsset> |
CREATOR |
NONE_FILER, NONE_FILTER_ID
Modifier | Constructor and Description |
---|---|
protected |
LutColorFilterAsset(android.os.Parcel in) |
|
LutColorFilterAsset(java.lang.String id,
ImageSource lutImageSource,
int vTiles,
int hTiles,
int textureSize) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
protected void |
finalize() |
android.graphics.Bitmap |
getColorLut()
Return the Lut as Bitmap.
|
java.lang.Class<? extends AbstractAsset> |
getConfigType() |
float |
getDefaultIntensityValue() |
int |
getHorizontalTileCount() |
android.graphics.Bitmap |
getLutBitmap() |
Allocation |
getLutCube(RenderScript rs)
Return the Renderscript LUT Allocation
|
float |
getNeutralStartPoint() |
int |
getTextureSize() |
int |
getVerticalTileCount() |
int |
hashCode() |
void |
preloadLut() |
void |
renderImage(Allocation allocationIn,
Allocation allocationOut,
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 previewMode)
Render the filter
|
void |
unloadLut() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
hasIntensityConfig, onDraw, release
afterAddToAssetMap, getId
public static final android.os.Parcelable.Creator<LutColorFilterAsset> CREATOR
public LutColorFilterAsset(@Nullable java.lang.String id, @NonNull ImageSource lutImageSource, int vTiles, int hTiles, int textureSize)
protected LutColorFilterAsset(android.os.Parcel in)
public android.graphics.Bitmap renderImage(android.graphics.Bitmap bitmap, boolean previewRendering)
renderImage
in class FilterAsset
public float getDefaultIntensityValue()
getDefaultIntensityValue
in class FilterAsset
public float getNeutralStartPoint()
getNeutralStartPoint
in class FilterAsset
public int getHorizontalTileCount()
public int getVerticalTileCount()
public int getTextureSize()
@Nullable public android.graphics.Bitmap renderImage(@Nullable android.graphics.Bitmap bitmap, float intensity, boolean previewMode)
renderImage
in interface FilterAsset.FilterConfigIntensity
renderImage
in class FilterAsset
bitmap
- sourceTypeintensity
- filter intensitypreviewMode
- true if the renderer can reduce the quality to improve speed.public void renderImage(Allocation allocationIn, Allocation allocationOut, float intensity, boolean previewMode)
@Nullable public final android.graphics.Bitmap getColorLut()
public android.graphics.Bitmap getLutBitmap()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void unloadLut()
unloadLut
in class FilterAsset
public void preloadLut()
preloadLut
in class FilterAsset
@NonNull public Allocation getLutCube(@NonNull RenderScript rs)
rs
- reference to the renderscript.public boolean equals(java.lang.Object o)
equals
in class AbstractAsset
public int hashCode()
hashCode
in class AbstractAsset
public int describeContents()
describeContents
in interface android.os.Parcelable
describeContents
in class FilterAsset
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class FilterAsset
@NonNull public java.lang.Class<? extends AbstractAsset> getConfigType()
getConfigType
in class FilterAsset