Proper copying both Y and UV planes to NV12 D3D surface

Hi,

Trying to find a way to transfer decoded frame from CUDA mapped memory to NV12 D3D11Texture2d. So far I only managed to copy Y plane successfully to the texture, but no success in copying the UV plane, whatever I tried. I really have an impression, that this isn’t possible without writing a kernel that will do just that. If this is the case, please tell me what sample I could refer to in order to get a clue on how to accomplish this. I’m relatively fresh in CUDA development, so any help is appreciated. In case there’s a way to get it done without kernel - could be even better.

I asked this question many times already, but got no response. Please respond if possible, even the negative answer is an answer.

Best regards

1 Like