org.jcodec.common
Class JCodecUtil
java.lang.Object
org.jcodec.common.JCodecUtil
public class JCodecUtil
- extends Object
This class is part of JCodec ( www.jcodec.org ) This software is distributed
under FreeBSD License
- Author:
- The JCodec project
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JCodecUtil
public JCodecUtil()
detectFormat
public static JCodecUtil.Format detectFormat(File f)
throws IOException
- Throws:
IOException
detectFormat
public static JCodecUtil.Format detectFormat(ByteBuffer b)
detectDecoder
public static VideoDecoder detectDecoder(ByteBuffer b)
getVideoDecoder
public static VideoDecoder getVideoDecoder(String fourcc)
savePicture
public static void savePicture(Picture pic,
String format,
File file)
throws IOException
- Throws:
IOException
toBufferedImage
public static BufferedImage toBufferedImage(Picture pic)
savePictureAsPPM
public static void savePictureAsPPM(Picture pic,
File file)
throws IOException
- Throws:
IOException
asciiString
public static byte[] asciiString(String fourcc)
writeBER32
public static void writeBER32(ByteBuffer buffer,
int value)
readBER32
public static int readBER32(ByteBuffer input)
getAsIntArray
public static int[] getAsIntArray(ByteBuffer yuv,
int size)
getPriorityExecutor
public static ThreadPoolExecutor getPriorityExecutor(int nThreads)
removeExtension
public static String removeExtension(String name)
Copyright © 2013. All Rights Reserved.