projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65fa897
)
spectrascope: avoid dark pixels in fade-and-move-up mode
author
Stefan Sauer
<ensonic@users.sf.net>
Sun, 24 Jun 2012 19:11:39 +0000
(21:11 +0200)
committer
Stefan Sauer
<ensonic@users.sf.net>
Sun, 24 Jun 2012 19:11:39 +0000
(21:11 +0200)
gst/audiovisualizers/gstspectrascope.c
patch
|
blob
|
history
diff --git
a/gst/audiovisualizers/gstspectrascope.c
b/gst/audiovisualizers/gstspectrascope.c
index
6b4fe0e
..
63b59be
100644
(file)
--- a/
gst/audiovisualizers/gstspectrascope.c
+++ b/
gst/audiovisualizers/gstspectrascope.c
@@
-217,10
+217,12
@@
gst_spectra_scope_render (GstBaseAudioVisualizer * bscope, GstBuffer * audio,
y = h - y;
off = (y * w) + x;
vdata[off] = 0x00FFFFFF;
- for (l = y
+ 1; l <=
h; l++) {
+ for (l = y
; l <
h; l++) {
off += w;
add_pixel (&vdata[off], 0x007F7F7F);
}
+ /* ensure bottom line is full bright (especially in move-up mode) */
+ add_pixel (&vdata[off], 0x007F7F7F);
}
gst_buffer_unmap (video, &vmap);
gst_buffer_unmap (audio, &amap);