SAD16x16

Evaluates sum of absolute difference between current and reference 16X16 blocks.

Syntax

IppStatus ippiSAD16x16_8u32s(const Ipp8u* pSrc, Ipp32s srcStep, const Ipp8u* pRef, Ipp32s refStep, Ipp32s* pSAD, Ipp32s mcType);

IppStatus ippiSAD16x16_16u32s_C1R(const Ipp16u* pSrc, Ipp32s srcStep, const Ipp16u* pRef, Ipp32s refStep, Ipp32s* pSAD, Ipp32s mcType);

Parameters

pSrc

Pointer to the current block of specified size.

srcStep

Distance in bytes between starts of the consecutive lines in the source image.

pRef

Pointer to the reference block of specified size.

refStep

Distance in bytes between starts of the consecutive lines in the reference image.

pSAD

Pointer to the SAD value.

mcType

MC type IPPVC_MC_APX.

Description

This function is declared in the ippvc.h header file. The functions ippiSAD16x16_8u32s and ippiSAD16x16_16u32s_C1R evaluate the sum of absolute difference between all the elements in the current block and the corresponding elements in the reference block. The result is stored in pSAD.

This function is used in the MPEG-2 and H.264 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.

ippStsStepErr

Indicates an error when srcCurStep or srcRefStep is less than or equal to zero.


Submit feedback on this help topic

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