MDCTFwdGetSize, MDCTInvGetSize

Get the sizes of MDCT specification structure, MDCT initialization, and MDCT work buffer.

Syntax

IppStatus ippsMDCTFwdGetSize_32f(int len, int* pSizeSpec, int* pSizeInit, int* pSizeBuf);

IppStatus ippsMDCTFwdGetSize_16s(int len, int* pSizeSpec, int* pSizeInit, int* pSizeBuf);

IppStatus ippsMDCTInvGetSize_32f(int len, int* pSizeSpec, int* pSizeInit, int* pSizeBuf);

Parameters

len

Number of samples in MDCT. Since this set of functions is designed specially for audio coding, only the following values of length are supported: 12, 36, and 2k, where k ≥ 5. These values are the only values that appear in audio coding.

pSizeSpec

Address of the MDCT specification structure size value in bytes.

pSizeInit

Address of the MDCT initialization buffer size value in bytes.

pSizeBuf

Address of the MDCT work buffer size value in bytes.

Description

These functions are declared in the ippac.h header file. The functions ippsMDCTFwdGetSize and ippsMDCTInvGetSize get the specification structure, initialization, and work buffer sizes of the MDCT described by the length and store the result in pSizeSpec, pSizeInit, and pSizeBuf.

The function ippsMDCTFwdGetSize gets the size of the work buffer for the forward MDCT. The function ippsMDCTInvGetSize gets the size of the work buffer for the inverse MDCT.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when the pSizeSpec, pSizeInit, or pSizeBuf pointer is NULL.

ippStsSizeErr

Indicates an error when len does not belong to the above set of admissible values.

Note iconNote

ippsMDCTFwd_16s_Sfs does not support the length values of 12 and 36.


Submit feedback on this help topic

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