Class RawHandler

java.lang.Object
net.bramp.ffmpeg.nut.RawHandler

public class RawHandler extends Object
  • Constructor Details

  • Method Details

    • toBufferedImage

      public static BufferedImage toBufferedImage(Frame frame)
    • streamToAudioFormat

      Parses a FourCC into a AudioEncoding based on the following rules:
      "ALAW" = A-LAW
      "ULAW" = MU-LAW
      P[type][interleaving][bits] = little-endian PCM
      [bits][interleaving][type]P = big-endian PCM
      Where:
        [type] is S for signed integer, U for unsigned integer, F for IEEE float
        [interleaving] is D for default, P is for planar.
        [bits] is 8/16/24/32
      Parameters:
      header - The stream's header.
      Returns:
      The AudioFormat matching this header.
    • toAudioInputStream

      public static AudioInputStream toAudioInputStream(Frame frame)