public class CAVLC extends Object implements SaveRestore
Modifier and Type | Field and Description |
---|---|
static int[] |
NO_ZIGZAG |
Constructor and Description |
---|
CAVLC(SeqParameterSet sps,
PictureParameterSet pps,
int mbW,
int mbH) |
Modifier and Type | Method and Description |
---|---|
protected VLC |
codeTableChromaDC() |
protected int |
codeTableLuma(boolean leftAvailable,
MBType leftMBType,
int leftToken,
boolean topAvailable,
MBType topMBType,
int topToken) |
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 |
restore() |
void |
save() |
void |
setZeroCoeff(int blkIndX,
int blkIndY) |
static int |
totalCoeff(int coeffToken) |
static int |
trailingOnes(int coeffToken) |
int |
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) |
public CAVLC(SeqParameterSet sps, PictureParameterSet pps, int mbW, int mbH)
public void save()
save
in interface SaveRestore
public void restore()
restore
in interface SaveRestore
public int writeACBlock(BitWriter out, int blkIndX, int blkIndY, MBType leftMBType, MBType topMBType, int[] coeff, VLC[] totalZerosTab, int firstCoeff, int maxCoeff, int[] scan)
public void writeChrDCBlock(BitWriter out, int[] coeff, VLC[] totalZerosTab, int firstCoeff, int maxCoeff, int[] scan)
public void writeLumaDCBlock(BitWriter out, int blkIndX, int blkIndY, MBType leftMBType, MBType topMBType, int[] coeff, VLC[] totalZerosTab, int firstCoeff, int maxCoeff, int[] scan)
public VLC getCoeffTokenVLCForLuma(boolean leftAvailable, MBType leftMBType, int leftToken, boolean topAvailable, MBType topMBType, int topToken)
public VLC getCoeffTokenVLCForChromaDC()
protected int codeTableLuma(boolean leftAvailable, MBType leftMBType, int leftToken, boolean topAvailable, MBType topMBType, int topToken)
protected VLC codeTableChromaDC()
public int readCoeffs(BitReader _in, VLC coeffTokenTab, VLC[] totalZerosTab, int[] coeffLevel, int firstCoeff, int nCoeff, int[] zigzag)
public static final int totalCoeff(int coeffToken)
public static final int trailingOnes(int coeffToken)
public void readChromaDCBlock(BitReader reader, int[] coeff, boolean leftAvailable, boolean topAvailable)
public void readLumaDCBlock(BitReader reader, int[] coeff, int mbX, boolean leftAvailable, MBType leftMbType, boolean topAvailable, MBType topMbType, int[] zigzag4x4)
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)
public void setZeroCoeff(int blkIndX, int blkIndY)
Copyright © 2019. All rights reserved.