Index: third_party/iccjpeg/iccjpeg.h |
diff --git a/third_party/iccjpeg/iccjpeg.h b/third_party/iccjpeg/iccjpeg.h |
index 25dd42e737e6142cb4784f59cd0dfeadd65f2ed4..11c3f44d63a9a23241dff75894cd3957cd4b7ac4 100644 |
--- a/third_party/iccjpeg/iccjpeg.h |
+++ b/third_party/iccjpeg/iccjpeg.h |
@@ -76,3 +76,34 @@ extern void setup_read_icc_profile JPP((j_decompress_ptr cinfo)); |
extern boolean read_icc_profile JPP((j_decompress_ptr cinfo, |
JOCTET **icc_data_ptr, |
unsigned int *icc_data_len)); |
+ |
+ |
+/* |
+ * Write the given ICCbis profile data into a JPEG file. |
+ * It *must* be called AFTER calling jpeg_start_compress() and BEFORE |
+ * the first call to jpeg_write_scanlines(). |
+ * (This ordering ensures that the APP2 marker(s) will appear after the |
+ * SOI and JFIF or Adobe markers, but before all else.) |
+ */ |
+ |
+extern void write_icc_profile_bis JPP((j_compress_ptr cinfo, |
+ JOCTET profile, |
+ JOCTET intent)); |
+ |
+ |
+/* |
+ * See if there was an ICCbis profile in the JPEG file being read; the |
+ * ICCbis profile is returned (0 for invalid / not found). If found, |
+ * write the rendering-intent to *intent (if given). |
+ */ |
+ |
+extern unsigned int read_icc_profile_bis JPP((j_decompress_ptr cinfo, |
+ unsigned int *intent)); |
+ |
+ |
+/* |
+ * Known ICCbis profiles are non-zero: |
+ */ |
+ |
+#define ICCBISsRGB 0x01 |
+#define ICCBISadobeRGB1998 0x02 |