summaryrefslogtreecommitdiffstats
path: root/video/out/vo_vdpau.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/vo_vdpau.c')
-rw-r--r--video/out/vo_vdpau.c38
1 files changed, 18 insertions, 20 deletions
diff --git a/video/out/vo_vdpau.c b/video/out/vo_vdpau.c
index 177fd5e270..b5b936243f 100644
--- a/video/out/vo_vdpau.c
+++ b/video/out/vo_vdpau.c
@@ -1115,26 +1115,24 @@ const struct vo_driver video_out_vdpau = {
.uninit = uninit,
.priv_size = sizeof(struct vdpctx),
.options = (const struct m_option []){
- OPT_INTRANGE("deint", deint, 0, -4, 4),
- OPT_FLAG("chroma-deint", chroma_deint, 0, OPTDEF_INT(1)),
- OPT_FLAG("pullup", pullup, 0),
- OPT_FLOATRANGE("denoise", denoise, 0, 0, 1),
- OPT_FLOATRANGE("sharpen", sharpen, 0, -1, 1),
- OPT_INTRANGE("hqscaling", hqscaling, 0, 0, 9),
- OPT_FLOAT("fps", user_fps, 0),
- OPT_FLAG("composite-detect", composite_detect, 0, OPTDEF_INT(1)),
- OPT_INT("queuetime-windowed", flip_offset_window, 0, OPTDEF_INT(50)),
- OPT_INT("queuetime-fs", flip_offset_fs, 0, OPTDEF_INT(50)),
- OPT_INTRANGE("output-surfaces", num_output_surfaces, 0,
- 2, MAX_OUTPUT_SURFACES, OPTDEF_INT(3)),
- OPT_COLOR("colorkey", colorkey, 0,
- .defval = &(const struct m_color) {
- .r = 2, .g = 5, .b = 7, .a = 255,
- }),
- OPT_FLAG("force-yuv", force_yuv, 0),
- OPT_REPLACED("queuetime_windowed", "queuetime-windowed"),
- OPT_REPLACED("queuetime_fs", "queuetime-fs"),
- OPT_REPLACED("output_surfaces", "output-surfaces"),
+ {"deint", OPT_INT(deint), M_RANGE(-4, 4)},
+ {"chroma-deint", OPT_FLAG(chroma_deint), OPTDEF_INT(1)},
+ {"pullup", OPT_FLAG(pullup)},
+ {"denoise", OPT_FLOAT(denoise), M_RANGE(0, 1)},
+ {"sharpen", OPT_FLOAT(sharpen), M_RANGE(-1, 1)},
+ {"hqscaling", OPT_INT(hqscaling), M_RANGE(0, 9)},
+ {"fps", OPT_FLOAT(user_fps)},
+ {"composite-detect", OPT_FLAG(composite_detect), OPTDEF_INT(1)},
+ {"queuetime-windowed", OPT_INT(flip_offset_window), OPTDEF_INT(50)},
+ {"queuetime-fs", OPT_INT(flip_offset_fs), OPTDEF_INT(50)},
+ {"output-surfaces", OPT_INT(num_output_surfaces),
+ M_RANGE(2, MAX_OUTPUT_SURFACES), OPTDEF_INT(3)},
+ {"colorkey", OPT_COLOR(colorkey),
+ .defval = &(const struct m_color){.r = 2, .g = 5, .b = 7, .a = 255}},
+ {"force-yuv", OPT_FLAG(force_yuv)},
+ {"queuetime_windowed", OPT_REPLACED("queuetime-windowed")},
+ {"queuetime_fs", OPT_REPLACED("queuetime-fs")},
+ {"output_surfaces", OPT_REPLACED("output-surfaces")},
{NULL},
},
.options_prefix = "vo-vdpau",