Predict motion of luma macroblock intra-frame
SSE2
FwStatus | fwiPredictIntra_16x16_H264_8u_C1IR | ( | Fw8u * pSrcDst, Fw32s srcDstStep, FwIntra16x16PredMode_H264 predMode, Fw32s availability ); |
availability | Flag that indicates availability of the samples used for prediction. | |
pSrcDst | Pointer to the start of the block. | |
predMode | Specifies the prediction mode of the Intra_4x4 prediction process for luma samples. | |
srcDstStep | Source and destination buffer step size in bytes (width of both buffers in bytes). |
This function performs intra-frame motion prediction by comparing a 16X16 luma macroblock to previously-encoded neighboring 16X16 luma macroblocks within the same frame. Results are written back to the source location. Comparison is done in accordance with JVTG050 8.3.2., using one of the following prediction modes specified by parameter predMode.
Name of Constant Prediction Mode JVTG050 Reference
FW_16x16_VERT Intra_16x16_Vertical 8.3.2.1 FW_16x16_HOR Intra_16x16_Horizontal 8.3.2.2 FW_16x16_DC Intra_16x16_DC 8.3.2.3 FW_16x16_PLANE Intra_16x16_Plane 8.3.2.4
The availability parameter is calculated as follows.
B1*FW_LEFT + B2*FW_UPPER_LEFT + B3*FW_UPPER
The constants FW_LEFT, FW_UPPER_LEFT, and FW_UPPER are from FwLayoutFlag.
The variables B1, B2, and B3 take the following values.
0 - when a macroblock is not available for prediction 1 - when a macroblock is available for prediction