summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-05-03 17:02:33 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-05-03 17:02:33 +0100
commita3510d5085a0616457f76de41d843cdf76dbbf7f (patch)
tree4efd78deed6a3572b9cc1af2fef147755d904a09 /src
parentc85520427133b531b6ceb58fd5dcb0ad10329bca (diff)
evas - saver - tiff - change types to remove deprecated warnings
Diffstat (limited to 'src')
-rw-r--r--src/modules/evas/image_savers/tiff/evas_image_save_tiff.c10
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
14save_image_tiff(RGBA_Image *im, const char *file, int compress EINA_UNUSED, int interlace EINA_UNUSED) 14save_image_tiff(RGBA_Image *im, const char *file, int compress EINA_UNUSED, int interlace EINA_UNUSED)
15{ 15{
16 TIFF *tif = NULL; 16 TIFF *tif = NULL;
17 uint8 *buf = NULL; 17 uint8_t *buf = NULL;
18 DATA32 pixel; 18 DATA32 pixel;
19 DATA32 *data; 19 DATA32 *data;
20 uint32 x, y; 20 uint32_t x, y;
21 uint8 r, g, b, a = 0; 21 uint8_t r, g, b, a = 0;
22 int i = 0; 22 int i = 0;
23 int has_alpha; 23 int has_alpha;
24 24
@@ -48,7 +48,7 @@ save_image_tiff(RGBA_Image *im, const char *file, int compress EINA_UNUSED, int
48 48
49 if (has_alpha) 49 if (has_alpha)
50 { 50 {
51 uint16 extras[] = { EXTRASAMPLE_ASSOCALPHA }; 51 uint16_t extras[] = { EXTRASAMPLE_ASSOCALPHA };
52 TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 4); 52 TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 4);
53 TIFFSetField(tif, TIFFTAG_EXTRASAMPLES, 1, extras); 53 TIFFSetField(tif, TIFFTAG_EXTRASAMPLES, 1, extras);
54 } 54 }
@@ -60,7 +60,7 @@ save_image_tiff(RGBA_Image *im, const char *file, int compress EINA_UNUSED, int
60 TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, 8); 60 TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, 8);
61 TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, TIFFDefaultStripSize(tif, 0)); 61 TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, TIFFDefaultStripSize(tif, 0));
62 62
63 buf = (uint8 *) _TIFFmalloc(TIFFScanlineSize(tif)); 63 buf = (uint8_t *) _TIFFmalloc(TIFFScanlineSize(tif));
64 if (!buf) 64 if (!buf)
65 { 65 {
66 TIFFClose(tif); 66 TIFFClose(tif);