diff options
author | wm4 <wm4@nowhere> | 2012-08-06 17:48:30 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-08-06 17:48:30 +0200 |
commit | 5f57d276562c18ce65c47fa60f442ea427d7033e (patch) | |
tree | 95e7820e8ed3be3a3d809feb22dd236c7f1af0fc /cfg-mplayer.h | |
parent | 4de99d9c0c1451db8a11c4f8173352e932844f14 (diff) | |
download | mpv-5f57d276562c18ce65c47fa60f442ea427d7033e.tar.bz2 mpv-5f57d276562c18ce65c47fa60f442ea427d7033e.tar.xz |
image_writer: add option parsing
image_writer now provides its own option parsing, and screenshot.c and
the mplayer frontend use it.
Diffstat (limited to 'cfg-mplayer.h')
-rw-r--r-- | cfg-mplayer.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/cfg-mplayer.h b/cfg-mplayer.h index 0f1789dec5..c250d94874 100644 --- a/cfg-mplayer.h +++ b/cfg-mplayer.h @@ -616,6 +616,14 @@ const m_option_t tvscan_conf[]={ }; #endif +extern const struct m_sub_options image_writer_conf; + +const m_option_t screenshot_conf[] = { + OPT_SUBSTRUCT(screenshot_image_opts, image_writer_conf, M_OPT_MERGE), + OPT_STRING("template", screenshot_template, 0), + {0}, +}; + const m_option_t mplayer_opts[]={ /* name, pointer, type, flags, min, max */ @@ -785,10 +793,8 @@ const m_option_t mplayer_opts[]={ {"tvscan", (void *) tvscan_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, #endif /* CONFIG_TV */ - OPT_INTRANGE("screenshot-jpeg-quality", screenshot_jpeg_quality, 0, 0, 100), - OPT_INTRANGE("screenshot-png-compression", screenshot_png_compression, 0, 0, 9), - OPT_STRING("screenshot-filetype", screenshot_filetype, 0), - OPT_STRING("screenshot-template", screenshot_template, 0), + {"screenshot", (void *) screenshot_conf, CONF_TYPE_SUBCONFIG, + M_OPT_PREFIXED, 0, 0, NULL}, OPT_FLAG_ON("list-properties", list_properties, CONF_GLOBAL), {"identify", &mp_msg_levels[MSGT_IDENTIFY], CONF_TYPE_FLAG, CONF_GLOBAL, 0, MSGL_V, NULL}, |