mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
spectrascope: avoid dark pixels in fade-and-move-up mode
This commit is contained in:
parent
65fa897f93
commit
046d3ab98f
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue