Weigh source block.
IppStatus ippiUniDirWeightBlock_H264_8u_C1IR(Ipp8u* pSrcDst, Ipp32u srcDstStep, Ipp32u ulog2wd, Ipp32s iWeight, Ipp32s iOffset, IppiSize roi);
IppStatus ippiUniDirWeightBlock_H264_8u_C2R(IppVCWeightBlock_8u* pIppVCWeightBlock, const IppVCWeightParams_8u* pIppVCWeightParams);
IppStatus ippiUnidirWeight_H264_16u_IP2P1R(Ipp16u* pSrcDst, Ipp32u srcDstStep, Ipp32u ulog2wd, Ipp32s iWeight, Ipp32s iOffset, IppiSize roi, Ipp32s bitDepth);
pSrcDst |
Pointer to the source and the result. |
srcDstStep |
Distance in items between starts of the consecutive lines in the source and result images. |
ulog2wd |
log2 weight denominator. |
iWeight |
Weight. |
iOffset |
Offset. |
roi |
Flag that specifies the region of interest (could be 16, 8, 4 or 2 in each dimension). |
bitDepth |
Number of bits of the plane sample with range [8.. 14]. |
pIppVCWeightBlock |
Pointer to the structure that holds parameters for both source and destination planes. Only pDst, dstStep, and roiSize are used. |
pIppVCWeightParams |
Pointer to the structure that holds weighting parameters for both channels (U and V) of the source plane. |
The functions ippiUniDirWeightBlock_H264_8u_C1IR, ippiUniDirWeightBlock_H264_8u_C2R, and ippiUnidirWeight_H264_16u_IP2P1R are declared in the ippvc.h file. These functions perform weighted prediction as specified in 8.4.2.3.2 of [ITUH264] when predFlagL0 is equal to 1 and predFlagL1 are equal to 0 or when predFlagL0 is equal to 0 and predFlagL1 are equal to 1.
ippiUniDirWeightBlock_H264_8u_C2R is intended for a chrominance combined plane as in the N12 format.
The functions use the following formula:
if(logWD >= 1)
where x ∈ [0,roi.width-1], y ∈ [0,roi.height-1],
The above formula corresponds to formula 8-270 and 8-271 of ITUH264.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error condition if at least one of the specified pointers is NULL. |
ippStsStepErr |
Indicates an error condition if srcDstStep value is less than roi.width. |
ippStsSizeErr |
Indicates an error condition if roi.width or roi.height value is not equal to 2 or 4 or 8 or 16. |
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.