summaryrefslogtreecommitdiff
path: root/src/cos_content.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2018-01-31 00:03:38 +0000
committerVincent Sanders <vince@kyllikki.org>2018-01-31 00:03:38 +0000
commit1ca90f384d4f2311cbf0abd44d8e4e5b7a4abb37 (patch)
tree35a931f40ed6ca1a1e2420ab1f63230f05349ca1 /src/cos_content.h
parent6b16f2446bb381be3de54d9edfe9088a8363df70 (diff)
downloadlibnspdf-1ca90f384d4f2311cbf0abd44d8e4e5b7a4abb37.tar.gz
libnspdf-1ca90f384d4f2311cbf0abd44d8e4e5b7a4abb37.tar.bz2
start actual page rendering
Diffstat (limited to 'src/cos_content.h')
-rw-r--r--src/cos_content.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/cos_content.h b/src/cos_content.h
index e0d2dfb..09700c2 100644
--- a/src/cos_content.h
+++ b/src/cos_content.h
@@ -193,9 +193,9 @@ enum content_operator {
#define content_string_intrnl_lngth ((sizeof(float) * content_number_size) - sizeof(uint8_t *))
-struct content_operation
-{
+struct content_operation {
enum content_operator operator;
+
union {
float number[content_number_size];
@@ -231,6 +231,19 @@ struct content_operation
};
/**
+ * Synthetic parsed content object.
+ */
+struct cos_content {
+ unsigned int length; /**< number of content operations */
+ unsigned int alloc; /**< number of allocated operations */
+ struct content_operation *operations;
+};
+
+
+const char* nspdf__cos_content_operator_name(enum content_operator operator);
+
+
+/**
* convert an operator and operand list into an operation
*/
nspdferror nspdf__cos_content_convert(enum content_operator operator, struct cos_object **operands, unsigned int *operand_idx, struct content_operation *operation_out);