org.jcodec.common
Class JCodecUtil

java.lang.Object
  extended by 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

Nested Class Summary
static class JCodecUtil.Format
           
 
Constructor Summary
JCodecUtil()
           
 
Method Summary
static byte[] asciiString(String fourcc)
           
static VideoDecoder detectDecoder(ByteBuffer b)
           
static JCodecUtil.Format detectFormat(ByteBuffer b)
           
static JCodecUtil.Format detectFormat(File f)
           
static int[] getAsIntArray(ByteBuffer yuv, int size)
           
static ThreadPoolExecutor getPriorityExecutor(int nThreads)
           
static VideoDecoder getVideoDecoder(String fourcc)
           
static int readBER32(ByteBuffer input)
           
static String removeExtension(String name)
           
static void savePicture(Picture pic, String format, File file)
           
static void savePictureAsPPM(Picture pic, File file)
           
static BufferedImage toBufferedImage(Picture pic)
           
static void writeBER32(ByteBuffer buffer, int value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCodecUtil

public JCodecUtil()
Method Detail

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.