Class MjpegFileWriter

java.lang.Object
com.jme3.app.state.MjpegFileWriter

public class MjpegFileWriter extends Object
Released under BSD License
  • 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(android.graphics.Bitmap image) throws Exception
      Throws:
      Exception
    • addImage

      public void addImage(android.graphics.Bitmap image, float quality) throws Exception
      Throws:
      Exception
    • addImage

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

      public void finishAVI() throws Exception
      Throws:
      Exception
    • 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)
    • writeImageToBytes

      public byte[] writeImageToBytes(android.graphics.Bitmap image, float quality) throws Exception
      Throws:
      Exception