summaryrefslogtreecommitdiff
path: root/src/codec/img-codec.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/codec/img-codec.c')
-rwxr-xr-xsrc/codec/img-codec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/codec/img-codec.c b/src/codec/img-codec.c
index e37ab8b..e87e93f 100755
--- a/src/codec/img-codec.c
+++ b/src/codec/img-codec.c
@@ -22,7 +22,7 @@
#include "media-thumb-debug.h"
#include "img-codec.h"
#include <string.h>
-#include <mm_util_imgp.h>
+#include <image_util.h>
unsigned int *ImgGetFirstFrameAGIFAtSize(const char *szFileName,
unsigned int width, unsigned int height)
@@ -54,7 +54,7 @@ unsigned int *ImgGetFirstFrameAGIFAtSize(const char *szFileName,
unsigned int i = 0;
- if (mm_util_get_image_size(MM_UTIL_IMG_FMT_RGB888, width, height, &i) < 0) {
+ if (image_util_calculate_buffer_size(width, height, IMAGE_UTIL_COLORSPACE_RGB888, &i) < 0) {
thumb_err("ImgGetFirstFrameAGIFAtSize: Failed to get buffer size");
return NULL;
}
@@ -101,7 +101,7 @@ int ImgConvertRGB565ToRGB888(void *pBuf_rgb565, void **pBuf_rgb888, int width, i
return FALSE;
}
- if (mm_util_get_image_size(MM_UTIL_IMG_FMT_RGB888, width, height, &size) < 0) {
+ if (image_util_calculate_buffer_size(width, height, IMAGE_UTIL_COLORSPACE_RGB888, &size) < 0) {
thumb_err("ImgGetFirstFrameAGIFAtSize: Failed to get buffer size");
return FALSE;
}