- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi,
I am looking for a way to get faster memory access to, say, some random pixels in an image. I couldn't find any IPP function that dose so (or close to). Presently I am using IPPS function to compute the offset of the memory address, but IPPS doesn't support pointer arithmatic, so I still have to do the last step in a loop.
Any suggestion?
thanks,
Nizan.
Message Edited by nizanh on 02-02-2005 04:14 AM
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Nizan
It is a bit unclear what you are trying to do. To get access to arbitrary pixel in image you can use
val = pSrc[y*srcStep) + x]
where x and y is pixel coordinates
Is it what you are asking about?
Regards,
Vladimir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks for the response.
I do access the memory with
pSrc[y*srcStep) + x].
but suppose that y & x are vectors. Access the memory through loop
for (i=1;i= pSrc[y*srcStep + x ];}
is quite slow. I can speed it up if I calculate
offset = y*srcStep + x
as vectors, using ipps functions, but I still need a loop
for (i=1;i= pSrc[offset];}
I want to speed it up further. If mmx/sse (and better, IPP) supportsome memory access for multiple address it would probablyboost the speed further.
thanks,
Nizan.
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