SAD16x16Blocks4x4

Evaluates 16 partial sums of absolute differences between current and reference 16X16 blocks.

Syntax

IppStatus ippiSAD16x16Blocks4x4_8u16u(const Ipp8u* pSrc, Ipp32s srcStep, Ipp8u* pRef, Ipp32s refStep, Ipp16u* pDstSAD, Ipp32s mcType);

Parameters

pSrc

Pointer to a 16x16 block in the source plane.

srcStep

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

pRef

Pointer to a 16x16 block in the reference plane.

refStep

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

pDstSAD

Pointer to an array of size 16 to store the SAD values.

mcType

Reserved and must be 0.

Description

This function is declared in the ippvc.h header file.

The function ippiSAD16x16Blocks4x4_8u16u evaluates 16 partial sums (for each 4x4 block in the order shown in Figure "Splitting of 16x16 Block Into 4x4 Blocks") of absolute differences between all the elements in the current 16x16 block and the corresponding elements in the reference 16x16 block. The result is stored in pDstSAD.

Splitting of 16x16 Block Into 4x4 Blocks



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.