org.jcodec.codecs.prores
Class ProresToThumb4x4

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

public class ProresToThumb4x4
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 downscaled 4x4 block.

Author:
The JCodec project

Field Summary
static int[] interlaced_scan_4x4
           
static int[] progressive_scan_4x4
           
 
Constructor Summary
ProresToThumb4x4()
           
 
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
 

Field Detail

progressive_scan_4x4

public static int[] progressive_scan_4x4

interlaced_scan_4x4

public static int[] interlaced_scan_4x4
Constructor Detail

ProresToThumb4x4

public ProresToThumb4x4()
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.