diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2017-10-22 08:07:49 +1030 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2017-10-22 08:42:36 +1030 |
commit | e1a02b180d804887980c111c1f9780bed44b96a6 (patch) | |
tree | cca69a484e92389b20ef60f31fb697e61b7ce774 /src/cairo.h | |
parent | 4ae7f411c865a25b577faea58e5fda6f4e9e1172 (diff) | |
download | cairo-e1a02b180d804887980c111c1f9780bed44b96a6.tar.gz |
Add CCITT_FAX mime type for PDF and PS surfaces
This completes the full set of PDF/PS image filters allowing image
data to be passed though without decompressing then recompresssing in
a less efficient format.
The difficulty with CCITT_FAX is it needs some decoding parameters
that are not stored inside the image data. This is achieved by using
an additional mime type CCITT_FAX_PARAMS that contains the params in
key=value format.
Diffstat (limited to 'src/cairo.h')
-rw-r--r-- | src/cairo.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo.h b/src/cairo.h index 32fc88b17..671be5a89 100644 --- a/src/cairo.h +++ b/src/cairo.h @@ -2453,6 +2453,8 @@ cairo_surface_set_user_data (cairo_surface_t *surface, #define CAIRO_MIME_TYPE_JBIG2 "application/x-cairo.jbig2" #define CAIRO_MIME_TYPE_JBIG2_GLOBAL "application/x-cairo.jbig2-global" #define CAIRO_MIME_TYPE_JBIG2_GLOBAL_ID "application/x-cairo.jbig2-global-id" +#define CAIRO_MIME_TYPE_CCITT_FAX "image/g3fax" +#define CAIRO_MIME_TYPE_CCITT_FAX_PARAMS "application/x-cairo.ccitt.params" cairo_public void cairo_surface_get_mime_data (cairo_surface_t *surface, |