render video to texture
-
Thursday, April 26, 2012 9:10 AM
I have use D3D11 video decoding tech to decode the video, which has been decribed inhttp://msdn.microsoft.com/en-us/library/windows/desktop/hh162912(v=vs.85).aspx. in one of these step, I should create a texture, which the format must beDXGI_FORMAT_NV12, then I use CreateShaderResourceView to create a view that can be used to map on the mesh.
When I used the CreateShaderResourceView interface , I just only use the DXGI_FORMAT_R8_UNORM or DXGI_FORMAT_R8G8_UNORM view format, else will be wrong, it is said in the http://msdn.microsoft.com/en-us/library/windows/desktop/bb173059(v=vs.85).aspx. When I use the DXGI_FORMAT_R8_UNORM format , the render result is just only red channel.
My question is how to set the view format or other ways, the render result will be right?
Thank you for your help
- Moved by Jason Dot WangMicrosoft Contingent Staff Tuesday, May 08, 2012 2:39 AM (From:Windows Forms Sample Applications)
All Replies
-
Friday, April 27, 2012 3:37 AM
Hi zjubaoli,
You'll need to post it in the dedicated App Hub Forum http://forums.create.msdn.com/forums/
for more efficient responses, where you can contact DirectX experts.
Sincerely,
Jason Wang
Jason Wang [MSFT]
MSDN Community Support | Feedback to us


