I have a question about pvr_txr_load or equivalent.
I prepare a texture in RAM. The buffer is 1024*512 but I only need it to display the first 640*480 pixels.
then, I send the texture to the PVR using pvr_txr_load.
Code :
Code: Select all
pvr_txr_load(buffer, texture, 1024*512*2);
This texture is only necessary in 640*480, so there's a blank part inside the 1024*512 buffer.
So, I try to copy the 1024*512 buffer into 2 textures : a 512*512, and a 128*512.
which should be quicker that a 1024*512 copy.
So I'll display the 512*512, and the 128*512 giving the whole screen : 640*512.
I search a way to copy the good part of the buffer on the 512*512 texture, and then
the good part of the buffer on the 128*512 texture
Do you have any ideas ?
PS : I can't create two buffers at the beginning, the 1024*512 buffer is the result of a video decoder.