summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-10-05 16:39:40 +0200
committerTor Andersson <tor.andersson@artifex.com>2017-10-12 15:18:07 +0200
commit4f31a07bf1206a0b7d2485c634bbf64e86e1da98 (patch)
treefe1d032328b07ea127dcd0cc6d51b3349d5d4835 /include
parente83aac6755dd9cd253badce622a39da20002b58a (diff)
downloadmupdf-4f31a07bf1206a0b7d2485c634bbf64e86e1da98.tar.xz
Refactor image format magic signature recognition into its own function.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/fitz/compressed-buffer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mupdf/fitz/compressed-buffer.h b/include/mupdf/fitz/compressed-buffer.h
index a3269d1b..995f5606 100644
--- a/include/mupdf/fitz/compressed-buffer.h
+++ b/include/mupdf/fitz/compressed-buffer.h
@@ -15,6 +15,8 @@ fz_stream *fz_open_compressed_buffer(fz_context *ctx, fz_compressed_buffer *);
fz_stream *fz_open_image_decomp_stream_from_buffer(fz_context *ctx, fz_compressed_buffer *, int *l2factor);
fz_stream *fz_open_image_decomp_stream(fz_context *ctx, fz_stream *, fz_compression_params *, int *l2factor);
+int fz_recognize_image_format(fz_context *ctx, unsigned char p[8]);
+
enum
{
FZ_IMAGE_UNKNOWN = 0,