Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: third_party/iccjpeg/iccjpeg.h

Issue 811703002: [wip] low overhead icc for jpeg Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/iccjpeg/iccjpeg.c » ('j') | third_party/iccjpeg/iccjpeg.c » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | third_party/iccjpeg/iccjpeg.c » ('j') | third_party/iccjpeg/iccjpeg.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698