Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
6594 Discussions

sharing buffers for forward and inverse DCT

piem
Beginner
119 Views
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
1 Solution
Valentin_K_Intel
Employee
119 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

2 Replies
Valentin_K_Intel
Employee
120 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

piem
Beginner
119 Views
Hi Valentin, Perfect, thank you for the clarification. Best, piem
Reply