Is it possible to directly encode ID3D11Texture2D video frames and keep using the new internal memory model?
What I have tried is during encode to call MFXMemory_GetSurfaceForEncode then on the returned surface to call GetNativeHandle and get the pointer to the One API internal D3D Texture ( I have initialized the device in hardware mode and have passed D3DDevice during the config step). Here I try to use ID3D11DeviceContext CopyResource so I can transfer my source GPU texture into the Intel one. No errors are thrown or something but the encoded video is with black frames and not the real video data.
Thank you for posting in Intel communities.
Could you please share the following details?
- OS you are using?
- Sample reproducer code
- Exact commands and steps you followed
- Input file if possible