PyrDownGetBufSize

Computes the size of temporary buffer for the function ippiPyrDown.

Syntax

IppStatus ippiPyrDownGetBufSize_Gauss5x5(int roiWidth, IppDataType dataType, int channels, int* pBufferSize);

Parameters

roiWidth
Width of the source image ROI in pixels.
dataType
Data type of the source image.
channels
Number of channels.
pBufferSize
Pointer to the computed size of the temporary buffer.

Description

The function ippiPyrDownGetBufSize is declared in the ippcv.h file. This function calculates the size of the temporary buffer to be used by the function ippiPyrDown. The buffer of the calculated size can be used to process smaller images.

Return Values

ippStsNoErr

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

ippStsNullPtr

Indicates an error condition if the pBufferSize pointer is NULL.

ippStsSizeErr

Indicates an error condition if the value of roiWidth is zero or negative.

ippStsNumChannelsErr

Indicates an error condition if channels is not 1 or 3.

ippStsDataTypeErr

Indicates an error condition if dataType is not Ipp8u, Ipp8s, or Ipp32f.

Submit feedback on this help topic

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