diff options
| -rw-r--r-- | HISTORY | 1 | ||||
| -rw-r--r-- | xine_post_atmo.c | 8 |
2 files changed, 5 insertions, 4 deletions
@@ -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; } } } |
