DXVA到位图 [英] DXVA to bitmap

查看:79
本文介绍了DXVA到位图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



嗨。我想写一些像我自己的DXVA渲染器。我不知道从哪里开始。它的任务非常简单 - 将解码后的图像写入位图。一个线程将使用DXVA1解码器解码视频流,其他流将显示解码的
数据。



1.有人可以给我发送示例或提供链接,我可以从哪里开始查找相关信息吗?



2.是否可以在DXVA1中执行此操作?



非常感谢。

解决方案

没有单独的DXVA1 API:调用DXVA1的唯一方法是通过一个现有的DirectShow视频渲染器(这是DXVA启用的解码器所做的),这意味着没有办法检索解码的帧,因为渲染器没有输出
除显示外。


DXVA2有一个单独的API,不适合胆小的人:
http://msdn.microsoft的.com / EN-US /库/ aa965263.aspx


Hi. I would like to write something like my own DXVA renderer. I do not know where to start. It's task will be very simple - to write decoded image into bitmap. One thread will decode video stream using DXVA1 decoder and other streams will display the decoded data.

1. Could anyone send me example or provide link where could I start and find relevant information?

2. Is it possible to do this in DXVA1?

Thank you very much.

解决方案

There is no separate DXVA1 API: the only way to invoke DXVA1 is through one of the stock DirectShow video renderers (which is what DXVA-enabled decoders do) and that means that there is no way to retrieve the decoded frames, since the renderers have no output other than the display.

DXVA2 has a separate API, which is not for the faint of heart: http://msdn.microsoft.com/en-us/Library/aa965263.aspx.


这篇关于DXVA到位图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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