Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

sharing buffers for forward and inverse DCT

piem
Beginner
472 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
472 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
Valentin_K_Intel
Employee
473 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

 

 

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