DCTFwd_G722, DCTFwd_G7221

Computes the forward discrete cosine transform (DCT) of a signal.

Syntax

IppStatus ippsDCTFwd_G722_16s(const Ipp16s* pSrc, Ipp16s* pDst);

IppStatus ippsDCTFwd_G7221_16s (const Ipp16s* pSrc, Ipp16s* pDst, int len);

Parameters

pSrc

Pointer to the source vector.

pDst

Pointer to the destination vector.

len

Number of elements on the source and destination vectors, possible values: 320, 640.

Description

The functions ippsDCTFwdare declared in ippsc.h file. The function ippsDCTFWD_G722 computes the forward discrete cosine transform (DCT) of the fixed length [320]. The function ippsDCTFWD_G7221 computes the forward DCT of the length len. The calculation is performed according to the following formula:



Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when one of the specified pointer is NULL.

ippStsSizeErr

Indicates an error when the len has an illegal value.

Submit feedback on this help topic

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