Class MjpegFileWriter

java.lang.Object
com.jme3.app.state.MjpegFileWriter
All Implemented Interfaces:
AutoCloseable

public class MjpegFileWriter extends Object implements AutoCloseable
Released under BSD License
Author:
monceaux, normenhansen, entrusC
  • Constructor Details

    • MjpegFileWriter

      public MjpegFileWriter(File aviFile, int width, int height, double framerate) throws Exception
      Throws:
      Exception
    • MjpegFileWriter

      public MjpegFileWriter(File aviFile, int width, int height, double framerate, int numFrames) throws Exception
      Throws:
      Exception
  • Method Details

    • addImage

      public void addImage(Image image) throws Exception
      Throws:
      Exception
    • addImage

      public void addImage(Image image, float quality) throws Exception
      Throws:
      Exception
    • addImage

      public void addImage(byte[] imageData) throws Exception
      Throws:
      Exception
    • finishAVI

      public void finishAVI() throws IOException
      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

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception
    • writeImageToBytes

      public byte[] writeImageToBytes(Image image, float quality) throws Exception
      Throws:
      Exception