[vlc-commits] commit: Fix scope alignment (Michael E )
git at videolan.org
git at videolan.org
Sun Dec 5 18:46:03 CET 2010
vlc | branch: master | Michael E <mapei_ at hotmail.com> | Sun Dec 5 19:45:18 2010 +0200| [e61ba5a72f46d5f67b361bd5f617f661f64e5fb7] | committer: Rémi Denis-Courmont
Fix scope alignment
This sets the base level of the scope display back to the centre of
its channel. Has been broken for at least +1 year.
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e61ba5a72f46d5f67b361bd5f617f661f64e5fb7
---
modules/visualization/visual/effects.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/visualization/visual/effects.c b/modules/visualization/visual/effects.c
index a5726be..1103375 100644
--- a/modules/visualization/visual/effects.c
+++ b/modules/visualization/visual/effects.c
@@ -819,7 +819,7 @@ int scope_Run(visual_effect_t * p_effect, vlc_object_t *p_aout,
uint8_t i_value;
/* Left channel */
- i_value = p_sample[p_effect->i_idx_left] * 127;
+ i_value = (1.0+p_sample[p_effect->i_idx_left]) * 127;
*(ppp_area[0][0]
+ p_picture->p[0].i_pitch * i_index / p_effect->i_width
+ p_picture->p[0].i_lines * i_value / 512
@@ -831,7 +831,7 @@ int scope_Run(visual_effect_t * p_effect, vlc_object_t *p_aout,
/* Right channel */
- i_value = p_sample[p_effect->i_idx_right] * 127;
+ i_value = (1.0+p_sample[p_effect->i_idx_right]) * 127;
*(ppp_area[1][0]
+ p_picture->p[0].i_pitch * i_index / p_effect->i_width
+ p_picture->p[0].i_lines * i_value / 512
More information about the vlc-commits
mailing list