diff options
author | wm4 <wm4@nowhere> | 2017-12-01 21:05:54 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-12-01 21:11:43 +0100 |
commit | eb8957cea110a9aa652894d8bb897a9b1ff91e0b (patch) | |
tree | a418036f0b8da42fac96921e3075c4dc92462ef6 /options/options.h | |
parent | 43af055a70a7b604e1e936575213aa561ac915d1 (diff) | |
download | mpv-eb8957cea110a9aa652894d8bb897a9b1ff91e0b.tar.bz2 mpv-eb8957cea110a9aa652894d8bb897a9b1ff91e0b.tar.xz |
vd_lavc: rewrite how --hwdec is handled
Change it from explicit metadata about every hwaccel method to trying to
get it from libavcodec. As shown by add_all_hwdec_methods(), this is a
quite bumpy road, and a bit worse than expected.
This will probably cause a bunch of regressions. In particular I didn't
check all the strange decoder wrappers, which all cause some sort of
special cases each. You're volunteering for beta testing by using this
commit.
One interesting thing is that we completely get rid of mp_hwdec_ctx in
vd_lavc.c, and that HWDEC_* mostly goes away (some filters still use it,
and the VO hwdec interops still have a lot of code to set it up, so it's
not going away completely for now).
Diffstat (limited to 'options/options.h')
-rw-r--r-- | options/options.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/options/options.h b/options/options.h index 8bf8f1ec6a..9c9dd64233 100644 --- a/options/options.h +++ b/options/options.h @@ -285,7 +285,7 @@ typedef struct MPOpts { int sub_clear_on_seek; int teletext_page; - int hwdec_api; + char *hwdec_api; char *hwdec_codecs; int videotoolbox_format; int hwdec_image_format; @@ -349,4 +349,7 @@ extern const struct m_sub_options vo_sub_opts; extern const struct m_sub_options stream_cache_conf; extern const struct m_sub_options dvd_conf; +int hwdec_validate_opt(struct mp_log *log, const m_option_t *opt, + struct bstr name, struct bstr param); + #endif |