<div dir="ltr"><div dir="ltr">Hi there,<div><br></div><div>I am looking for any guidance to figure out how to take an H264 encoded frame and utilize DXVA2 somehow to get a IDirect3DSurface9.</div><div><br></div><div>The goal is pretty simple: decode an h264 frame and show it on a Windows machine screen. </div><div><br></div><div>To be specific, I am looking to utilize whatever hw accel decoder may exist on the machine whether that's an NVIDIA GPU or a Intel's QuickSync hardware to decode.</div><div><br></div><div>I've already read the HWAccelIntro.</div><div><br></div><div>My best guess is the steps are:</div><div><ol><li>Use avcodec_find_decoder() (H264 -> IDirect3DSurface9)</li><li>avcodec_send_packet()</li><li>avcodec_receive_frame()</li><li>Some how the frame is an IDirect3DSurface9 texture I can use without hitting the host memory.</li></ol><div>If there are docs/guides/stackoverflow posts you're aware of, I'd appreciate it. At the moment, I am looking at these APIs: <a href="https://ffmpeg.org/doxygen/4.1/group__lavc__decoding.html#ga58bc4bf1e0ac59e27362597e467efff3">https://ffmpeg.org/doxygen/4.1/group__lavc__decoding.html#ga58bc4bf1e0ac59e27362597e467efff3</a></div><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><br></div><div dir="ltr">Suhail</div><div dir="ltr"><br></div><div dir="ltr">--</div><div dir="ltr"><br></div><div dir="ltr">Founder</div></div></div></div></div></div></div></div></div>