summaryrefslogtreecommitdiff
path: root/libavcodec/vdpau_internal.h
diff options
context:
space:
mode:
authorwm4 <nfxjfg@googlemail.com>2017-03-04 23:57:33 +0000
committerMark Thompson <sw@jkqxz.net>2017-03-20 23:15:43 +0000
commit1a7ddba5762b6c31d1338140550cd594b6d7d48b (patch)
treeb4867773e1378d65a91e082ad9b75b7be05f6a20 /libavcodec/vdpau_internal.h
parent16a163b55a6558ed05702b91cc0777987295ef21 (diff)
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.
Diffstat (limited to 'libavcodec/vdpau_internal.h')
-rw-r--r--libavcodec/vdpau_internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vdpau_internal.h b/libavcodec/vdpau_internal.h
index c7281a6b5e..a0eb46c48e 100644
--- a/libavcodec/vdpau_internal.h
+++ b/libavcodec/vdpau_internal.h
@@ -28,6 +28,8 @@
#include <vdpau/vdpau.h>
#include "libavutil/frame.h"
+#include "libavutil/hwcontext.h"
+#include "libavutil/hwcontext_vdpau.h"
#include "avcodec.h"
#include "vdpau.h"