ReconstructChromaInterMB_H264

Reconstruct chroma macroblock inter-frame

Supported Technologies

SSE2

Synopsis

FwStatus   fwiReconstructChromaInterMB_H264_16s8u_P2R ( Fw16s ** ppSrcCoeffFw8u * pSrcDstUPlaneFw8u * pSrcDstVPlaneconst Fw32u srcDstStepconst Fw32u cbp4x4const Fw32s ChromaQP );

Parameters

ChromaQP   Chroma quantizer, must be within the range [0;39].
cbp4x4   Coded block pattern. If cbp4x4 & (1<<(1+i))is not equal to 0 (0 < i < 16), i-th 4x4 AC. Luma block is not zero-filled and it exists in ppSrcCoeff.
pSrcDstUPlane   Pointer to a macroblock that is reconstructed in the current U plane. The macroblock must contain inter-prediction samples.
pSrcDstVPlane   Pointer to a macroblock that is reconstructed in the current V plane. The macroblock must contain inter-prediction samples.
ppSrcCoeff   Double pointer to the order of 4x4 blocks of residual coefficients for a macroblock, the results 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). The pointer is updated by the function and points to the blocks for the next macroblock.
srcDstStep   Source and destination buffer step size in bytes (width of both buffers in bytes).

Description

This function steps through source U and V plane buffers and reconstructs inter-frame predicted 8X8 U and 8X8 V chroma macroblocks as follows.

Performs an integer inverse transformation and dequantizes 2X2 U and V DC coefficients in accordance with JVTG050 8.5.7.

Scales, performs an integer inverse transformation, and shifts 4X4 AC U blocks in accordance with JVTG050 8.5.8., in the order shown in JVTG050, Figure 8-7.

Shifts 4X4 AC V blocks in accordance with JVTG050 8.5.8., in the order shown in JVTG050, Figure 8-7.

Adds 8X8 inter-frame prediction blocks and 8X8 residual blocks in accordance with JVTG050, Figure 8-247.

Results are written back to the source plane buffers.