]> git.sesse.net Git - ffmpeg/commit
lavc: vdpau: Add support for new hw_frames_ctx and hw_device_ctx API
authorwm4 <nfxjfg@googlemail.com>
Sat, 4 Mar 2017 23:57:33 +0000 (23:57 +0000)
committerwm4 <nfxjfg@googlemail.com>
Thu, 23 Mar 2017 08:36:42 +0000 (09:36 +0100)
commit7e4ba776a2240d40124d5540ea6b2118fa2fe26a
treef41708a36f6a571352ed2d131993f1bc97420fac
parent156bd8278f4098426cffaa68efb161907e5c1869
lavc: vdpau: Add support for new hw_frames_ctx and hw_device_ctx API

This supports retrieving the device from a provided hw_frames_ctx, and
automatically creating a hw_frames_ctx if hw_device_ctx is set.

The old API is not deprecated yet. The user can still use
av_vdpau_bind_context() (with or without setting hw_frames_ctx), or use
the API before that by allocating and setting hwaccel_context manually.

Cherry-picked from Libav commit 1a7ddba5.
(Adds missing APIchanges entry to the Libav version.)

Reviewed-by: Mark Thompson <sw@jkqxz.net>
doc/APIchanges
libavcodec/vdpau.c
libavcodec/vdpau_internal.h
libavcodec/version.h