Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Intel Community
- Software Development SDKs and Libraries
- Intel® Integrated Performance Primitives
- sharing buffers for forward and inverse DCT

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Highlighted
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

piem

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

10-04-2017
03:37 AM

33 Views

Accepted Solutions

Highlighted

Valentin_K_Intel

Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

10-08-2017
10:23 AM

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

2 Replies

Highlighted

Valentin_K_Intel

Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

10-08-2017
10:23 AM

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

Highlighted

piem

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

10-08-2017
10:50 AM

33 Views

Hi Valentin,
Perfect, thank you for the clarification.
Best, piem

For more complete information about compiler optimizations, see our Optimization Notice.