org.jcodec.codecs.prores
Class ProresToThumb2x2

java.lang.Object
  extended by org.jcodec.codecs.prores.ProresDecoder
      extended by org.jcodec.codecs.prores.ProresToThumb2x2
All Implemented Interfaces:
VideoDecoder

public class ProresToThumb2x2
extends ProresDecoder

This class is part of JCodec ( www.jcodec.org ) This software is distributed under FreeBSD License Decodes a ProRes file in low res. Decodes each 8x8 block as a downscaled 2x2 block.

Author:
The JCodec project

Constructor Summary
ProresToThumb2x2()
           
 
Method Summary
 Picture decodeFrame(ByteBuffer data, int[][] target)
          Decodes a video frame to an uncompressed picture in codec native colorspace
protected  int[] decodeOnePlane(BitReader bits, int blocksPerSlice, int[] qMat, int[] scan, int mbX, int mbY, int plane)
           
protected  void putSlice(int[][] result, int lumaStride, int mbX, int mbY, int[] y, int[] u, int[] v, int dist, int shift, int chromaType)
           
 
Methods inherited from class org.jcodec.codecs.prores.ProresDecoder
decodeFields, decodePicture, golumbSign, golumbToSigned, isProgressive, nZeros, probe, readACCoeffs, readCodeword, readDCCoeffs, readFrameHeader, readPictureHeader, scaleMat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProresToThumb2x2

public ProresToThumb2x2()
Method Detail

decodeOnePlane

protected int[] decodeOnePlane(BitReader bits,
                               int blocksPerSlice,
                               int[] qMat,
                               int[] scan,
                               int mbX,
                               int mbY,
                               int plane)
Overrides:
decodeOnePlane in class ProresDecoder

decodeFrame

public Picture decodeFrame(ByteBuffer data,
                           int[][] target)
Description copied from interface: VideoDecoder
Decodes a video frame to an uncompressed picture in codec native colorspace

Specified by:
decodeFrame in interface VideoDecoder
Overrides:
decodeFrame in class ProresDecoder
Parameters:
data - Compressed frame data

putSlice

protected void putSlice(int[][] result,
                        int lumaStride,
                        int mbX,
                        int mbY,
                        int[] y,
                        int[] u,
                        int[] v,
                        int dist,
                        int shift,
                        int chromaType)
Overrides:
putSlice in class ProresDecoder


Copyright © 2013. All Rights Reserved.