Skip to content

Commit a79e01c

Browse files
authored
Add HelloVAResourceInterop, HelloVaDecode and HelloVAEncode samples (#810)
Add HelloVAResourceInterop, HelloVaDecode and HelloVAEncode samples
1 parent 0aa79ba commit a79e01c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+19931
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@
1919

2020
*.vcxproj.user
2121
*.opendb
22+
Samples/Desktop/D3D12HelloWorld/src/HelloVAResourceInterop/*.h264
23+
Samples/Desktop/D3D12HelloWorld/src/HelloVAEncode/*.h264

Samples/Desktop/D3D12HelloWorld/readme.md

+12
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,17 @@ This sample shows you how to animate a triangle using a constant buffer.
4141

4242
This sample shows you how to use fences and multiple allocators to queue up multiple frames to the GPU.
4343

44+
## Hello, VADecode! sample
45+
46+
This sample shows you how to use Libva for Windows for decoding a basic H264 bitstream and rendering to screen. This sample depends on https://www.nuget.org/packages/Microsoft.Direct3D.VideoAccelerationCompatibilityPack/
47+
48+
## Hello, VAEncode! sample
49+
50+
This sample shows you how to use Libva for Windows to perform video processing effects and encode the D3D12 render targets presented to screen to a basic H264 encoded bitstream. This sample depends on https://www.nuget.org/packages/Microsoft.Direct3D.VideoAccelerationCompatibilityPack/
51+
52+
## Hello, VAResourceInterop! sample
53+
54+
This sample shows you how to use Libva for Windows for inter-operating between D3D12 resources and VA surfaces. This sample depends on https://www.nuget.org/packages/Microsoft.Direct3D.VideoAccelerationCompatibilityPack/
55+
4456
### Optional features
4557
The Texture and Constant Buffer samples have been updated to build against the Windows 10 Anniversary Update SDK. In this SDK a new revision of Root Signatures is available for Direct3D 12 apps to use. Root Signature 1.1 allows for apps to declare when descriptors in a descriptor heap won't change or the data descriptors point to won't change. This allows the option for drivers to make optimizations that might be possible knowing that something (like a descriptor or the memory it points to) is static for some period of time.

Samples/Desktop/D3D12HelloWorld/src/D3D12HelloWorld.sln

+21
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "D3D12HelloTexture", "HelloT
1515
EndProject
1616
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "D3D12HelloFrameBuffering", "HelloFrameBuffering\D3D12HelloFrameBuffering.vcxproj", "{DF8A573D-FD94-45F8-AED2-0BEFC00B9591}"
1717
EndProject
18+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "D3D12HelloVAEncode", "HelloVAEncode\D3D12HelloVAEncode.vcxproj", "{940957E3-82D6-4CD8-B39F-6FA47763973F}"
19+
EndProject
20+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "D3D12HelloVADecode", "HelloVADecode\D3D12HelloVADecode.vcxproj", "{E16591B9-E382-431F-BE17-8C94E5F6AD5E}"
21+
EndProject
22+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "D3D12HelloVAResourceInterop", "HelloVAResourceInterop\D3D12HelloVAResourceInterop.vcxproj", "{17171787-C5D2-4014-9D1D-BC43074F36A1}"
23+
EndProject
1824
Global
1925
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2026
Debug|x64 = Debug|x64
@@ -45,8 +51,23 @@ Global
4551
{DF8A573D-FD94-45F8-AED2-0BEFC00B9591}.Debug|x64.Build.0 = Debug|x64
4652
{DF8A573D-FD94-45F8-AED2-0BEFC00B9591}.Release|x64.ActiveCfg = Release|x64
4753
{DF8A573D-FD94-45F8-AED2-0BEFC00B9591}.Release|x64.Build.0 = Release|x64
54+
{940957E3-82D6-4CD8-B39F-6FA47763973F}.Debug|x64.ActiveCfg = Debug|x64
55+
{940957E3-82D6-4CD8-B39F-6FA47763973F}.Debug|x64.Build.0 = Debug|x64
56+
{940957E3-82D6-4CD8-B39F-6FA47763973F}.Release|x64.ActiveCfg = Release|x64
57+
{940957E3-82D6-4CD8-B39F-6FA47763973F}.Release|x64.Build.0 = Release|x64
58+
{E16591B9-E382-431F-BE17-8C94E5F6AD5E}.Debug|x64.ActiveCfg = Debug|x64
59+
{E16591B9-E382-431F-BE17-8C94E5F6AD5E}.Debug|x64.Build.0 = Debug|x64
60+
{E16591B9-E382-431F-BE17-8C94E5F6AD5E}.Release|x64.ActiveCfg = Release|x64
61+
{E16591B9-E382-431F-BE17-8C94E5F6AD5E}.Release|x64.Build.0 = Release|x64
62+
{17171787-C5D2-4014-9D1D-BC43074F36A1}.Debug|x64.ActiveCfg = Debug|x64
63+
{17171787-C5D2-4014-9D1D-BC43074F36A1}.Debug|x64.Build.0 = Debug|x64
64+
{17171787-C5D2-4014-9D1D-BC43074F36A1}.Release|x64.ActiveCfg = Release|x64
65+
{17171787-C5D2-4014-9D1D-BC43074F36A1}.Release|x64.Build.0 = Release|x64
4866
EndGlobalSection
4967
GlobalSection(SolutionProperties) = preSolution
5068
HideSolutionNode = FALSE
5169
EndGlobalSection
70+
GlobalSection(ExtensibilityGlobals) = postSolution
71+
SolutionGuid = {797F48C2-AB2F-4F66-94B9-1BEAF96449A0}
72+
EndGlobalSection
5273
EndGlobal

0 commit comments

Comments
 (0)