Newer
Older
Import / research / embedded / src / library / image.h
@John John on 29 Dec 2020 484 bytes bulk import from macbookpro checkouts
/*
Copyright (c) 2007-2013, John Ryland
*/
#ifndef __IMAGE_H__
#define __IMAGE_H__

typedef struct {
    int		    	fd;
    unsigned	    width;
    unsigned	    height;
    unsigned	    bytes_per_pixel;
    unsigned char   *pixel_data;
} Image;

extern Image openImageFile(const char *mapableImage);
extern void closeImageFile(Image image);
extern void blitImage(  Image *dst, int x, int y,
						Image *image, int srcX, int srcY,
						int srcW, int srcH);

#endif /* __IMAGE_H__ */