Developer Reference for Intel® Integrated Performance Primitives
Computes the size of the work buffer for the ippiSAD function.
IppStatus ippiSADGetBufferSize(IppiSize srcRoiSize, IppiSize tplRoiSize, IppDataType dataType, int numChannels, IppiROIShape shape, int* pBufferSize);
ippi.h
Headers: ippcore.h, ippvm.h, ipps.h
Libraries: ippcore.lib, ippvm.lib, ipps.lib
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. |
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.
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. |