How to efficiently display custom video stream in OpenGL?
I have a custom library that can decode to RGBA or any other format. What is the best way to marry it with OpenGL to decode onto texture so that it won'开发者_运维百科t drop frames ?
Or is there a better way completely skipping textures?
Edit: Full HD video streamed over net. So performance is an issue. 30 Hz. Recorded.
glTexSubImage2D()
is quick and easy. You may be able to get more throughput with a PBO-based pipeline, at the expense of more latency.
Looks like glover may have some example code, as well as Ye Olde NeHe #35.
精彩评论