public class JCodecUtil extends Object
Constructor and Description |
---|
JCodecUtil() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
asciiString(String fourcc) |
static AudioDecoder |
createAudioDecoder(Codec codec,
ByteBuffer decoderSpecific) |
static Demuxer |
createDemuxer(Format format,
File input) |
static Tuple._2<Integer,Demuxer> |
createM2TSDemuxer(File input,
TrackType targetTrack) |
static VideoDecoder |
createVideoDecoder(Codec codec,
ByteBuffer decoderSpecific) |
static Codec |
detectDecoder(ByteBuffer b) |
static Format |
detectFormat(File f) |
static Format |
detectFormatBuffer(ByteBuffer b) |
static Format |
detectFormatChannel(ReadableByteChannel f) |
static int[] |
getAsIntArray(ByteBuffer yuv,
int size) |
static VideoDecoder |
getVideoDecoder(String fourcc) |
static int |
readBER32(ByteBuffer input) |
static String |
removeExtension(String name) |
static void |
savePictureAsPPM(Picture pic,
File file) |
static void |
writeBER32(ByteBuffer buffer,
int value) |
static void |
writeBER32Var(ByteBuffer bb,
int value) |
public static Format detectFormat(File f) throws IOException
IOException
public static Format detectFormatChannel(ReadableByteChannel f) throws IOException
IOException
public static Format detectFormatBuffer(ByteBuffer b)
public static Codec detectDecoder(ByteBuffer b)
public static VideoDecoder getVideoDecoder(String fourcc)
public static void savePictureAsPPM(Picture pic, File file) throws IOException
IOException
public static byte[] asciiString(String fourcc)
public static void writeBER32(ByteBuffer buffer, int value)
public static void writeBER32Var(ByteBuffer bb, int value)
public static int readBER32(ByteBuffer input)
public static int[] getAsIntArray(ByteBuffer yuv, int size)
public static Demuxer createDemuxer(Format format, File input) throws IOException
IOException
public static Tuple._2<Integer,Demuxer> createM2TSDemuxer(File input, TrackType targetTrack) throws IOException
IOException
public static AudioDecoder createAudioDecoder(Codec codec, ByteBuffer decoderSpecific) throws IOException
IOException
public static VideoDecoder createVideoDecoder(Codec codec, ByteBuffer decoderSpecific)
Copyright © 2019. All rights reserved.