summaryrefslogtreecommitdiffstats
path: root/video/image_writer.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-05 21:04:55 +0200
committerwm4 <wm4@nowhere>2016-09-05 21:04:55 +0200
commit9e6b9d8a982eb07a05fd059a92f1d6b2f01460a0 (patch)
treed0e81a6d717e4ee841c855c97a4f9de407dd9b17 /video/image_writer.c
parent726ef35aa83907308587dda822c0f0fcd68fc07f (diff)
downloadmpv-9e6b9d8a982eb07a05fd059a92f1d6b2f01460a0.tar.bz2
mpv-9e6b9d8a982eb07a05fd059a92f1d6b2f01460a0.tar.xz
vo_image: move to global options
This is a bit "special", because the config tree wants unique m_sub_options pointers in the whole thing.
Diffstat (limited to 'video/image_writer.c')
-rw-r--r--video/image_writer.c24
1 files changed, 10 insertions, 14 deletions
diff --git a/video/image_writer.c b/video/image_writer.c
index 6b2f0f9a92..8a5980c98e 100644
--- a/video/image_writer.c
+++ b/video/image_writer.c
@@ -54,20 +54,16 @@ const struct image_writer_opts image_writer_opts_defaults = {
#define OPT_BASE_STRUCT struct image_writer_opts
-const struct m_sub_options image_writer_conf = {
- .opts = (const m_option_t[]) {
- OPT_INTRANGE("jpeg-quality", jpeg_quality, 0, 0, 100),
- OPT_INTRANGE("jpeg-smooth", jpeg_smooth, 0, 0, 100),
- OPT_FLAG("jpeg-source-chroma", jpeg_source_chroma, 0),
- OPT_INTRANGE("png-compression", png_compression, 0, 0, 9),
- OPT_INTRANGE("png-filter", png_filter, 0, 0, 5),
- OPT_STRING("format", format, 0),
- OPT_FLAG("high-bit-depth", high_bit_depth, 0),
- OPT_FLAG("tag-colorspace", tag_csp, 0),
- {0},
- },
- .size = sizeof(struct image_writer_opts),
- .defaults = &image_writer_opts_defaults,
+const struct m_option image_writer_opts[] = {
+ OPT_INTRANGE("jpeg-quality", jpeg_quality, 0, 0, 100),
+ OPT_INTRANGE("jpeg-smooth", jpeg_smooth, 0, 0, 100),
+ OPT_FLAG("jpeg-source-chroma", jpeg_source_chroma, 0),
+ OPT_INTRANGE("png-compression", png_compression, 0, 0, 9),
+ OPT_INTRANGE("png-filter", png_filter, 0, 0, 5),
+ OPT_STRING("format", format, 0),
+ OPT_FLAG("high-bit-depth", high_bit_depth, 0),
+ OPT_FLAG("tag-colorspace", tag_csp, 0),
+ {0},
};
struct image_writer_ctx {