- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When DoInPlace() method is called?
I have derive a class from Node_1_1 class. I have overloaded Do() and DoInPlace() methods. Whenever the graph is executed the Do() method is called. If I want to perform the In-place operation, how can I call DoInPlace() mehod?
I have derive a class from Node_1_1 class. I have overloaded Do() and DoInPlace() methods. Whenever the graph is executed the Do() method is called. If I want to perform the In-place operation, how can I call DoInPlace() mehod?
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
To enable in-place operation execution you have to overload Init methodand initialize the following variable:
To enable in-place operation execution you have to overload Init methodand initialize the following variable:
inplace[0] = 1; // inplace possible for input port 0
or
inplace[0] = 0; // inplace isn't possible
This tells graph compiler that operation allows in-place execution. After that graph compiler analyze your graph structure schedule in-place execution mode if it possible.
Igor S. Belyakov
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
To enable in-place operation execution you have to overload Init methodand initialize the following variable:
To enable in-place operation execution you have to overload Init methodand initialize the following variable:
inplace[0] = 1; // inplace possible for input port 0
or
inplace[0] = 0; // inplace isn't possible
This tells graph compiler that operation allows in-place execution. After that graph compiler analyze your graph structure schedule in-place execution mode if it possible.
Igor S. Belyakov
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Igor.
Now, I want to derive a node that takes non-image data as input and gives non-image data as output. For this I have derived class from abstract class Node_1_1_Store. But I am struggling to develop functionality of this class. Within overridden "Do" function how can I get addresses of source data and destination data. When I provide image data I am able to get source data address using following statement
Ipp8u *pSrc1 = paramCompile.pSrc[0]+(pParamExecute->offsetSrc[0].y + shift)*src1Step;
Please help me, to getting addresses of source and destination data when I provide non-image data as an input.
Thanks.
Now, I want to derive a node that takes non-image data as input and gives non-image data as output. For this I have derived class from abstract class Node_1_1_Store. But I am struggling to develop functionality of this class. Within overridden "Do" function how can I get addresses of source data and destination data. When I provide image data I am able to get source data address using following statement
Ipp8u *pSrc1 = paramCompile.pSrc[0]+(pParamExecute->offsetSrc[0].y + shift)*src1Step;
Please help me, to getting addresses of source and destination data when I provide non-image data as an input.
Thanks.

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