summaryrefslogtreecommitdiff
path: root/src/cairo-tag-attributes-private.h
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2017-10-22 08:07:49 +1030
committerAdrian Johnson <ajohnson@redneon.com>2017-10-22 08:42:36 +1030
commite1a02b180d804887980c111c1f9780bed44b96a6 (patch)
treecca69a484e92389b20ef60f31fb697e61b7ce774 /src/cairo-tag-attributes-private.h
parent4ae7f411c865a25b577faea58e5fda6f4e9e1172 (diff)
downloadcairo-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-tag-attributes-private.h')
-rw-r--r--src/cairo-tag-attributes-private.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/cairo-tag-attributes-private.h b/src/cairo-tag-attributes-private.h
index a127abc97..30bb48ed9 100644
--- a/src/cairo-tag-attributes-private.h
+++ b/src/cairo-tag-attributes-private.h
@@ -68,10 +68,25 @@ typedef struct _cairo_dest_attrs {
cairo_bool_t internal;
} cairo_dest_attrs_t;
+typedef struct _cairo_ccitt_params {
+ int columns;
+ int rows;
+ int k;
+ cairo_bool_t end_of_line;
+ cairo_bool_t encoded_byte_align;
+ cairo_bool_t end_of_block;
+ cairo_bool_t black_is_1;
+ int damaged_rows_before_error;
+} cairo_ccitt_params_t;
+
+
cairo_private cairo_int_status_t
_cairo_tag_parse_link_attributes (const char *attributes, cairo_link_attrs_t *link_attrs);
cairo_private cairo_int_status_t
_cairo_tag_parse_dest_attributes (const char *attributes, cairo_dest_attrs_t *dest_attrs);
+cairo_private cairo_int_status_t
+_cairo_tag_parse_ccitt_params (const char *attributes, cairo_ccitt_params_t *dest_attrs);
+
#endif /* CAIRO_TAG_ATTRIBUTES_PRIVATE_H */