Intel® Integrated Performance Primitives (Intel® IPP) Developer Guide and Reference

ID 790148
Date 3/22/2024
Public
Document Table of Contents

SADGetBufferSize

Computes the size of the work buffer for the ippiSAD function.

Syntax

IppStatus ippiSADGetBufferSize(IppiSize srcRoiSize, IppiSize tplRoiSize, IppDataType dataType, int numChannels, IppiROIShape shape, int* pBufferSize);

Include Files

ippi.h

Domain Dependencies

Headers: ippcore.h, ippvm.h, ipps.h

Libraries: ippcore.lib, ippvm.lib, ipps.lib

Parameters

srcRoiSize

Size of the source ROI in pixels.

tplRoiSize

Size of the template ROI in pixels.

shape

Enumeration that defines the shape of the result of the SAD operation (see Structures and Enumerators).

dataType

Type of the input data.

numChannels

Number of channels in the images.

pBufferSize

Pointer to the computed value of the external buffer size.

Description

The ippiSADGetBufferSize function computes the size of the external work buffer (in bytes) needed for the ippiSAD function and stores the result in the *pBufferSize parameter.

Return Values

ippStsNoErr

Indicates no error. Any other value indicates an error or a warning.

ippStsNullPtrErr

Indicates an error condition if the pBufferSize pointer is NULL.

ippStsSizeErr

Indicates an error condition if srcRoiSize or tplRoiSize has a field with a zero or negative value.

ippStsNotSupportedModeErr

Indicates an error condition if either shape does not equal ippiROIValid or numChannels does not equal 1.