Package com.jme3.app.state
Class MjpegFileWriter
java.lang.Object
com.jme3.app.state.MjpegFileWriter
- All Implemented Interfaces:
AutoCloseable
Released under BSD License
- Author:
- monceaux, normenhansen, entrusC
-
Constructor Summary
ConstructorsConstructorDescriptionMjpegFileWriter(File aviFile, int width, int height, double framerate) MjpegFileWriter(File aviFile, int width, int height, double framerate, int numFrames) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddImage(byte[] imageData) voidvoidvoidclose()voidstatic byte[]intBytes(int i) static byte[]shortBytes(short i) static intswapInt(int v) static shortswapShort(short v) byte[]writeImageToBytes(Image image, float quality)
-
Constructor Details
-
Method Details
-
addImage
- Throws:
Exception
-
addImage
- Throws:
Exception
-
addImage
- Throws:
Exception
-
finishAVI
- Throws:
IOException
-
swapInt
public static int swapInt(int v) -
swapShort
public static short swapShort(short v) -
intBytes
public static byte[] intBytes(int i) -
shortBytes
public static byte[] shortBytes(short i) -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
writeImageToBytes
- Throws:
Exception
-