|
|
@@ -43,6 +43,8 @@ pipi_image_t *pipi_load_imlib2(const char *name) |
|
|
|
img->p[PIPI_PIXELS_RGBA32].w = img->w; |
|
|
|
img->p[PIPI_PIXELS_RGBA32].h = img->h; |
|
|
|
img->p[PIPI_PIXELS_RGBA32].pitch = 4 * img->w; |
|
|
|
img->p[PIPI_PIXELS_RGBA32].bpp = 32; |
|
|
|
img->p[PIPI_PIXELS_RGBA32].bytes = 4 * img->w * img->h; |
|
|
|
img->last_modified = PIPI_PIXELS_RGBA32; |
|
|
|
|
|
|
|
img->codec_priv = (void *)priv; |
|
|
@@ -79,6 +81,8 @@ void pipi_save_imlib2(pipi_image_t *img, const char *name) |
|
|
|
img->p[PIPI_PIXELS_RGBA32].w = imlib_image_get_width(); |
|
|
|
img->p[PIPI_PIXELS_RGBA32].h = imlib_image_get_height(); |
|
|
|
img->p[PIPI_PIXELS_RGBA32].pitch = 4 * imlib_image_get_width(); |
|
|
|
img->p[PIPI_PIXELS_RGBA32].bpp = 32; |
|
|
|
img->p[PIPI_PIXELS_RGBA32].bytes = 4 * img->w * img->h; |
|
|
|
|
|
|
|
img->codec_priv = (void *)priv; |
|
|
|
img->codec_format = PIPI_PIXELS_RGBA32; |
|
|
|