ConvGetBufferSize
Computes the size of the work buffer for the
ippiConv
function.Syntax
IppStatus ippiConvGetBufferSize (IppiSize
src1Size
, IppiSize
src2Size
, IppDataType
dataType
, int
numChannels
, IppEnum
algType
, int*
pBufferSize
);
Include Files
ippi.h
Parameters
- src1Size,src2Size
- Size, in pixels, of the source images.
- dataType
- Data type for convolution. Possible values areipp32f,ipp16s, oripp8u.
- numChannels
- Number of image channels. Possible values are 1, 3, or 4.
- algType
- Bit-field mask for the algorithm type definition. Possible values are the results of composition of theIppAlgTypeandIppiROIShapevalues.
- pBufferSize
- Pointer to the size of the work buffer.
Description
The
ippiConvGetBufferSize
function computes the size, in bytes, of the external work buffer needed for the function that performs two-dimensional convolution. The result is stored in the pBufferSize
parameter.Return Values
- ippStsNoErr
- Indicates no error.
- ippStsSizeErr
- Indicates an error when thesrc1Sizeorsrc2Sizeis negative, or equal to zero.
- ippStsNullChannelsErr
- Indicates an error when thenumChannelsvalue differs from 1, 3, or 4.
- ippStsDataTypeErr
- Indicates an error when thedataTypevalue differs from theipp32f,ipp16s, oripp8u.
- ippStsAlgTypeErr
- Indicates an error when:
- the result of the bitwise AND operation betweenalgTypeandippAlgMaskdiffers from theippAlgAuto,ippAlgDirect, orippAlgFFTvalues;
- the result of the bitwise AND operation betweenalgTypeandippiROIMaskdiffers from theippiROIFullorippiROIValidvalues.
- ippStsNullPtrErr
- Indicates an error when thepBufferSizeis NULL.