summaryrefslogtreecommitdiff
path: root/jpeg/patches
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2012-10-11 09:32:36 +0200
committerDavid Tardon <dtardon@redhat.com>2012-10-12 06:37:40 +0200
commitde8808f03719f793da5452e2ccdabfbf81492ac8 (patch)
tree26e106e18464ca4a7f6762dae958ff085966ef23 /jpeg/patches
parentb19ff316441fb2d1f0537e008ea8b6fdec307224 (diff)
gbuildification of jpeg
Change-Id: I466f13f1132103bc20b9918411a54fd3106f4553
Diffstat (limited to 'jpeg/patches')
-rw-r--r--jpeg/patches/jpeg-8c-jmorecfg.patch29
-rw-r--r--jpeg/patches/struct_alignment.patch48
2 files changed, 77 insertions, 0 deletions
diff --git a/jpeg/patches/jpeg-8c-jmorecfg.patch b/jpeg/patches/jpeg-8c-jmorecfg.patch
new file mode 100644
index 000000000000..34437440220f
--- /dev/null
+++ b/jpeg/patches/jpeg-8c-jmorecfg.patch
@@ -0,0 +1,29 @@
+--- misc/jpeg-8c/jmorecfg.h 2009-11-20 09:01:24.000000000 +0100
++++ misc/build/jpeg-8c/jmorecfg.h 2011-03-24 21:29:02.073761750 +0100
+@@ -21,7 +21,7 @@
+ * We do not support run-time selection of data precision, sorry.
+ */
+
+-#define BITS_IN_JSAMPLE 8 /* use 8 or 12 */
++#define BITS_IN_JSAMPLE 8 /* use 8 or 12 */
+
+
+ /*
+@@ -158,7 +158,8 @@
+
+ /* INT32 must hold at least signed 32-bit values. */
+
+-#ifndef XMD_H /* X11/xmd.h correctly defines INT32 */
++#ifndef XMD_H /* X11/xmd.h correctly defines INT32 */
++#ifndef _SOLAR_H
+ #ifndef _BASETSD_H_ /* Microsoft defines it in basetsd.h */
+ #ifndef _BASETSD_H /* MinGW is slightly different */
+ #ifndef QGLOBAL_H /* Qt defines it in qglobal.h */
+@@ -166,6 +167,7 @@
+ #endif
+ #endif
+ #endif
++#endif
+ #endif
+
+ /* Datatype used for image dimensions. The JPEG standard only supports
diff --git a/jpeg/patches/struct_alignment.patch b/jpeg/patches/struct_alignment.patch
new file mode 100644
index 000000000000..09966c3392d2
--- /dev/null
+++ b/jpeg/patches/struct_alignment.patch
@@ -0,0 +1,48 @@
+without this patch, the jpeg_decompress_struct & jpec_compress_struct will be padded, this in turn
+results in a mismatch when the jpeg filter in svtools is built, where no
+padding is assumed. Only affects Mac/PPC apparenlty, see fdo#47035
+--- misc/jpeg-8c/jpeglib.h 2010-11-17 22:01:56.000000000 +0100
++++ misc/build/jpeg-8c/jpeglib.h 2012-05-19 13:58:31.000000000 +0200
+@@ -288,9 +288,9 @@
+ JDIMENSION image_width; /* input image width */
+ JDIMENSION image_height; /* input image height */
+ int input_components; /* # of color components in input image */
+- J_COLOR_SPACE in_color_space; /* colorspace of input image */
+
+ double input_gamma; /* image gamma of input image */
++ J_COLOR_SPACE in_color_space; /* colorspace of input image */
+
+ /* Compression parameters --- these fields must be set before calling
+ * jpeg_start_compress(). We recommend calling jpeg_set_defaults() to
+@@ -359,16 +359,16 @@
+ /* Parameters controlling emission of special markers. */
+
+ boolean write_JFIF_header; /* should a JFIF marker be written? */
++ boolean write_Adobe_marker; /* should an Adobe marker be written? */
+ UINT8 JFIF_major_version; /* What to write for the JFIF version number */
+ UINT8 JFIF_minor_version;
+ /* These three values are not used by the JPEG code, merely copied */
+ /* into the JFIF APP0 marker. density_unit can be 0 for unknown, */
+ /* 1 for dots/inch, or 2 for dots/cm. Note that the pixel aspect */
+ /* ratio is defined by X_density/Y_density even when density_unit=0. */
+- UINT8 density_unit; /* JFIF code for pixel size units */
+ UINT16 X_density; /* Horizontal pixel density */
+ UINT16 Y_density; /* Vertical pixel density */
+- boolean write_Adobe_marker; /* should an Adobe marker be written? */
++ UINT8 density_unit; /* JFIF code for pixel size units */
+
+ /* State variable: index of next scanline to be written to
+ * jpeg_write_scanlines(). Application may use this to control its
+@@ -583,11 +583,11 @@
+ /* Data copied from JFIF marker; only valid if saw_JFIF_marker is TRUE: */
+ UINT8 JFIF_major_version; /* JFIF version number */
+ UINT8 JFIF_minor_version;
++ UINT8 Adobe_transform; /* Color transform code from Adobe marker */
+ UINT8 density_unit; /* JFIF code for pixel size units */
+ UINT16 X_density; /* Horizontal pixel density */
+ UINT16 Y_density; /* Vertical pixel density */
+ boolean saw_Adobe_marker; /* TRUE iff an Adobe APP14 marker was found */
+- UINT8 Adobe_transform; /* Color transform code from Adobe marker */
+
+ boolean CCIR601_sampling; /* TRUE=first samples are cosited */
+