From 717e7a5baa1634d853a14dcfeebf42f8d1071384 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Tue, 31 Mar 2015 07:47:13 +0200 Subject: vf_format: add gamma override option --- video/filter/vf_format.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'video') diff --git a/video/filter/vf_format.c b/video/filter/vf_format.c index 4abf18b8fe..184d1f8eea 100644 --- a/video/filter/vf_format.c +++ b/video/filter/vf_format.c @@ -37,6 +37,7 @@ struct vf_priv_s { int colorlevels; int outputlevels; int primaries; + int gamma; int chroma_location; int stereo_in; int stereo_out; @@ -93,6 +94,8 @@ static int reconfig(struct vf_instance *vf, struct mp_image_params *in, out->outputlevels = p->outputlevels; if (p->primaries) out->primaries = p->primaries; + if (p->gamma) + out->gamma = p->gamma; if (p->chroma_location) out->chroma_location = p->chroma_location; if (p->stereo_in) @@ -137,6 +140,7 @@ static const m_option_t vf_opts_fields[] = { OPT_CHOICE_C("colorlevels", colorlevels, 0, mp_csp_levels_names), OPT_CHOICE_C("outputlevels", outputlevels, 0, mp_csp_levels_names), OPT_CHOICE_C("primaries", primaries, 0, mp_csp_prim_names), + OPT_CHOICE_C("gamma", gamma, 0, mp_csp_trc_names), OPT_CHOICE_C("chroma-location", chroma_location, 0, mp_chroma_names), OPT_CHOICE_C("stereo-in", stereo_in, 0, mp_stereo3d_names), OPT_CHOICE_C("stereo-out", stereo_out, 0, mp_stereo3d_names), -- cgit v1.2.3