diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2014-11-20 12:32:01 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-03-08 11:27:55 +0100 |
commit | f2c664a04fa6cf49b3719a0cc4c59f57bab04948 (patch) | |
tree | f0f9fe151dcb2260b953d3bc840bae6b3796a1a6 /readers.h | |
parent | f897a5ee212491ea5d0560eeb1ca4f6bcfbfe111 (diff) | |
download | fbida-f2c664a04fa6cf49b3719a0cc4c59f57bab04948.tar.gz |
use pixman images for storage
Diffstat (limited to 'readers.h')
-rw-r--r-- | readers.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,4 @@ +#include <pixman.h> #include "list.h" enum ida_extype { @@ -27,7 +28,7 @@ struct ida_image_info { struct ida_image { struct ida_image_info i; - unsigned char *data; + pixman_image_t *p; }; struct ida_rect { int x1,y1,x2,y2; @@ -86,6 +87,10 @@ struct ida_extra* load_find_extra(struct ida_image_info *info, enum ida_extype type); int load_free_extras(struct ida_image_info *info); +void ida_image_alloc(struct ida_image *img); +uint8_t *ida_image_scanline(struct ida_image *img, int y); +void ida_image_free(struct ida_image *img); + /* ----------------------------------------------------------------------- */ /* other */ |