Package net.bramp.ffmpeg.nut
Class RawHandler
- java.lang.Object
-
- net.bramp.ffmpeg.nut.RawHandler
-
public class RawHandler extends Object
-
-
Constructor Summary
Constructors Constructor Description RawHandler()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AudioFormatstreamToAudioFormat(StreamHeaderPacket header)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/32static AudioInputStreamtoAudioInputStream(Frame frame)static BufferedImagetoBufferedImage(Frame frame)
-
-
-
Constructor Detail
-
RawHandler
public RawHandler()
-
-
Method Detail
-
toBufferedImage
public static BufferedImage toBufferedImage(Frame frame)
-
streamToAudioFormat
public static AudioFormat streamToAudioFormat(StreamHeaderPacket header)
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)
-
-