public class JCodecUtil extends Object
| Constructor and Description |
|---|
JCodecUtil() |
public static Format detectFormat(File f) throws IOException
IOExceptionpublic static Format detectFormatChannel(ReadableByteChannel f) throws IOException
IOExceptionpublic 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
IOExceptionpublic 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 ThreadPoolExecutor getPriorityExecutor(int nThreads)
public static Demuxer createDemuxer(Format format, File input) throws IOException
IOExceptionpublic static Tuple._2<Integer,Demuxer> createM2TSDemuxer(File input, TrackType targetTrack) throws IOException
IOExceptionpublic static AudioDecoder createAudioDecoder(Codec codec, ByteBuffer decoderSpecific) throws IOException
IOExceptionpublic static VideoDecoder createVideoDecoder(Codec codec, ByteBuffer decoderSpecific)
public static String dwToFourCC(int fourCC)
Copyright © 2018. All rights reserved.