From 92727e7332cd8c9237552675fd8e8dba9b1a4127 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 7 Jul 2015 14:53:58 +0200 Subject: 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. --- options/options.c | 1 + options/options.h | 3 +++ 2 files changed, 4 insertions(+) (limited to 'options') 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 { -- cgit v1.2.3