Browse Source

avfilter/vf_waveform: draw graticule for color filter too

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n3.1
Paul B Mahol 10 years ago
parent
commit
f659b70eb0
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libavfilter/vf_waveform.c

+ 4
- 0
libavfilter/vf_waveform.c View File

@@ -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;
}



Loading…
Cancel
Save