about ippiDCT8x8Fwd_16s_C1

about ippiDCT8x8Fwd_16s_C1

I try to use the Ipp function "ippiDCT8x8Fwd_16s_C1"
to do DCT Transformation
How to pass the argument to the function??
Are there any sample code ??

for ex.
Ipp16s Test[8][8]={{52,55,61,66,70,61,64,73},
Ipp16s dTest[8][8];

IppStatus st=ippiDCT8x8Fwd_16s_C1((Ipp16s*)Test,(Ipp16s*)dTest);

The above code can be compiled,but in run-time may cause some error!!

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.


seems, you are using this function correctly (if you are talking about IPP for IA). There is simple example which you can found in IPP Manual, ippiman.pdf file (it is for in-place variant of functions but is does not matter):

Example 10-4 Forward DCT of 8x8 Size

IppStatus dct16s( void ) {
Ipp16s x[64] = {0};
IppiSize roi = {8,8};
int i;

for( i=0; i<8; ++i ) {
ippiSet_16s_C1R( (Ipp16s)i, x+8*i+i, 8*sizeof(Ipp16s), roi );

return ippiDCT8x8Fwd_16s_C1I( x );

Note, there can be alignment requirement in IPP for Xscale, please check with IPP for Xscale manual.


Message Edited by vdudnik on 01-12-2006 01:27 PM

Leave a Comment

Please sign in to add a comment. Not a member? Join today