public abstract class Frame extends Object
Modifier and Type | Field and Description |
---|---|
static int |
NO_BINDING |
static long |
TIMESTAMP_NOT_SET |
static long |
TIMESTAMP_UNKNOWN |
Modifier and Type | Method and Description |
---|---|
protected void |
assertFrameMutable() |
protected static Bitmap |
convertBitmapToRGBA(Bitmap bitmap) |
long |
getBindingId() |
int |
getBindingType() |
abstract Bitmap |
getBitmap() |
int |
getCapacity() |
abstract ByteBuffer |
getData() |
abstract float[] |
getFloats() |
FrameFormat |
getFormat() |
FrameManager |
getFrameManager() |
abstract int[] |
getInts() |
abstract Object |
getObjectValue() |
int |
getRefCount() |
long |
getTimestamp() |
protected abstract boolean |
hasNativeAllocation() |
boolean |
isReadOnly() |
protected void |
onFrameFetch()
Called when a frame is fetched from an internal store such as a cache.
|
protected void |
onFrameStore()
Called just before a frame is stored, such as when storing to a cache or context.
|
Frame |
release() |
protected abstract void |
releaseNativeAllocation() |
protected boolean |
requestResize(int[] newDimensions) |
protected void |
reset(FrameFormat newFormat) |
Frame |
retain() |
abstract void |
setBitmap(Bitmap bitmap) |
void |
setData(byte[] bytes,
int offset,
int length) |
void |
setData(ByteBuffer buffer) |
abstract void |
setData(ByteBuffer buffer,
int offset,
int length) |
void |
setDataFromFrame(Frame frame) |
abstract void |
setFloats(float[] floats) |
protected void |
setFormat(FrameFormat format) |
protected void |
setGenericObjectValue(Object value) |
abstract void |
setInts(int[] ints) |
void |
setObjectValue(Object object) |
protected void |
setReusable(boolean reusable) |
void |
setTimestamp(long timestamp) |
public static final int NO_BINDING
public static final long TIMESTAMP_NOT_SET
public static final long TIMESTAMP_UNKNOWN
public FrameFormat getFormat()
public int getCapacity()
public boolean isReadOnly()
public int getBindingType()
public long getBindingId()
public void setObjectValue(Object object)
public abstract Object getObjectValue()
public abstract void setInts(int[] ints)
public abstract int[] getInts()
public abstract void setFloats(float[] floats)
public abstract float[] getFloats()
public abstract void setData(ByteBuffer buffer, int offset, int length)
public void setData(ByteBuffer buffer)
public void setData(byte[] bytes, int offset, int length)
public abstract ByteBuffer getData()
public abstract void setBitmap(Bitmap bitmap)
public abstract Bitmap getBitmap()
public void setTimestamp(long timestamp)
public long getTimestamp()
public void setDataFromFrame(Frame frame)
protected boolean requestResize(int[] newDimensions)
public int getRefCount()
public Frame release()
public Frame retain()
public FrameManager getFrameManager()
protected void assertFrameMutable()
protected void setReusable(boolean reusable)
protected void setFormat(FrameFormat format)
protected void setGenericObjectValue(Object value)
protected void reset(FrameFormat newFormat)
protected void onFrameStore()
protected void onFrameFetch()
protected abstract boolean hasNativeAllocation()
protected abstract void releaseNativeAllocation()