org.jcodec.codecs.h264.io
Class CAVLC
java.lang.Object
org.jcodec.codecs.h264.io.CAVLC
public class CAVLC
- extends Object
This class is part of JCodec ( www.jcodec.org ) This software is distributed
under FreeBSD License
Non-CABAC H.264 symbols read/write routines
- Author:
- Jay Codec
|
Method Summary |
protected VLC |
codeTableChromaDC()
|
protected int |
codeTableLuma(boolean leftAvailable,
MBType leftMBType,
int leftToken,
boolean topAvailable,
MBType topMBType,
int topToken)
|
static int |
coeffToken(int totalCoeff,
int trailingOnes)
|
VLC |
getCoeffTokenVLCForChromaDC()
|
VLC |
getCoeffTokenVLCForLuma(boolean leftAvailable,
MBType leftMBType,
int leftToken,
boolean topAvailable,
MBType topMBType,
int topToken)
|
int |
readACBlock(BitReader reader,
int[] coeff,
int blkIndX,
int blkIndY,
boolean leftAvailable,
MBType leftMbType,
boolean topAvailable,
MBType topMbType,
int firstCoeff,
int nCoeff,
int[] zigzag4x4)
|
void |
readChromaDCBlock(BitReader reader,
int[] coeff,
boolean leftAvailable,
boolean topAvailable)
|
int |
readCoeffs(BitReader in,
VLC coeffTokenTab,
VLC[] totalZerosTab,
int[] coeffLevel,
int firstCoeff,
int nCoeff,
int[] zigzag)
|
void |
readLumaDCBlock(BitReader reader,
int[] coeff,
int mbX,
boolean leftAvailable,
MBType leftMbType,
boolean topAvailable,
MBType topMbType,
int[] zigzag4x4)
|
void |
setZeroCoeff(int blkIndX,
int blkIndY)
|
static int |
totalCoeff(int coeffToken)
|
static int |
trailingOnes(int coeffToken)
|
void |
writeACBlock(BitWriter out,
int blkIndX,
int blkIndY,
MBType leftMBType,
MBType topMBType,
int[] coeff,
VLC[] totalZerosTab,
int firstCoeff,
int maxCoeff,
int[] scan)
|
void |
writeChrDCBlock(BitWriter out,
int[] coeff,
VLC[] totalZerosTab,
int firstCoeff,
int maxCoeff,
int[] scan)
|
void |
writeLumaDCBlock(BitWriter out,
int blkIndX,
int blkIndY,
MBType leftMBType,
MBType topMBType,
int[] coeff,
VLC[] totalZerosTab,
int firstCoeff,
int maxCoeff,
int[] scan)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NO_ZIGZAG
public static int[] NO_ZIGZAG
CAVLC
public CAVLC(SeqParameterSet sps,
PictureParameterSet pps,
int mbW,
int mbH)
writeACBlock
public void writeACBlock(BitWriter out,
int blkIndX,
int blkIndY,
MBType leftMBType,
MBType topMBType,
int[] coeff,
VLC[] totalZerosTab,
int firstCoeff,
int maxCoeff,
int[] scan)
writeChrDCBlock
public void writeChrDCBlock(BitWriter out,
int[] coeff,
VLC[] totalZerosTab,
int firstCoeff,
int maxCoeff,
int[] scan)
writeLumaDCBlock
public void writeLumaDCBlock(BitWriter out,
int blkIndX,
int blkIndY,
MBType leftMBType,
MBType topMBType,
int[] coeff,
VLC[] totalZerosTab,
int firstCoeff,
int maxCoeff,
int[] scan)
getCoeffTokenVLCForLuma
public VLC getCoeffTokenVLCForLuma(boolean leftAvailable,
MBType leftMBType,
int leftToken,
boolean topAvailable,
MBType topMBType,
int topToken)
getCoeffTokenVLCForChromaDC
public VLC getCoeffTokenVLCForChromaDC()
codeTableLuma
protected int codeTableLuma(boolean leftAvailable,
MBType leftMBType,
int leftToken,
boolean topAvailable,
MBType topMBType,
int topToken)
codeTableChromaDC
protected VLC codeTableChromaDC()
readCoeffs
public int readCoeffs(BitReader in,
VLC coeffTokenTab,
VLC[] totalZerosTab,
int[] coeffLevel,
int firstCoeff,
int nCoeff,
int[] zigzag)
coeffToken
public static final int coeffToken(int totalCoeff,
int trailingOnes)
totalCoeff
public static final int totalCoeff(int coeffToken)
trailingOnes
public static final int trailingOnes(int coeffToken)
readChromaDCBlock
public void readChromaDCBlock(BitReader reader,
int[] coeff,
boolean leftAvailable,
boolean topAvailable)
readLumaDCBlock
public void readLumaDCBlock(BitReader reader,
int[] coeff,
int mbX,
boolean leftAvailable,
MBType leftMbType,
boolean topAvailable,
MBType topMbType,
int[] zigzag4x4)
readACBlock
public int readACBlock(BitReader reader,
int[] coeff,
int blkIndX,
int blkIndY,
boolean leftAvailable,
MBType leftMbType,
boolean topAvailable,
MBType topMbType,
int firstCoeff,
int nCoeff,
int[] zigzag4x4)
setZeroCoeff
public void setZeroCoeff(int blkIndX,
int blkIndY)
Copyright © 2013. All Rights Reserved.