X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=blobdiff_plain;f=upstream%2Fjpeg-6b%2Fpatches%2Fjpeg-6b.patch;fp=upstream%2Fjpeg-6b%2Fpatches%2Fjpeg-6b.patch;h=0000000000000000000000000000000000000000;hp=ba5ce1dbba500dbd8e73abb7ee26b3dfed59d6cd;hb=6cb650297805f5c42d58fd78d82481be5fdc3d45;hpb=f56597a44e97463a1a46afe279773786e1ca9099 diff --git a/upstream/jpeg-6b/patches/jpeg-6b.patch b/upstream/jpeg-6b/patches/jpeg-6b.patch deleted file mode 100644 index ba5ce1d..0000000 --- a/upstream/jpeg-6b/patches/jpeg-6b.patch +++ /dev/null @@ -1,48 +0,0 @@ ---- jmorecfg.h Thu Jun 12 03:18:52 2003 -+++ jmorecfg.h Thu Jun 12 03:21:25 2003 -@@ -290,8 +290,11 @@ - #define IDCT_SCALING_SUPPORTED /* Output rescaling via IDCT? */ - #undef UPSAMPLE_SCALING_SUPPORTED /* Output rescaling at upsample stage? */ - #define UPSAMPLE_MERGING_SUPPORTED /* Fast path for sloppy upsampling? */ -+/* Can't use these with RGB_PIXELSIZE != 3 */ -+#if 0 - #define QUANT_1PASS_SUPPORTED /* 1-pass color quantization? */ - #define QUANT_2PASS_SUPPORTED /* 2-pass color quantization? */ -+#endif - - /* more capability options later, no doubt */ - -@@ -311,10 +314,30 @@ - * can't use color quantization if you change that value. - */ - --#define RGB_RED 0 /* Offset of Red in an RGB scanline element */ -+#include -+#if defined(__BYTE_ORDER) && !defined(BYTE_ORDER) -+#define BYTE_ORDER __BYTE_ORDER -+#endif -+#if defined(__LITTLE_ENDIAN) && !defined(LITTLE_ENDIAN) -+#define LITTLE_ENDIAN __LITTLE_ENDIAN -+#endif -+#if defined(__BIG_ENDIAN) && !defined(BIG_ENDIAN) -+#define BIG_ENDIAN __BIG_ENDIAN -+#endif -+ -+#if BYTE_ORDER == BIG_ENDIAN -+#define RGB_RED 1 /* Offset of Red in an RGB scanline element */ -+#define RGB_GREEN 2 /* Offset of Green */ -+#define RGB_BLUE 3 /* Offset of Blue */ -+#elif BYTE_ORDER == LITTLE_ENDIAN -+#define RGB_RED 2 /* Offset of Red in an RGB scanline element */ - #define RGB_GREEN 1 /* Offset of Green */ --#define RGB_BLUE 2 /* Offset of Blue */ --#define RGB_PIXELSIZE 3 /* JSAMPLEs per RGB scanline element */ -+#define RGB_BLUE 0 /* Offset of Blue */ -+#else -+#error Cannot figure out endianness -+#endif -+ -+#define RGB_PIXELSIZE 4 /* JSAMPLEs per RGB scanline element */ - - - /* Definitions for speed-related optimizations. */