Hi,
I have a following workflow to obey:
I receive a buffer with incoming H264 stream, which I have to decode - made it happen so far. Now, I receive a D3D11Device pointer from rendering application component - this is the only thing available to me. What I have to accomplish in the end is to create a D3DTexture2d with given device and somehow copy the decoded frame, which I get pointer to by cuvidMapVideoFrame, into it. After copy I would return the texture pointer back to rendering component.
Since I don’t have much experience in DirectX programming, let alone CUDA, I’m totally confused now, after trying for a while to figure out what is the way to do this. I could not figure this out from the sample code, since it utilizes the whole D3D rendering process, and I cannot filter out what I need and what I don’t. Also the CUDA documentation really doesn’t say much in this regard.
Please help me to figure out the minimum necessary steps to copy decoded frame into separately created D3DTexture2d, at least in general terms.
Thanks a lot!