summaryrefslogtreecommitdiff
path: root/src/cairo-spans.c
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2013-09-14 20:59:56 +0930
committerAdrian Johnson <ajohnson@redneon.com>2013-09-15 20:50:46 +0930
commit5c0caa6f82374ec38a33d5f25a725f60bc121887 (patch)
treef72d0efad6b57d4592713831c7c863de4e5432dc /src/cairo-spans.c
parent2d6705671a900251f00c6b59375bd4d23ec6b4d0 (diff)
downloadcairo-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-spans.c')
-rw-r--r--src/cairo-spans.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo-spans.c b/src/cairo-spans.c
index b8d41800e..182390c20 100644
--- a/src/cairo-spans.c
+++ b/src/cairo-spans.c
@@ -127,6 +127,7 @@ _cairo_scan_converter_create_in_error (cairo_status_t status)
case CAIRO_STATUS_DEVICE_ERROR: RETURN_NIL;
case CAIRO_STATUS_INVALID_MESH_CONSTRUCTION: RETURN_NIL;
case CAIRO_STATUS_DEVICE_FINISHED: RETURN_NIL;
+ case CAIRO_STATUS_JBIG2_GLOBAL_MISSING:
default:
break;
}
@@ -239,6 +240,7 @@ _cairo_span_renderer_create_in_error (cairo_status_t status)
case CAIRO_STATUS_DEVICE_ERROR: RETURN_NIL;
case CAIRO_STATUS_INVALID_MESH_CONSTRUCTION: RETURN_NIL;
case CAIRO_STATUS_DEVICE_FINISHED: RETURN_NIL;
+ case CAIRO_STATUS_JBIG2_GLOBAL_MISSING: RETURN_NIL;
default:
break;
}