diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2021-05-03 17:02:33 +0100 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2021-05-03 17:02:33 +0100 |
commit | a3510d5085a0616457f76de41d843cdf76dbbf7f (patch) | |
tree | 4efd78deed6a3572b9cc1af2fef147755d904a09 /src/modules | |
parent | c85520427133b531b6ceb58fd5dcb0ad10329bca (diff) | |
download | efl-a3510d5085a0616457f76de41d843cdf76dbbf7f.tar.gz |
evas - saver - tiff - change types to remove deprecated warnings
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/evas/image_savers/tiff/evas_image_save_tiff.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/evas/image_savers/tiff/evas_image_save_tiff.c b/src/modules/evas/image_savers/tiff/evas_image_save_tiff.c index 3e06b112b0..5d9253e39c 100644 --- a/src/modules/evas/image_savers/tiff/evas_image_save_tiff.c +++ b/src/modules/evas/image_savers/tiff/evas_image_save_tiff.c @@ -14,11 +14,11 @@ static int save_image_tiff(RGBA_Image *im, const char *file, int compress EINA_UNUSED, int interlace EINA_UNUSED) { TIFF *tif = NULL; - uint8 *buf = NULL; + uint8_t *buf = NULL; DATA32 pixel; DATA32 *data; - uint32 x, y; - uint8 r, g, b, a = 0; + uint32_t x, y; + uint8_t r, g, b, a = 0; int i = 0; int has_alpha; @@ -48,7 +48,7 @@ save_image_tiff(RGBA_Image *im, const char *file, int compress EINA_UNUSED, int if (has_alpha) { - uint16 extras[] = { EXTRASAMPLE_ASSOCALPHA }; + uint16_t extras[] = { EXTRASAMPLE_ASSOCALPHA }; TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 4); TIFFSetField(tif, TIFFTAG_EXTRASAMPLES, 1, extras); } @@ -60,7 +60,7 @@ save_image_tiff(RGBA_Image *im, const char *file, int compress EINA_UNUSED, int TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, 8); TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, TIFFDefaultStripSize(tif, 0)); - buf = (uint8 *) _TIFFmalloc(TIFFScanlineSize(tif)); + buf = (uint8_t *) _TIFFmalloc(TIFFScanlineSize(tif)); if (!buf) { TIFFClose(tif); |