diff options
author | wm4 <wm4@nowhere> | 2017-12-01 08:01:08 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-12-01 08:05:16 +0100 |
commit | a0d9e15342ad48f51841d4fbfe3ae47e10e45592 (patch) | |
tree | e08465a5e54136e55ab2a35b2382fb9d8d06d634 /video/decode/lavc.h | |
parent | afd5f3227ec38fea70bf7abfcd107a9493aa21fc (diff) | |
download | mpv-a0d9e15342ad48f51841d4fbfe3ae47e10e45592.tar.bz2 mpv-a0d9e15342ad48f51841d4fbfe3ae47e10e45592.tar.xz |
video: refactor hw device creation for hwdec copy modes
Lots of shit code for nothing. We probably could just use libavutil's
code for all of this. But for now go with this, since it tends to
prevent stupid terminal messages during probing (libavutil has no
mechanism to selectively suppress errors specifically during probing).
Ignores the "emulated" API flag (for avoiding vaapi/vdpau wrappers), but
it doesn't matter that much for -copy anyway.
Diffstat (limited to 'video/decode/lavc.h')
-rw-r--r-- | video/decode/lavc.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/video/decode/lavc.h b/video/decode/lavc.h index b427ae17a2..114e454c54 100644 --- a/video/decode/lavc.h +++ b/video/decode/lavc.h @@ -97,10 +97,6 @@ struct vd_lavc_hwdec { int (*init)(struct lavc_ctx *ctx); int (*init_decoder)(struct lavc_ctx *ctx); void (*uninit)(struct lavc_ctx *ctx); - // For copy hwdecs. If probing is true, don't log errors if unavailable. - // 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); // Suffix for libavcodec decoder. If non-NULL, the codec is overridden // with hwdec_find_decoder. // Intuitively, this will force the corresponding wrapper decoder. |