Methods Summary |
---|
android.support.rastermill.FrameSequence$State | createState()
if (mNativeFrameSequence == 0) {
throw new IllegalStateException("attempted to use incorrectly built FrameSequence");
}
long nativeState = nativeCreateState(mNativeFrameSequence);
if (nativeState == 0) {
return null;
}
return new State(nativeState);
|
public static android.support.rastermill.FrameSequence | decodeByteArray(byte[] data)
return decodeByteArray(data, 0, data.length);
|
public static android.support.rastermill.FrameSequence | decodeByteArray(byte[] data, int offset, int length)
if (data == null) throw new IllegalArgumentException();
if (offset < 0 || length < 0 || (offset + length > data.length)) {
throw new IllegalArgumentException("invalid offset/length parameters");
}
return nativeDecodeByteArray(data, offset, length);
|
public static android.support.rastermill.FrameSequence | decodeStream(java.io.InputStream stream)
if (stream == null) throw new IllegalArgumentException();
byte[] tempStorage = new byte[16 * 1024]; // TODO: use buffer pool
return nativeDecodeStream(stream, tempStorage);
|
protected void | finalize()
try {
if (mNativeFrameSequence != 0) nativeDestroyFrameSequence(mNativeFrameSequence);
} finally {
super.finalize();
}
|
public int | getDefaultLoopCount() return mDefaultLoopCount;
|
public int | getFrameCount() return mFrameCount;
|
public int | getHeight() return mHeight;
|
public int | getWidth() return mWidth;
|
public boolean | isOpaque() return mOpaque;
|
private static native long | nativeCreateState(long nativeFrameSequence)
|
private static native android.support.rastermill.FrameSequence | nativeDecodeByteArray(byte[] data, int offset, int length)
|
private static native android.support.rastermill.FrameSequence | nativeDecodeStream(java.io.InputStream is, byte[] tempStorage)
|
private static native void | nativeDestroyFrameSequence(long nativeFrameSequence)
|
private static native void | nativeDestroyState(long nativeState)
|
private static native long | nativeGetFrame(long nativeState, int frameNr, android.graphics.Bitmap output, int previousFrameNr)
|