Sub4x4, Sub8x8, Sub16x16

Subtract two blocks and store the result in the third block.

Syntax

IppStatus ippiSub4x4_8u16s_C1R(const Ipp8u* pSrc1, int src1Step, const Ipp8u* pSrc2, int src2Step, Ipp16s* pDst, int dstStep);

IppStatus ippiSub4x4_16u16s_C1R(const Ipp16u* pSrc1, int src1Step, const Ipp16u* pSrc2, int src2Step, Ipp16s* pDst, int dstStep);

IppStatus ippiSub8x8_8u16s_C1R(const Ipp8u* pSrc1, int src1Step, const Ipp8u* pSrc2, int src2Step, Ipp16s* pDst, int dstStep);

IppStatus ippiSub8x8_16u16s_C1R(const Ipp16u* pSrc1, Ipp32s src1Step, const Ipp16u* pSrc2, Ipp32s src2Step, Ipp16s* pDst, Ipp32s dstStep);

IppStatus ippiSub16x16_8u16s_C1R (const Ipp8u* pSrc1, int src1Step, const Ipp8u* pSrc2, int src2Step, Ipp16s* pDst, int dstStep);

Parameters

pSrc1

Pointer to the first source block.

src1Step

Step in bytes through the first source plane.

pSrc2

Pointer to the second source block.

src2Step

Step in bytes through the second source plane.

pDst

Pointer to the destination block.

dstStep

Step in bytes through the destination plane.

Description

The functions ippiSub4x4_8u16s_C1R, ippiSub4x4_16u16s_C1R, ippiSub8x8_8u16s_C1R, ippiSub8x8_16u16s_C1R, and ippiSub16x16_8u16s_C1R are declared in the ippvc.h file. These functions subtract two blocks and store the result in pDst block. The functions can be used in motion estimation process to get a difference of current and reference blocks.

These functions are used in the H.261, H.263, and MPEG-4 encoders included into Intel IPP Samples. See introduction to Motion Estimation.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when at least one input pointer is NULL.


Submit feedback on this help topic

Copyright © 2000 - 2010, Intel Corporation. All rights reserved.