FilterGetBufSize

Calculates the size of the working buffer.

Syntax

IppStatus ipprFilterGetBufSize(IpprVolume dstVolume, IpprVolume kernelVolume, int nChannel, int* pBufferSize);

Parameters

dstVolume

Size of the processed volume.

kernelVolume

Size of the kernel volume.

nChannel

Number of channels or planes, possible value is one.

pBufferSize

Pointer to the size of the external buffer.

Description

The function ipprFilterGetBufSize is declared in the ippr.h file. It operates with VOI. This function computes the size of the working buffer pBufferSize that is required for the function ipprFilter.

Return Values

ippStsNoErr

Indicates no error. Any other value indicates an error.

ippStsNullPtrErr

Indicates an error condition if pBufferSize pointer is NULL.

ippStsNumChannelErr

Indicates an error condition if nChannel has an illegal value.

ippStsSizeErr

Indicates an error condition if dstVolume or kernelVolume has a field with zero or negative value.

Submit feedback on this help topic

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