diff options
author | Joel Bodenmann <joel.bodenmann@simulton.com> | 2019-04-10 17:33:15 +0200 |
---|---|---|
committer | Joel Bodenmann <joel.bodenmann@simulton.com> | 2019-04-10 17:33:15 +0200 |
commit | 785047b0aa1d43d5f33ae69d7e0ed708df6db0bd (patch) | |
tree | e05a8c17ec9565e458b1cfce8b17e46b84381f57 /src/gdisp/gdisp_image_png.c | |
parent | 509fc7501e7bd30b1b314fc0d4838d7cdf6ac621 (diff) | |
download | uGFX-785047b0aa1d43d5f33ae69d7e0ed708df6db0bd.tar.gz uGFX-785047b0aa1d43d5f33ae69d7e0ed708df6db0bd.tar.bz2 uGFX-785047b0aa1d43d5f33ae69d7e0ed708df6db0bd.zip |
Introduce type gImage to replace v2.x gdispImage
Diffstat (limited to 'src/gdisp/gdisp_image_png.c')
-rw-r--r-- | src/gdisp/gdisp_image_png.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gdisp/gdisp_image_png.c b/src/gdisp/gdisp_image_png.c index 4cb3ca07..f6ab9be0 100644 --- a/src/gdisp/gdisp_image_png.c +++ b/src/gdisp/gdisp_image_png.c @@ -111,7 +111,7 @@ typedef struct PNG_zinflate { // Put all the decoding structures together. // Note this is immediately followed by 2 scan lines of uncompressed image data for filtering (dynamic size). typedef struct PNG_decode { - gdispImage *img; + gImage *img; PNG_info *pinfo; PNG_input i; PNG_output o; @@ -1127,7 +1127,7 @@ static gBool PNG_unfilter_type0(PNG_decode *d) { // PNG filter method 0 * Public PNG functions *---------------------------------------------------------------*/ -void gdispImageClose_PNG(gdispImage *img) { +void gdispImageClose_PNG(gImage *img) { PNG_info *pinfo; pinfo = (PNG_info *)img->priv; @@ -1141,7 +1141,7 @@ void gdispImageClose_PNG(gdispImage *img) { } } -gdispImageError gdispImageOpen_PNG(gdispImage *img) { +gdispImageError gdispImageOpen_PNG(gImage *img) { PNG_info *pinfo; gU32 pos; gU32 len; @@ -1497,7 +1497,7 @@ exit_nonmem: return GDISP_IMAGE_ERR_NOMEMORY; } -gdispImageError gdispGImageDraw_PNG(GDisplay *g, gdispImage *img, gCoord x, gCoord y, gCoord cx, gCoord cy, gCoord sx, gCoord sy) { +gdispImageError gdispGImageDraw_PNG(GDisplay *g, gImage *img, gCoord x, gCoord y, gCoord cx, gCoord cy, gCoord sx, gCoord sy) { PNG_info *pinfo; PNG_decode *d; @@ -1546,7 +1546,7 @@ exit_baddata: return GDISP_IMAGE_ERR_BADDATA; } -gdispImageError gdispImageCache_PNG(gdispImage *img) { +gdispImageError gdispImageCache_PNG(gImage *img) { PNG_info *pinfo; unsigned chunknext; unsigned chunklen; @@ -1621,7 +1621,7 @@ baddata: return GDISP_IMAGE_ERR_BADDATA; } -gDelay gdispImageNext_PNG(gdispImage *img) { +gDelay gdispImageNext_PNG(gImage *img) { (void) img; /* No more frames/pages */ |