DCTInvInitAlloc

Allocates memory and fills in context data needed for the inverse DCT function to operate.

Syntax

IppStatus ippiDCTInvInitAlloc_32f (IppiDCTInvSpec_32f** ppDCTSpec, IppiSize roiSize, IppHintAlgorithm hint);

Parameters

ppDFTSpec

Pointer to the inverse DCT context structure being initialized.

roiSize

Size of the source and destination ROI in pixels.

hint

Option to select the algorithmic implementation of the transform function.

Description

The function ippiDCTInvInitAlloc is declared in the ippi.h file. This function allocates memory and initializes the context structure pDCTSpec needed to compute the inverse DCT of a two-dimensional image data. The ippiDCTInv function called with the pointer to the initialized pDCTSpec structure as an argument will compute the inverse discrete cosine transform for points in the ROI of size roiSize, using computation algorithm indicated by hint (see Table “Hint Arguments for Linear Transform Functions”).

Return Values

ippStsNoErr

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

ippStsNullPtrErr

Indicates an error condition if pDCTSpec pointer is NULL.

ippStsSizeErr

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

ippStsMemAllocErr

Indicates an error condition if memory allocation fails.

Submit feedback on this help topic

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