[Libav-user] Decoding: H264 to IDirect3DSurface9

Suhail Doshi suhail at mightycomputing.com
Mon Apr 1 23:29:52 EEST 2019


Hi there,

I am looking for any guidance to figure out how to take an H264 encoded
frame and utilize DXVA2 somehow to get a IDirect3DSurface9.

The goal is pretty simple: decode an h264 frame and show it on a Windows
machine screen.

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.

I've already read the HWAccelIntro.

My best guess is the steps are:

   1. Use avcodec_find_decoder() (H264 -> IDirect3DSurface9)
   2. avcodec_send_packet()
   3. avcodec_receive_frame()
   4. Some how the frame is an IDirect3DSurface9 texture I can use without
   hitting the host memory.

If there are docs/guides/stackoverflow posts you're aware of, I'd
appreciate it. At the moment, I am looking at these APIs:
https://ffmpeg.org/doxygen/4.1/group__lavc__decoding.html#ga58bc4bf1e0ac59e27362597e467efff3

Suhail

--

Founder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20190401/914b29cb/attachment.html>


More information about the Libav-user mailing list