From 336709061f74f51f12146ca7b73dd4fb4632a882 Mon Sep 17 00:00:00 2001 From: hj kim Date: Thu, 23 Aug 2018 11:14:13 +0900 Subject: [PATCH] Just add some debug msg to track error Change-Id: I2c2d904f4b40d2ac6b976616253154643101e827 --- bmp/mm_util_bmp.c | 3 +++ jpeg/mm_util_jpeg.c | 1 + png/mm_util_png.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/bmp/mm_util_bmp.c b/bmp/mm_util_bmp.c index c08dc12..28a8ba7 100755 --- a/bmp/mm_util_bmp.c +++ b/bmp/mm_util_bmp.c @@ -177,6 +177,9 @@ static int _read_bmp(const char *filename, void *memory, size_t src_size, mm_uti bmp_finalise(&bmp); if (filename) MMUTIL_SAFE_FREE(data); + + mm_util_debug("width (%lu) height (%lu) size (%zu)", decoded->width, decoded->height, decoded->size); + return res; } diff --git a/jpeg/mm_util_jpeg.c b/jpeg/mm_util_jpeg.c index e303737..4f6a8bd 100755 --- a/jpeg/mm_util_jpeg.c +++ b/jpeg/mm_util_jpeg.c @@ -664,6 +664,7 @@ int mm_util_decode_from_jpeg_memory(void *src, const size_t size, mm_util_color_ } mm_util_debug("decoded->data: %p\t width: %d\t height: %d\t size: %u", decoded->data, decoded->width, decoded->height, decoded->size); mm_util_debug("#END# libjpeg, Success!! ret: %d", ret); + mm_util_fleave(); return ret; } diff --git a/png/mm_util_png.c b/png/mm_util_png.c index 7801502..66251cd 100755 --- a/png/mm_util_png.c +++ b/png/mm_util_png.c @@ -224,6 +224,8 @@ static int _read_png(FILE *fp, void *memory, const size_t memory_size, mm_util_p decoded->height = (unsigned long)png_prop.height; decoded->size = data_size; + mm_util_debug("width (%lu) height (%lu) size (%zu)", decoded->width, decoded->height, decoded->size); + return MM_UTIL_ERROR_NONE; } -- 2.7.4