summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-07-07 14:53:58 +0200
committerwm4 <wm4@nowhere>2015-07-07 15:05:32 +0200
commit92727e7332cd8c9237552675fd8e8dba9b1a4127 (patch)
treeca66eb301794513652a994eeb3bd0eb56cb4b1c0 /options
parent1d29177c5c150e700cace0c875185c6fa5e92d3c (diff)
downloadmpv-92727e7332cd8c9237552675fd8e8dba9b1a4127.tar.bz2
mpv-92727e7332cd8c9237552675fd8e8dba9b1a4127.tar.xz
vo_opengl_cb, vo_opengl: add option for preloading hwdec context
See manpage additions. This is mainly useful for vo_opengl_cb, but can also be applied to vo_opengl. On a side note, gl_hwdec_load_api() should stop using a name string, and instead always use the IDs. This should be cleaned up another time.
Diffstat (limited to 'options')
-rw-r--r--options/options.c1
-rw-r--r--options/options.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index d286e5b63c..d92a0eef5d 100644
--- a/options/options.c
+++ b/options/options.c
@@ -297,6 +297,7 @@ const m_option_t mp_opts[] = {
OPT_FLAG("ad-spdif-dtshd", dtshd, 0),
OPT_CHOICE_C("hwdec", hwdec_api, 0, mp_hwdec_names),
+ OPT_CHOICE_C("hwdec-preload", vo.hwdec_preload_api, 0, mp_hwdec_names),
OPT_STRING("hwdec-codecs", hwdec_codecs, 0),
OPT_SUBSTRUCT("sws", vo.sws_opts, sws_conf, 0),
diff --git a/options/options.h b/options/options.h
index b5e0e1f624..9d211390e0 100644
--- a/options/options.h
+++ b/options/options.h
@@ -42,7 +42,10 @@ typedef struct mp_vo_opts {
float monitor_pixel_aspect;
int force_window_position;
+ // vo_wayland, vo_drm
struct sws_opts *sws_opts;
+ // vo_opengl, vo_opengl_cb
+ int hwdec_preload_api;
} mp_vo_opts;
struct mp_cache_opts {