summaryrefslogtreecommitdiffstats
path: root/ext/hermes/yuv2rgb.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2002-06-21 18:29:13 +0000
committerWim Taymans <wim.taymans@gmail.com>2002-06-21 18:29:13 +0000
commit9251ed656ad51ab6ae43b4076de16c9b335fa23d (patch)
treeab4a9b68c3ea7542fa0f239e8eae81ab636b7c7e /ext/hermes/yuv2rgb.c
parent43d17ede7a099635c0af06fb7840e37ac58face6 (diff)
downloadgst-plugins-bad-9251ed656ad51ab6ae43b4076de16c9b335fa23d.tar.gz
gst-plugins-bad-9251ed656ad51ab6ae43b4076de16c9b335fa23d.tar.bz2
gst-plugins-bad-9251ed656ad51ab6ae43b4076de16c9b335fa23d.zip
Fixed problem with color conversion
Original commit message from CVS: Fixed problem with color conversion Added conversion between YV12 and I420
Diffstat (limited to 'ext/hermes/yuv2rgb.c')
-rw-r--r--ext/hermes/yuv2rgb.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/hermes/yuv2rgb.c b/ext/hermes/yuv2rgb.c
index 8fcce91d..c89c35d5 100644
--- a/ext/hermes/yuv2rgb.c
+++ b/ext/hermes/yuv2rgb.c
@@ -24,10 +24,10 @@
#include "yuv2rgb.h"
-/*#undef HAVE_LIBMMX */
+/* #define HAVE_LIBMMX */
-#ifdef HAVE_LIBMMX
-#include "mmx.h"
+#ifdef HAVE_LIBMMX
+#include <mmx.h>
#endif
#define CB_BASE 1
@@ -187,8 +187,8 @@ static void gst_colorspace_yuv420P_to_rgb32(GstColorSpaceConverter *space, unsig
gst_colorspace_yuv_to_rgb32(space->color_tables,
src, /* Y component */
- src+size+(size>>2), /* cb component */
src+size, /* cr component */
+ src+size+(size>>2), /* cb component */
dest,
space->height,
space->width);
@@ -203,8 +203,8 @@ static void gst_colorspace_yuv420P_to_rgb24(GstColorSpaceConverter *space, unsig
gst_colorspace_yuv_to_rgb24(space->color_tables,
src, /* Y component */
- src+size+(size>>2), /* cb component */
src+size, /* cr component */
+ src+size+(size>>2), /* cb component */
dest,
space->height,
space->width);
@@ -219,8 +219,8 @@ static void gst_colorspace_yuv420P_to_rgb16(GstColorSpaceConverter *space, unsig
gst_colorspace_yuv_to_rgb16(space->color_tables,
src, /* Y component */
- src+size+(size>>2), /* cb component */
src+size, /* cr component */
+ src+size+(size>>2), /* cb component */
dest,
space->height,
space->width);