My problem is in copying a lot of memory in textures. I need execute operation of updating for 36 images with rate 25 times per second. If I have images 300x200 size I takes about 60 ms for copying and display. But if my pictures reach 700x500 size it takes just 150 ms (I tested with 16bpp format). I think to resize my images before copying, but I don't know how to do it. can ipp libs do it? Is it realy?
28 replies to this topic
Sponsor:
#25 Members - Reputation: 2031
Posted 27 April 2012 - 06:49 AM
The YUV to RGB conversion can be done in pixel shader, by using the conversion formula found here: http://en.wikipedia.org/wiki/YUV
Because of the simple logic, GPU can perform this operation very fast per pixel.
Some hardware is capable of using YUV format textures directly; they will perform the conversion to RGB automatically.
Whether or not you have YUV data available to begin with, depends entirely on your video codec of choice.
Because of the simple logic, GPU can perform this operation very fast per pixel.
Some hardware is capable of using YUV format textures directly; they will perform the conversion to RGB automatically.
Whether or not you have YUV data available to begin with, depends entirely on your video codec of choice.
Niko Suni
Software developer
Software developer






