Average two blocks with weights if ulog2wd is equal to 5.
IppStatus ippiBiDirWeightBlockImplicit_H264_8u_P2P1R(const Ipp8u* pSrc1, const Ipp8u* pSrc2, Ipp8u* pDst, Ipp32u srcStep, Ipp32u dstStep, Ipp32s iWeight1, Ipp32s iWeight2, IppiSize roi);
IppStatus ippiBidirWeightImplicit_H264_16u_P2P1R(const IppVCBidir_16u* bidirInfo, Ipp32s iWeight1, Ipp32s iWeight2);
pSrc1 |
Pointer to the first source. |
pSrc2 |
Pointer to the second source. |
pDst |
Pointer to the result. |
srcStep |
Distance in items between starts of the consecutive lines in the source images. |
dstStep |
Distance in items between starts of the consecutive lines in the result image. |
iWeight1, iWeight2 |
Weights. |
roi |
Flag that specifies the region of interest (could be 16, 8, 4 or 2 in each dimension). |
bidirInfo |
Pointer to the IppVCBidir_16u structure. |
The functions ippiBiDirWeightBlockImplicit_H264_8u_P2P1R and ippiBidirWeightImplicit_H264_16u_P2P1R are declared in the ippvc.h file. These functions perform implicit mode weighted prediction as specified in 8.4.2.3.2 of [ITUH264].
These functions use formula 8-272 of [ITUH264], but according to 8-273, 8-274, and 8-275 of ITUH264 the log2 weight denominator ulog2wd is equal to 5, and both iOffset1, iOffset2 offsets are equal to zero. So the functions use the following formula:
where x ∈ [0,roi.width-1], y ∈ [0,roi.height-1],
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 srcStep value or dstStep 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.