|
|
@@ -90,6 +90,8 @@ pipi_pixels_t *pipi_getpixels(pipi_image_t *img, pipi_format_t type) |
|
|
img->p[type].pixels = malloc(bytes); |
|
|
img->p[type].pixels = malloc(bytes); |
|
|
img->p[type].bytes = bytes; |
|
|
img->p[type].bytes = bytes; |
|
|
img->p[type].bpp = bpp; |
|
|
img->p[type].bpp = bpp; |
|
|
|
|
|
img->p[type].w = img->w; |
|
|
|
|
|
img->p[type].h = img->h; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/* Convert pixels */ |
|
|
/* Convert pixels */ |
|
|
|