Methods Summary |
---|
public static native android.graphics.Movie | decodeByteArray(byte[] data, int offset, int length)
|
public static android.graphics.Movie | decodeFile(java.lang.String pathName)
InputStream is;
try {
is = new FileInputStream(pathName);
}
catch (java.io.FileNotFoundException e) {
return null;
}
return decodeTempStream(is);
|
public static android.graphics.Movie | decodeStream(java.io.InputStream is)
if (is == null) {
return null;
}
if (is instanceof AssetManager.AssetInputStream) {
final long asset = ((AssetManager.AssetInputStream) is).getNativeAsset();
return nativeDecodeAsset(asset);
}
return nativeDecodeStream(is);
|
private static android.graphics.Movie | decodeTempStream(java.io.InputStream is)
Movie moov = null;
try {
moov = decodeStream(is);
is.close();
}
catch (java.io.IOException e) {
/* do nothing.
If the exception happened on open, moov will be null.
If it happened on close, moov is still valid.
*/
}
return moov;
|
public native void | draw(Canvas canvas, float x, float y, Paint paint)
|
public void | draw(Canvas canvas, float x, float y)
draw(canvas, x, y, null);
|
public native int | duration()
|
protected void | finalize()
try {
nativeDestructor(mNativeMovie);
} finally {
super.finalize();
}
|
public native int | height()
|
public native boolean | isOpaque()
|
private static native android.graphics.Movie | nativeDecodeAsset(long asset)
|
private static native android.graphics.Movie | nativeDecodeStream(java.io.InputStream is)
|
private static native void | nativeDestructor(long nativeMovie)
|
public native boolean | setTime(int relativeMilliseconds)
|
public native int | width()
|