public class LutColorFilter extends ImageFilter implements ImageFilter.FilterConfigIntensity
ImageFilter.FilterConfigIntensity
AbstractConfig.BindData
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<LutColorFilter> |
CREATOR |
id, isDirty, ORIGINAL_THUMBNAIL_SIZE
Modifier | Constructor and Description |
---|---|
protected |
LutColorFilter(android.os.Parcel in) |
|
LutColorFilter(java.lang.String id,
int name,
int thumbnailRes,
ImageSource lutImageSource,
int vTiles,
int hTiles,
int textureSize) |
|
LutColorFilter(java.lang.String id,
int name,
int thumbnailRes,
int lutResource)
Deprecated.
|
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.
|
int |
getHorizontalTileCount() |
android.graphics.Bitmap |
getLutBitmap() |
android.support.v8.renderscript.Allocation |
getLutCube(android.support.v8.renderscript.RenderScript rs)
Return the Renderscript LUT Allocation
|
int |
getTextureSize() |
android.graphics.Bitmap |
getThumbnailBitmap(int maxWidth)
Return the Thumbnail, do not call in Main Thread and use #getThumbnailResId() if #hasStaticThumbnail
|
int |
getVerticalTileCount() |
int |
hashCode() |
boolean |
hasStaticThumbnail()
Check if it has a static thumbnail drawable.
|
void |
preloadLut() |
void |
renderImage(android.support.v8.renderscript.Allocation allocationIn,
android.support.v8.renderscript.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) |
createViewHolder, getLayout, hasIntensityConfig, isSelectable, onDraw, release, renderImage
generateBindData, generateBindDataAsync, getId, getName, getThumbnailBitmap, getThumbnailResId, getThumbnailSource, getTitle, getVerticalLayout, isClickable, isDirty, setDirtyFlag
clone, getClass, notify, notifyAll, toString, wait, wait, wait
generateBindData, generateBindDataAsync, getId, getName, getVerticalLayout, isDirty, setDirtyFlag
public static final android.os.Parcelable.Creator<LutColorFilter> CREATOR
protected LutColorFilter(android.os.Parcel in)
public LutColorFilter(@Nullable java.lang.String id, @StringRes int name, @DrawableRes int thumbnailRes, @NonNull ImageSource lutImageSource, int vTiles, int hTiles, int textureSize)
@Deprecated public LutColorFilter(@Nullable java.lang.String id, @StringRes int name, @DrawableRes int thumbnailRes, @DrawableRes int lutResource)
public int describeContents()
describeContents
in interface android.os.Parcelable
describeContents
in class ImageFilter
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
@Nullable public final android.graphics.Bitmap getColorLut()
public int getHorizontalTileCount()
public android.graphics.Bitmap getLutBitmap()
@NonNull public android.support.v8.renderscript.Allocation getLutCube(@NonNull android.support.v8.renderscript.RenderScript rs)
rs
- reference to the renderscript.public int getTextureSize()
@Nullable public android.graphics.Bitmap getThumbnailBitmap(int maxWidth)
AbstractConfig
getThumbnailBitmap
in class ImageFilter
maxWidth
- Size the drawable should be limited to.public int getVerticalTileCount()
public int hashCode()
hashCode
in class java.lang.Object
public boolean hasStaticThumbnail()
AbstractConfig
hasStaticThumbnail
in class ImageFilter
AbstractConfig.getThumbnailBitmap()
public void preloadLut()
preloadLut
in interface ImageFilterInterface
preloadLut
in class ImageFilter
public void renderImage(android.support.v8.renderscript.Allocation allocationIn, android.support.v8.renderscript.Allocation allocationOut, float intensity, boolean previewMode)
public android.graphics.Bitmap renderImage(android.graphics.Bitmap bitmap, boolean previewRendering)
renderImage
in class ImageFilter
@Nullable public android.graphics.Bitmap renderImage(@Nullable android.graphics.Bitmap bitmap, float intensity, boolean previewMode)
renderImage
in interface ImageFilter.FilterConfigIntensity
renderImage
in interface ImageFilterInterface
renderImage
in class ImageFilter
bitmap
- sourceTypeintensity
- filter intensitypreviewMode
- true if the renderer can reduce the quality to improve speed.public void unloadLut()
unloadLut
in interface ImageFilterInterface
unloadLut
in class ImageFilter
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class ImageFilter