aboutsummaryrefslogtreecommitdiffstats
path: root/readers.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2014-11-20 12:32:01 +0100
committerGerd Hoffmann <kraxel@redhat.com>2017-03-08 11:27:55 +0100
commitf2c664a04fa6cf49b3719a0cc4c59f57bab04948 (patch)
treef0f9fe151dcb2260b953d3bc840bae6b3796a1a6 /readers.h
parentf897a5ee212491ea5d0560eeb1ca4f6bcfbfe111 (diff)
downloadfbida-f2c664a04fa6cf49b3719a0cc4c59f57bab04948.tar.gz
use pixman images for storage
Diffstat (limited to 'readers.h')
-rw-r--r--readers.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/readers.h b/readers.h
index b54e5b6..1ad0e94 100644
--- a/readers.h
+++ b/readers.h
@@ -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 */