Opengl视频纹理 [英] Opengl video texture
本文介绍了Opengl视频纹理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Visual Studio 10在Windows上使用C ++开发opengl应用程序。目前我在多维数据集上使用静态纹理,但我想集成视频纹理。
I'm developing an opengl application in C++ on Windows using Visual Studio 10. Currently I use a static texture on a cube but I would like to integrate a video texture.
你知道我可以使用哪个库来打开和解密视频?
Do you know which library I can use to open and decrypt video ?
推荐答案
看看ffmpeg / libavformat / libavcodec或gstreamer。 Threy是相当straigtforward使用。您应该使用 glTexSubImage2D
来更新纹理日期(使用此方法不会进行完整的纹理重新初始化)。
Have a look at ffmpeg/libavformat/libavcodec or gstreamer. Threy're pretty straigtforward to use. You should use glTexSubImage2D
for updating the texture date (using this doesn't do a full texture reinitialization).
这篇关于Opengl视频纹理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文