MDCTFwdInit, MDCTInvInit

Initialize modified discrete cosine transform specification structure.

Syntax

IppStatus ippsMDCTFwdInit_32f(IppsMDCTFwdSpec_32f** ppMDCTSpec, int len, Ipp8u* pMemSpec, Ipp8u* pMemInit);

IppStatus ippsMDCTFwdInit_16s(IppsMDCTFwdSpec_32f** ppMDCTSpec, int len, Ipp8u* pMemSpec, Ipp8u* pMemInit);

IppStatus ippsMDCTInvInit_32f(IppsMDCTInvSpec_32f** ppMDCTSpec, int len, Ipp8u* pMemSpec, Ipp8u* pMemInit);

Parameters

ppMDCTSpec

Pointer to pointer to MDCT specification structure to be created.

len

Number of samples in MDCT. Since this set of functions was 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.

pMemSpec

Pointer to the area for MDCT specification structure.

pMemInit

Pointer to the buffer that is used for initialization.

Description

These functions are declared in the ippac.h header file. The functions ippsMDCTFwdInit and ippsMDCTInvInit initialize MDCT specification structure pMDCTSpec with the specified transform length len.

The function ippsMDCTFwdInit initializes the forward MDCT specification structure. The function ippsMDCTInvInit initializes the inverse MDCT specification structure.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when the ppMDCTSpec, pMemSpec or pMemInit 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.