diff options
| author | Andreas Auras <yak54@gmx.net> | 2010-02-25 14:03:05 +0100 |
|---|---|---|
| committer | Andreas Auras <yak54@gmx.net> | 2010-02-25 14:03:05 +0100 |
| commit | 29e22cc990c3a96ea58fa6a7fcff1a549a19a97b (patch) | |
| tree | 15893d9fc1270b38dcc23e595c76225ad216b07a | |
| parent | 5e72322061badcb2168218200957e6d57f3aa24c (diff) | |
| download | xine-lib-atmolight-29e22cc990c3a96ea58fa6a7fcff1a549a19a97b.tar.gz xine-lib-atmolight-29e22cc990c3a96ea58fa6a7fcff1a549a19a97b.tar.bz2 | |
Changed calculation of weights for border area
| -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; } } } |
