PDA

View Full Version : OpenGL textures.



anandcta123
11-06-2013, 10:01 PM
Dear Sir,

I am newbie to OpenGL. I know basic texture drawing of a single raw RGB Video frame. I want to render a video at 25fps rate with different frames using textures. How I can accomplish this using OpenGL textures.

Thanks and Regards,
Anand

Jyk1234
11-06-2013, 10:04 PM
What is the source of your images? Are you having an encoded video format that you then decode, get individual frames?

anandcta123
11-07-2013, 01:41 AM
Dear Jyk1234,

Thanks for your reply. Ya I am having decoded YUV or RGB individual video frames. Please suggest me how I should proceed further.

Thanks and Regards,
Anand

anandcta123
11-11-2013, 04:12 AM
Dear Friends,

I am waiting from so many days. No one is suggesting any solutions. Please give some tutorials or documentation or code snippets or hints to begin my learning as per my objective. Because OpenGL seems like vast, I don't have much time to learn all the things.

Thanks and Regards,
Anand

Osbios
11-11-2013, 03:33 PM
What you are looking for is simple steaming data from the system memory to the GPU memory. For that you use Pixel Buffer Objects http://www.songho.ca/opengl/gl_pbo.html
Use 2 or more textures as ring buffer and upload the images a few frames (at last one) before you show/render them.