开发者

How to efficiently display custom video stream in OpenGL?

开发者 https://www.devze.com 2023-01-31 12:39 出处:网络
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 ?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消