Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
33 Views

sharing buffers for forward and inverse DCT

Jump to solution
Hi, From the documentation, it is not clear weather ippsDCTFwdInit_32f and ippsDCTInvInit_32f can share the same memory space. For a given length, ippsDCTFwdGetSize_32f and ippsDCTInvGetSize_32f do return the same sizes, and allocating the Ipp8u buffers once for both forward and inverse transform seems to work. However, I assume there is a reason for which both pairs of functions exist. Any clue? thanks, piem
0 Kudos

Accepted Solutions
Highlighted
33 Views

Hi piem,

The functions ippsDCTFwdGetSize_32f and ippsDCTInvGetSize_32f can return different sizes theoretically. If you would like to share work buffers between the ippsDCTFwdInit_32f and ippsDCTInvInit_32f functions, you should call the both GetSize functions and choose the maximal returned size of work buffers.

Thanks,
Valentin

 

 

View solution in original post

0 Kudos
2 Replies
Highlighted
34 Views

Hi piem,

The functions ippsDCTFwdGetSize_32f and ippsDCTInvGetSize_32f can return different sizes theoretically. If you would like to share work buffers between the ippsDCTFwdInit_32f and ippsDCTInvInit_32f functions, you should call the both GetSize functions and choose the maximal returned size of work buffers.

Thanks,
Valentin

 

 

View solution in original post

0 Kudos
Highlighted
Beginner
33 Views
Hi Valentin, Perfect, thank you for the clarification. Best, piem
0 Kudos