C# wpf 使用d3d渲染dxva2解码数据

上传者: u013113678 | 上传时间: 2022-04-17 13:08:08 | 文件大小: 24.4MB | 文件类型: 7Z
使用dxva2解码渲染的方案是有的,通过句柄关联d3d对象的方式直接渲染,性能相当好,但是在wpf中显然不太合适,嵌入hwnd窗口与wpf绘制不兼容,而且对于键盘事件也会有影响,最好的方式还是使用d3d渲染,本文主要讲述如何将dxva2解码的数据不经过转换,直接渲染到wpf的image上。

文件下载

资源详情

[{"title":"( 38 个子文件 24.4MB ) C# wpf 使用d3d渲染dxva2解码数据","children":[{"title":"WpfD3dRender","children":[{"title":"bin","children":[{"title":"Debug","children":[{"title":"net6.0-windows","children":[{"title":"swscale-5.dll <span style='color:#111;'> 516.00KB </span>","children":null,"spread":false},{"title":"SharpDX.Mathematics.dll <span style='color:#111;'> 210.50KB </span>","children":null,"spread":false},{"title":"WpfD3dRender.runtimeconfig.json <span style='color:#111;'> 266B </span>","children":null,"spread":false},{"title":"SDL2.dll <span style='color:#111;'> 1.16MB </span>","children":null,"spread":false},{"title":"WpfD3dRender.exe <span style='color:#111;'> 113.00KB </span>","children":null,"spread":false},{"title":"avfilter-7.dll <span style='color:#111;'> 9.89MB </span>","children":null,"spread":false},{"title":"avdevice-58.dll <span style='color:#111;'> 1.47MB </span>","children":null,"spread":false},{"title":"avformat-58.dll <span style='color:#111;'> 10.51MB </span>","children":null,"spread":false},{"title":"ref","children":[{"title":"WpfD3dRender.dll <span style='color:#111;'> 9.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"SoundTouchDLL.dll <span style='color:#111;'> 42.00KB </span>","children":null,"spread":false},{"title":"example10s.mp4 <span style='color:#111;'> 7.19MB </span>","children":null,"spread":false},{"title":"WpfD3dRender.pdb <span style='color:#111;'> 14.50KB </span>","children":null,"spread":false},{"title":"avutil-56.dll <span style='color:#111;'> 984.00KB </span>","children":null,"spread":false},{"title":"AC.dll <span style='color:#111;'> 53.00KB </span>","children":null,"spread":false},{"title":"swresample-3.dll <span style='color:#111;'> 309.00KB </span>","children":null,"spread":false},{"title":"WpfD3dRender.dll <span style='color:#111;'> 16.00KB </span>","children":null,"spread":false},{"title":"WpfD3dRender.deps.json <span style='color:#111;'> 54.43KB </span>","children":null,"spread":false},{"title":"SharpDX.dll <span style='color:#111;'> 269.50KB </span>","children":null,"spread":false},{"title":"SharpDX.Direct3D9.dll <span style='color:#111;'> 331.00KB </span>","children":null,"spread":false},{"title":"postproc-55.dll <span style='color:#111;'> 122.50KB </span>","children":null,"spread":false},{"title":"avcodec-58.dll <span style='color:#111;'> 30.48MB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"App.xaml <span style='color:#111;'> 378B </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"net6.0-windows","children":[{"title":"App.g.i.cs <span style='color:#111;'> 2.33KB </span>","children":null,"spread":false},{"title":"WpfD3dRender.GeneratedMSBuildEditorConfig.editorconfig <span style='color:#111;'> 468B </span>","children":null,"spread":false},{"title":"ref","children":null,"spread":false},{"title":"WpfD3dRender_MarkupCompile.i.lref <span style='color:#111;'> 83B </span>","children":null,"spread":false},{"title":"WpfD3dRender.AssemblyInfo.cs <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":".NETCoreApp,Version=v6.0.AssemblyAttributes.cs <span style='color:#111;'> 190B </span>","children":null,"spread":false},{"title":"WpfD3dRender_MarkupCompile.i.cache <span style='color:#111;'> 323B </span>","children":null,"spread":false},{"title":"WpfD3dRender.AssemblyInfoInputs.cache <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":"MainWindow.g.i.cs <span style='color:#111;'> 4.39KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"App.xaml.cs <span style='color:#111;'> 345B </span>","children":null,"spread":false},{"title":"Play.cs <span style='color:#111;'> 12.32KB </span>","children":null,"spread":false},{"title":"WpfD3dRender.csproj <span style='color:#111;'> 1010B </span>","children":null,"spread":false},{"title":"WpfD3dRender.csproj.user <span style='color:#111;'> 427B </span>","children":null,"spread":false},{"title":"MainWindow.xaml <span style='color:#111;'> 2.47KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"launchSettings.json <span style='color:#111;'> 120B </span>","children":null,"spread":false}],"spread":true},{"title":"MainWindow.xaml.cs <span style='color:#111;'> 5.31KB </span>","children":null,"spread":false}],"spread":true},{"title":"WpfD3dRender.sln <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明