summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibaut Mattern <tmattern@users.sourceforge.net>2002-12-29 22:34:29 +0000
committerThibaut Mattern <tmattern@users.sourceforge.net>2002-12-29 22:34:29 +0000
commit386d6ebe6efec93034f47f66954f902a20282b59 (patch)
tree908533df015aadec6aa1461dd87695fb50dcab6d
parent22c43b86f724997fe6d070e0d513c8015f13641f (diff)
downloadxine-lib-386d6ebe6efec93034f47f66954f902a20282b59.tar.gz
xine-lib-386d6ebe6efec93034f47f66954f902a20282b59.tar.bz2
Fixes wrong color conversion.
Daniel: Do you have compilation problems with this code ? CVS patchset: 3726 CVS date: 2002/12/29 22:34:29
-rw-r--r--src/post/goom/xine_goom.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/post/goom/xine_goom.c b/src/post/goom/xine_goom.c
index 51d541b62..1a835e98c 100644
--- a/src/post/goom/xine_goom.c
+++ b/src/post/goom/xine_goom.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: xine_goom.c,v 1.10 2002/12/29 18:06:49 f1rmb Exp $
+ * $Id: xine_goom.c,v 1.11 2002/12/29 22:34:29 tmattern Exp $
*
* GOOM post plugin.
*
@@ -34,11 +34,11 @@
#include "goom_core.h"
-#define FPS 15
+#define FPS 20
#define DURATION 90000/FPS
#define GOOM_WIDTH 320
-#define GOOM_HEIGHT 200
+#define GOOM_HEIGHT 240
typedef struct post_plugin_goom_s post_plugin_goom_t;
@@ -372,7 +372,7 @@ static void goom_port_put_buffer (xine_audio_port_t *port_gen,
{
uint8_t r1 = *(goom_frame++);
uint8_t g1 = *(goom_frame++);
- uint8_t b1 = *(goom_frame += 2);
+ uint8_t b1 = *goom_frame; goom_frame += 2;
uint8_t r2 = *(goom_frame++);
uint8_t g2 = *(goom_frame++);
uint8_t b2 = *(goom_frame++);
@@ -380,10 +380,10 @@ static void goom_port_put_buffer (xine_audio_port_t *port_gen,
{
uint8_t b1 = *(goom_frame++);
uint8_t g1 = *(goom_frame++);
- uint8_t r1 = *(goom_frame += 2);
+ uint8_t r1 = *goom_frame; goom_frame += 2;
uint8_t b2 = *(goom_frame++);
uint8_t g2 = *(goom_frame++);
- uint8_t r2 = *(goom_frame += 2);
+ uint8_t r2 = *goom_frame; goom_frame += 2;
#endif
*dest_ptr = (y_r_table[r1] + y_g_table[g1] + y_b_table[b1]) >> 16;