How to efficiently display a custom video stream in OpenGL?

I have a custom library that can decode RGBA or any other format. What is the best way to marry him with OpenGL to decode to a texture so that it doesn't drop frames?

Or is there a better way to completely skip textures?

Edit: Full HD video is transmitted over the network. Thus, performance is a problem. 30 Hz In recording.

+4
source share
1 answer

glTexSubImage2D() quick and easy. You may be able to increase throughput with the PBO-based pipeline due to greater latency.

Looks like glover might have some kind of code example, as well as Ye Olde NeHe # 35 .

+3
source

Source: https://habr.com/ru/post/1332397/


All Articles