SubSAD8x8

Subtracts two blocks, stores the result in the third block and computes a sum of absolute differences.

Syntax

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

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.

pSAD

Pointer to the resulting SAD.

Description

The function ippiSubSAD8x8_8u16s_C1R is declared in the ippvc.h file. This function subtracts two blocks and stores the result in pDst block and stores SAD of the result in pSAD. This function can be used in motion estimation process to get a difference of current and reference blocks.

This function is 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.