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

sharing buffers for forward and inverse DCT

piem
ビギナー
711件の閲覧回数
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 件の賞賛
1 解決策
Valentin_K_Intel
従業員
711件の閲覧回数

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

 

 

元の投稿で解決策を見る

2 返答(返信)
Valentin_K_Intel
従業員
712件の閲覧回数

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

 

 

piem
ビギナー
711件の閲覧回数
Hi Valentin, Perfect, thank you for the clarification. Best, piem
返信