将视频显示为DirectX纹理 [英] Display video as DirectX texture

查看:106
本文介绍了将视频显示为DirectX纹理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在DirectX纹理上显示视频帧(以前使用Windows Phone 8摄像机录制;不是实时预览,而是录制的视频文件).是否有方法(在C#或C ++中)从压缩的文件中获取原始图像数据(作为RGB) 视频流(MP4,H264)?

I want to display the video frames (recorded previously with Windows Phone 8 camera; I do not mean the live preview but the recorded video file) on a DirectX texture. Are there means (either in C# or C++) to get the raw image data (as RGB) from the compressed video stream (MP4, H264)?

对于Windows RT,有一个类似的项目,但WP 8不支持该项目:http://code.msdn.microsoft.com/windowsapps/Media-Engine-Playback-ce1c82f0/

There is a similar project for Windows RT but it's not supported on WP 8: http://code.msdn.microsoft.com/windowsapps/Media-Engine-Playback-ce1c82f0/

此致

推荐答案

此处的开发人员文档中提供了将视频渲染到Windows Phone上的纹理的演练: http://msdn.microsoft.com/library/windowsphone/develop/jj207074(v=vs.105).aspx

There is a walkthrough of rendering a video to a texture on Windows Phone in the developer docs here: http://msdn.microsoft.com/library/windowsphone/develop/jj207074(v=vs.105).aspx

您也可以在此处下载工作示例:

You can also download a working sample here:

http://code.msdn.microsoft.com/wpapps/Media-engine-sample -0bd96b86

绘制


这篇关于将视频显示为DirectX纹理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆