ReconstructChromaIntraMB_H264

Reconstructs intra chroma macroblock.

Syntax

IppStatus ippiReconstructChromaIntraMB_H264_16s8u_P2R(Ipp16s** ppSrcCoeff, Ipp8u* pSrcDstUPlane, Ipp8u* pSrcDstVPlane, const Ipp32u srcDstUVStep, const IppIntraChromaPredMode_H264 intraChromaMode, const Ipp32u cbp4x4, const Ipp32u ChromaQP, const Ipp8u edgeType);

IppStatus ippiReconstructChromaIntraMB_H264_16s8u_C2R(Ipp16s** ppSrcDstCoeff, Ipp8u* pSrcDstUVPlane, Ipp32s srcDstUVStep, IppIntraChromaPredMode_H264 intraChromaMode, Ipp32u cbp4x4, Ipp32u ChromaQP, Ipp32u edgeType);

Parameters

ppSrcCoeff, ppSrcDstCoeff

Pointer to the order of 4x4 blocks of residual coefficients for this macroblock, which are taken as a result of Huffman decoding (2x2 DC U-block, 2x2 DC V-block, 4x4 AC U-blocks, 4x4 AC V-blocks if the block is not zero-filled) in the same order as shown in Figure 8‑7 of [JVTG050]. Pointer is updated by the function and points to the blocks for the next macroblock.

pSrcDstUPlane

Pointer to current U plane that is reconstructed.

pSrcDstVPlane

Pointer to current V plane that is reconstructed.

pSrcDstUVPlane

Pointer to current U and V planes in the N12 format, which are reconstructed.

srcDstUVStep

Plane step.

intraChromaMode

Prediction mode of the Intra_chroma prediction process for chroma samples. It is defined in the same way as in PredictIntraChroma8x8_H264 function.

cbp4x4

Coded block pattern. If cbp4x4 & (1<<(IPPVC_CBP_1ST_CHROMA_DC_BITPOS) is not equal to 0, 2x2 DC U-block is not zero-filled and exists in ppSrcCoeff. If cbp4x4 & (1<<(IPPVC_CBP_1ST_CHROMA_DC_BITPOS+ 1)) is not equal to 0, 2x2 DC U-block is not zero-filled and exists in ppSrcCoeff. If cbp4x4 & (1<<(IPPVC_CBP_1ST_CHROMA_AC_BITPOS+ i)) is not equal to 0, (0 ≤ i < 4), i-th 4x4 AC U-block is not zero-filled and exists in ppSrcCoeff. If cbp4x4 & (1<<(IPPVC_CBP_1ST_CHROMA_AC_BITPOS+ i+4)) is not equal to 0, (0 ≤ i < 4), i-th 4x4 AC U-block is not zero-filled and exists in ppSrcCoeff.

ChromaQP

Chroma quantizer ( QPC in [JVTG050]). It must be within the range [0;39].

edgeType

Flag that specifies the availability of the macroblocks used for prediction. If the upper macroblock is not available for 16x16 intra prediction, edgeType&IPPVC_TOP_EDGE must be non-zero. If the left macroblock is not available for 16x16 intra prediction, edgeType&IPPVC_LEFT_EDGE must be non-zero. If the upper-left macroblock is not available for 16x16 intra prediction, edgeType&IPPVC_TOP_LEFT_EDGE must be non-zero.

Description

The functions ippiReconstructChromaIntraMB_H264_16s8u_P2R and ippiReconstructChromaIntraMB_H264_16s8u_C2R are declared in the ippvc.h file.

ippiReconstructChromaIntraMB_H264_16s8u_P2R reconstructs an intra chroma macroblock (an 8x8 U macroblock and an 8x8 V macroblock).

ippiReconstructChromaIntraMB_H264_16s8u_C2R reconstructs an intra chroma macroblock (a 16x8 UV macroblock in the N12 chroma format.

Each of the functions works as follows:

These functions are used in the H.264 decoder included into Intel IPP Samples. See introduction to H.264.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error condition if at least one of the specified pointers is NULL.

ippStsOutOfRangeErr

ChromaQP is less than 0 or greater than 39.

ippStsStepErr

Indicates an error condition if srcDstUVStep is less than 0.


Submit feedback on this help topic

Copyright © 2000 - 2011, Intel Corporation. All rights reserved.