如何在DirectX应用程序中加载视频 [英] How to load a video in a directx application
本文介绍了如何在DirectX应用程序中加载视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在DirectX应用程序中加载视频?(使用本机c ++)
谢谢.
How to load a video in a directx application?(with native c++)
thank you.
推荐答案
如果您的意思是要在D3Device内*显示视频,我认为没有任何快捷方式,您会必须将每个帧渲染为位图,并将每个帧用作纹理
if you mean you want to display a video *inside* a D3Device, I don''t think there are any shortcuts, you''ll have to render each frame to a bitmap, and use each of those frames as a texture
您可以使用IGraphBuilder
界面从文件,流或设备中渲染视频.
从此处开始.
祝你好运.
Your can use theIGraphBuilder
interface to render video from file, stream or device.
start here.
Good luck.
我没有亲自使用它,但是,您可以尝试Direct-Show功能来呈现媒体.您可以在这里找到更多关于此的信息
< a href ="http://msdn.microsoft.com/zh-cn/library/windows/desktop/dd375454%28v=vs.85%29.aspx"></a>
谢谢,
tushar
Hi,
I have not used this personally but, you can try Direct-Show functionality to render the media. you can find more about this here
<a href="http://msdn.microsoft.com/en-us/library/windows/desktop/dd375454%28v=vs.85%29.aspx"></a>
thanks,
tushar
这篇关于如何在DirectX应用程序中加载视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文