DecodeCAVLCChromaDcCoeffs_H264

Decode Chroma CAVLC bitstream

Supported Technologies

SSE2

Synopsis

FwStatus   fwiDecodeCAVLCChromaDcCoeffs_H264_1u16s ( Fw32u ** ppBitStreamFw32s * pBitOffsetFw16s * pNumCoeffFw16s ** ppDstCoeffsconst Fw32s * pTblCoeffTokenconst Fw32s ** ppTblTotalZerosCRconst Fw32s ** ppTblRunBefore );

Parameters

pBitOffset   Pointer to a bit position within the byte that ppBitStream points to. Valid within the range 0 to 7. The pointer is updated after motion vector decoding.
pNumCoeff   Pointer to the output number of non-zero coefficients.
pTblCoeffToken   Pointer to a table of coefficient tokens.
ppBitStream   Double pointer to the current position in the bit stream.
ppDstCoeffs   Double pointer to a 4x4 block of coefficients calculated by the function. The function shifts pointer *ppDstCoeffs on 16.
ppTblRunBefore   Double pointer to a RunBefore table.
ppTblTotalZerosCR   Double pointer to a chroma DC TotalZeros table.

Description

This function parses and decodes a source stream of MPEG-4/AVC Chroma DC video syntax elements in CAVLC format. Result coefficients are written to a series of 2X2 destination blocks.

Parameter pTblCoeffToken is = -1, equivalent to element pTblCoeffToken[3] of the DecodeCAVLCCoeffs_H264 function.

Parameter pTblCoeffToken points to a table that contains codes, the number of trailing one transform coefficients and the total number of non-zero transform coefficients, in accordance with JVTG050 Table 9-5.

Each element of pointer array ppTblRunBefore except for ppTblRunBefore[0] points to a table that contains codes and values (JVTG050 run_before) in accordance with JVTG050 Table 9-10. Element ppTblRunBefore[0] is not used.

ppTblRunBefore[i] contains codes and values that correspond to JVTG050 zerosLeft =i, 0 < i < 7.

ppTblRunBefore[7] contains codes and values that correspond to JVTG050 zerosLeft > 6.

Each element of pointer array ppTblTotalZeros except for ppTblTotalZeros[0] points to a table that contains codes and values (JVTG050 total_zeros) in accordance with JVTG050 Table 9-9. Element ppTblTotalZeros[0] is not used.

Each element ppTblTotalZeros[i] contains codes and values that correspond to JVTG050 TotalCoeff = i, 0 < i < 4.