diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2013-09-14 20:59:56 +0930 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2013-09-15 20:50:46 +0930 |
commit | 5c0caa6f82374ec38a33d5f25a725f60bc121887 (patch) | |
tree | f72d0efad6b57d4592713831c7c863de4e5432dc /src/cairo.c | |
parent | 2d6705671a900251f00c6b59375bd4d23ec6b4d0 (diff) | |
download | cairo-5c0caa6f82374ec38a33d5f25a725f60bc121887.tar.gz |
pdf: support JBIG2 mime data
JBIG2 images may have shared global data that is stored in a separate
stream in PDF. The CAIRO_MIME_TYPE_JBIG2 mime type is for the JBIG2
data for each image. All images that use global data must also set
CAIRO_MIME_TYPE_JBIG2_GLOBAL_ID to a unique identifier. One of the
images must also set CAIRO_MIME_TYPE_JBIG2_GLOBAL to the global
data. The global data will be shared by all JBIG2 images with the same
CAIRO_MIME_TYPE_JBIG2_GLOBAL_ID.
Diffstat (limited to 'src/cairo.c')
-rw-r--r-- | src/cairo.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cairo.c b/src/cairo.c index 82396d221..c7128ae50 100644 --- a/src/cairo.c +++ b/src/cairo.c @@ -152,7 +152,9 @@ static const cairo_t _cairo_nil[] = { DEFINE_NIL_CONTEXT (CAIRO_STATUS_DEVICE_TYPE_MISMATCH), DEFINE_NIL_CONTEXT (CAIRO_STATUS_DEVICE_ERROR), DEFINE_NIL_CONTEXT (CAIRO_STATUS_INVALID_MESH_CONSTRUCTION), - DEFINE_NIL_CONTEXT (CAIRO_STATUS_DEVICE_FINISHED) + DEFINE_NIL_CONTEXT (CAIRO_STATUS_DEVICE_FINISHED), + DEFINE_NIL_CONTEXT (CAIRO_STATUS_JBIG2_GLOBAL_MISSING) + }; COMPILE_TIME_ASSERT (ARRAY_LENGTH (_cairo_nil) == CAIRO_STATUS_LAST_STATUS - 1); |