[FFmpeg-devel] [PATCH 2/2] lavc: vdpau: add support for new hw_frames_ctx and hw_device_ctx API

Mark Thompson sw at jkqxz.net
Wed Mar 22 21:48:00 EET 2017


On 22/03/17 06:47, wm4 wrote:
> 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.
> 
> (Adds missing APIchanges entry to the Libav version.)
> ---
> Libav merge.
> ---
>  doc/APIchanges              |  5 +++
>  libavcodec/vdpau.c          | 95 +++++++++++++++++++++++++++++++++------------
>  libavcodec/vdpau_internal.h |  2 +
>  libavcodec/version.h        |  2 +-
>  4 files changed, 78 insertions(+), 26 deletions(-)

Tested both new modes with Mesa / AMD, all working as expected.  Set LGTM.

Thanks,

- Mark


More information about the ffmpeg-devel mailing list