Applies weighting process to a predicted block.
IppStatus ippiWeightPrediction_AVS_8u_C1R(const Ipp8u* pSrc, Ipp32s srcStep, Ipp8u* pDst, Ipp32s dstStep, Ipp32u scale, Ipp32s shift, IppiSize sizeBlock);
pSrc |
Pointer to the source data. |
srcStep |
Distance in bytes between starts of the consecutive lines in the source data. |
pDst |
Pointer to the destination buffer. |
dstStep |
Distance in bytes between starts of the consecutive lines in the destination buffer. |
scale |
Scale value. |
shift |
Shift. |
sizeBlock |
Size of the pointed data block. It could be 16 or 8 in each dimension. |
The function ippiWeightPrediction_AVS_8u_C1R is declared in the ippvc.h file. This function applies the weighting process to predicted blocks according to 9.9.3 of [AVS] when slice_weighting_flag is equal to 1.
The function uses the following formula:
where x ∈ [0,roi.width-1], y ∈ [0,roi.height-1]
Values of scale and shift are parsed from the bitstream.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error condition if at least one of the specified pointers is NULL. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.