[英]hardware accelerated scaling MFT in windows7
I am searching hardware accelerated(GPU) based video scaling.I found a extensive discussion in following threads 我正在搜索基于硬件加速(GPU)的视频缩放。我在以下线程中找到了广泛的讨论
How to use hardware video scalers? 如何使用硬件视频缩放器? and
和
Hardware Accelerated Image Scaling in windows using C++ 使用C ++在Windows中硬件加速图像缩放
I try to stick with MFT based scaling because i also using H.264 Encoder MFT in my application. 我尝试坚持使用基于MFT的缩放,因为我在我的应用程序中也使用H.264编码器 MFT。
We have two option for MFT based solution- 我们有两种基于MFT的解决方案 -
1. Video Resizer DSP 1. 视频调节器DSP
2. Video Processor MFT 2. 视频处理器MFT
But both these methods used MF_SA_D3D_AWARE . 但这两种方法都使用了MF_SA_D3D_AWARE 。 As mentioned below:
如下所述:
A video MFT has the attribute MF_SA_D3D_AWARE .aspx which can be used to query whether it supports DirectX 3D hardware acceleration, and this can be enabled by sending it the MFT_MESSAGE_SET_D3D_MANAGER message. 视频MFT具有属性MF_SA_D3D_AWARE .aspx,可用于查询它是否支持DirectX 3D硬件加速,并且可以通过向其发送MFT_MESSAGE_SET_D3D_MANAGER消息来启用此功能。
and MF_SA_D3D_AWARE is supported in Windows 8 onwards. Windows 8及更高版本支持MF_SA_D3D_AWARE。
Is their any MFT for scaling which uses Hardware acceleration in windows 7 ? 他们的任何缩放MFT是否在Windows 7中使用硬件加速?
I haven't investigated other two options(MFCreateVideoRenderer and IDirectXVideoProcessor::VideoProcessBlt) mentioned in How to use hardware video scalers? 我还没有调查过如何使用硬件视频缩放器中提到的其他两个选项(MFCreateVideoRenderer和IDirectXVideoProcessor :: VideoProcessBlt) ? that it will support in windows 7 or not.
它将支持Windows 7或不支持。 But I am actively looking for MFT option on priority.
但我正在积极寻找优先权的MFT选项。
Under Windows 7, i will recommand you to use IDXVAHD_VideoProcessor 在Windows 7下,我建议您使用IDXVAHD_VideoProcessor
You have a sample here : DXVA-HD Sample 你有一个示例: DXVA-HD Sample
But i think that if you use a simple DirectXDevice9 with a DirectXTexture9, the scaling result will be the same. 但我认为如果你使用一个简单的DirectXDevice9和DirectXTexture9,缩放结果将是相同的。 There is no reason that dedicated scaling process only apply to video file process.
专用缩放过程没有理由仅适用于视频文件过程。 I think they are the same for both (game and video file).
我认为它们(游戏和视频文件)都是一样的。
The lonely thing i saw, is that you can setup the constriction mode : DXVAHD_BLT_STATE_CONSTRICTION_DATA , wich apply to downscaling, not really to upscaling. 我看到的孤独的事情是,你可以设置收缩模式: DXVAHD_BLT_STATE_CONSTRICTION_DATA ,适用于降尺度,而不是真正的升级。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.