Commit f659b70e authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_waveform: draw graticule for color filter too

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 920f592b
......@@ -1518,6 +1518,10 @@ static int config_input(AVFilterLink *inlink)
s->waveform = achroma; break;
case COLOR:
s->size = 256;
if (s->graticule && s->mode == 1)
s->graticulef = s->bits > 8 ? graticule16_green_column : graticule_green_column;
else if (s->graticule && s->mode == 0)
s->graticulef = s->bits > 8 ? graticule16_green_row : graticule_green_row;
s->waveform = s->bits > 8 ? color16 : color; break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment