summaryrefslogtreecommitdiffstats
path: root/video/decode/lavc.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-06-08 21:16:11 +0200
committerwm4 <wm4@nowhere>2017-06-08 21:51:25 +0200
commit0754cbc83eb030ed3c0f0666e8b7c2481631e513 (patch)
treeb4df7e128e0e65704ae62e5a19a73651def4f284 /video/decode/lavc.h
parent79dc1834f5932b36b0a2b48388654d2c4dcd2817 (diff)
downloadmpv-0754cbc83eb030ed3c0f0666e8b7c2481631e513.tar.bz2
mpv-0754cbc83eb030ed3c0f0666e8b7c2481631e513.tar.xz
d3d: add support for new libavcodec hwaccel API
Unfortunately quite a mess, in particular due to the need to have some compatibility with the old API. (The old API will be supported only in short term.)
Diffstat (limited to 'video/decode/lavc.h')
-rw-r--r--video/decode/lavc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/decode/lavc.h b/video/decode/lavc.h
index cc098b998e..f58ee8bc1e 100644
--- a/video/decode/lavc.h
+++ b/video/decode/lavc.h
@@ -102,6 +102,8 @@ struct vd_lavc_hwdec {
// The returned device will be freed with mp_hwdec_ctx->destroy.
struct mp_hwdec_ctx *(*create_dev)(struct mpv_global *global,
struct mp_log *log, bool probing);
+ // Optional. Fill in special hwaccel- and codec-specific requirements.
+ void (*hwframes_refine)(struct lavc_ctx *ctx, AVBufferRef *hw_frames_ctx);
// Suffix for libavcodec decoder. If non-NULL, the codec is overridden
// with hwdec_find_decoder.
// Intuitively, this will force the corresponding wrapper decoder.