diff options
author | Robin Watts <robin.watts@artifex.com> | 2013-05-16 17:03:29 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-05-16 18:54:48 +0100 |
commit | 5157d7cac960316e76ac408d1f6ec1d24867bdb7 (patch) | |
tree | 994b30b4256b6298d5ec8314a2bea8ba9f1799b3 /fitz/fitz-internal.h | |
parent | d7a79bb7a88abfca9b1e0bc79703951f5a1e4bc5 (diff) | |
download | mupdf-5157d7cac960316e76ac408d1f6ec1d24867bdb7.tar.xz |
Add PWG raster output to mudraw.
Diffstat (limited to 'fitz/fitz-internal.h')
-rw-r--r-- | fitz/fitz-internal.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/fitz/fitz-internal.h b/fitz/fitz-internal.h index 22947cf4..24895591 100644 --- a/fitz/fitz-internal.h +++ b/fitz/fitz-internal.h @@ -799,6 +799,26 @@ static inline int fz_is_eof_bits(fz_stream *stm) return fz_is_eof(stm) && (stm->avail == 0 || stm->bits == EOF); } +static inline int fz_write_int32be(fz_output *out, int x) +{ + char data[4]; + + data[0] = x>>24; + data[1] = x>>16; + data[2] = x>>8; + data[3] = x; + + return fz_write(out, data, 4); +} + +static inline void +fz_write_byte(fz_output *out, int x) +{ + char data = x; + + fz_write(out, &data, 1); +} + /* * Data filters. */ |