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)
committerMark Thompson <sw@jkqxz.net>
Mon, 20 Mar 2017 23:15:43 +0000 (23:15 +0000)
commit1a7ddba5762b6c31d1338140550cd594b6d7d48b
treeb4867773e1378d65a91e082ad9b75b7be05f6a20
parent16a163b55a6558ed05702b91cc0777987295ef21
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.
libavcodec/vdpau.c
libavcodec/vdpau_internal.h
libavcodec/version.h