public class MjpegFileWriter
extends java.lang.Object
Constructor and Description |
---|
MjpegFileWriter(java.io.File aviFile,
int width,
int height,
double framerate) |
MjpegFileWriter(java.io.File aviFile,
int width,
int height,
double framerate,
int numFrames) |
Modifier and Type | Method and Description |
---|---|
void |
addImage(android.graphics.Bitmap image) |
void |
addImage(android.graphics.Bitmap image,
float quality) |
void |
addImage(byte[] imagedata) |
void |
finishAVI() |
static byte[] |
intBytes(int i) |
static byte[] |
shortBytes(short i) |
static int |
swapInt(int v) |
static short |
swapShort(short v) |
byte[] |
writeImageToBytes(android.graphics.Bitmap image,
float quality) |
public MjpegFileWriter(java.io.File aviFile, int width, int height, double framerate) throws java.lang.Exception
java.lang.Exception
public MjpegFileWriter(java.io.File aviFile, int width, int height, double framerate, int numFrames) throws java.lang.Exception
java.lang.Exception
public void addImage(android.graphics.Bitmap image) throws java.lang.Exception
java.lang.Exception
public void addImage(android.graphics.Bitmap image, float quality) throws java.lang.Exception
java.lang.Exception
public void addImage(byte[] imagedata) throws java.lang.Exception
java.lang.Exception
public void finishAVI() throws java.lang.Exception
java.lang.Exception
public static int swapInt(int v)
public static short swapShort(short v)
public static byte[] intBytes(int i)
public static byte[] shortBytes(short i)
public byte[] writeImageToBytes(android.graphics.Bitmap image, float quality) throws java.lang.Exception
java.lang.Exception