From 29e22cc990c3a96ea58fa6a7fcff1a549a19a97b Mon Sep 17 00:00:00 2001 From: Andreas Auras Date: Thu, 25 Feb 2010 14:03:05 +0100 Subject: Changed calculation of weights for border area --- HISTORY | 1 + xine_post_atmo.c | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/HISTORY b/HISTORY index a447fff..4cd4c05 100644 --- a/HISTORY +++ b/HISTORY @@ -6,6 +6,7 @@ Added 'start_delay' plugin parameter for individual adjustment of start delay af Changed start delay default from 1000ms to 250ms Added 'enable' plugin parameter for switching the atmolight on/off on the fly. DF10CH channel layout configuration parameters are now mandatory. +Changed calculation of weights for border area --- Version 0.4 diff --git a/xine_post_atmo.c b/xine_post_atmo.c index 2680da7..e22a47e 100644 --- a/xine_post_atmo.c +++ b/xine_post_atmo.c @@ -446,13 +446,13 @@ static void calc_weight(atmo_post_plugin_t *this, int *weight, const int width, if (center_channel) *weight++ = 255; if (top_left_channel) - *weight++ = (top + left) / 2; + *weight++ = (top > left) ? top: left; if (top_right_channel) - *weight++ = (top + right) / 2; + *weight++ = (top > right) ? top: right; if (bottom_left_channel) - *weight++ = (bottom + left) / 2; + *weight++ = (bottom > left) ? bottom: left; if (bottom_right_channel) - *weight++ = (bottom + right) / 2; + *weight++ = (bottom > right) ? bottom: right; } } } -- cgit v1.2.3