diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-03-02 14:13:05 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-03-06 21:34:51 +0000 |
commit | d55162d649a12d62a1d1c738d99ca9dee7de575d (patch) | |
tree | 56b2de5557048a0601a8d9514cae76f018f8863f /fitz/res_bitmap.c | |
parent | a14bb1748d3827e542fbff47488f67e0dfa3b15d (diff) | |
download | mupdf-d55162d649a12d62a1d1c738d99ca9dee7de575d.tar.xz |
Split fitz.h/mupdf.h into internal/external headers.
Attempt to separate public API from internal functions.
Diffstat (limited to 'fitz/res_bitmap.c')
-rw-r--r-- | fitz/res_bitmap.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/fitz/res_bitmap.c b/fitz/res_bitmap.c index 2aa28b02..62cdd8ca 100644 --- a/fitz/res_bitmap.c +++ b/fitz/res_bitmap.c @@ -1,4 +1,4 @@ -#include "fitz.h" +#include "fitz-internal.h" fz_bitmap * fz_new_bitmap(fz_context *ctx, int w, int h, int n) @@ -74,3 +74,24 @@ fz_write_pbm(fz_context *ctx, fz_bitmap *bitmap, char *filename) fclose(fp); } + +fz_colorspace *fz_pixmap_colorspace(fz_context *ctx, fz_pixmap *pix) +{ + if (!pix) + return NULL; + return pix->colorspace; +} + +int fz_pixmap_components(fz_context *ctx, fz_pixmap *pix) +{ + if (!pix) + return 0; + return pix->n; +} + +unsigned char *fz_pixmap_pixels(fz_context *ctx, fz_pixmap *pix) +{ + if (!pix) + return NULL; + return pix->samples; +} |