OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
920f592
)
avfilter/vf_waveform: draw graticule for color filter too
author
Paul B Mahol
<onemda@gmail.com>
Mon, 7 Mar 2016 12:27:32 +0000
(13:27 +0100)
committer
Paul B Mahol
<onemda@gmail.com>
Mon, 7 Mar 2016 12:27:41 +0000
(13:27 +0100)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavfilter/vf_waveform.c
patch
|
blob
|
history
diff --git
a/libavfilter/vf_waveform.c
b/libavfilter/vf_waveform.c
index
9d02428
..
3e14d50
100644
(file)
--- a/
libavfilter/vf_waveform.c
+++ b/
libavfilter/vf_waveform.c
@@
-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;
}