Home » Community » Newbie corner » Displaying raw image data
Re: Displaying raw image data [message #39750 is a reply to message #39738] |
Tue, 23 April 2013 11:04   |
keltor
Messages: 73 Registered: February 2012
|
Member |
|
|
Oh, no, I meant to create a class derived from my image library. I planned to make some kind of wrapper that contains both the class that deals with the image and a pointer to the memory that can be accessed by Upp::Image, as per your first example.
However, you are probably right, I may be too paranoid. Images, even in uncompressed format, tend to be rather small for today's standards. Copying 5, 10 or 30 MB is next to nothing. My original motivation was that the user may interact with the image in real time, rotate it in 3D and such. So I thought that it would reduce the refresh time if I'd do it without memcpy. But I will make it as you suggest first, and see how fast it is. The more I think about it, the more I agree that there is basically no overhead.
Thanks again, I'll get to it now.
Kel
[Updated on: Tue, 23 April 2013 11:05] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Mon Jul 07 04:48:15 CEST 2025
Total time taken to generate the page: 0.04638 seconds
|