Adds blocks interpolated with half-pixel accuracy prediction to difference with saturation.
IppStatus ippiAdd8x8HP_16s8u_C1RS(const Ipp16s* pSrc1 , int src1Step, Ipp8u* pSrc2, int src2Step, Ipp8u* pDst, int dstStep , int acc, int rounding);
pSrc1 |
Pointer to the source block of differences. |
src1Step |
Distance in bytes between starts of the consecutive lines in the pSrc1 plane. |
pSrc2 |
Pointer to the source block of prediction. |
src2Step |
Distance in bytes between starts of the consecutive lines in the pSrc2 plane. |
pDst |
Pointer to the second source/destination block. |
dstStep |
Distance in bytes between starts of the consecutive lines in the destination plane. |
acc |
Parameter that determines half-pixel accuracy. |
rounding |
Parameter that determines type of rounding for pixel interpolation; may be 0 or 1. |
The function ippiAdd8x8HP_16s8u_C1RS is declared in the ippvc.h file. This function adds 16s data from pSrc1 block to the data from pSrc2 block interpolated with half-pixel accuracy with saturation. It can be used in motion compensation process to add a reconstructed block of prediction errors to the predictor. Parameter rounding has the same meaning as RTYPE in [ITUH263] and vop_rounding_type in [ISO14496]. Parameter acc is a two-bit value. Bit 0 defines half-pixel offset in horizontal direction and bit 1 defines half-pixel offset in vertical direction. The process of half-pixel interpolation is described in [ITUH263] subclause 6.1.2 and in [ISO14496] subclause 7.6.2.1.
This function is used in the H.263 and MPEG-4 encoders and decoders included into Intel IPP Samples. See introduction to Motion Compensation.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error when at least one input pointer is NULL. |
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.