summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJiyong Min <jiyong.min@samsung.com>2018-02-08 07:24:53 (GMT)
committerMinje ahn <minje.ahn@samsung.com>2018-02-08 08:26:18 (GMT)
commit84005f3beb854fdf47f6e7ad9c780a00240a6425 (patch)
treef17506559d986f8a79fa6143350a08fbd3bfa8a6 /src
parentb3ceefb00b997a50a3da4288b6af3a56f89385c3 (diff)
downloadlibmedia-thumbnail-84005f3beb854fdf47f6e7ad9c780a00240a6425.zip
libmedia-thumbnail-84005f3beb854fdf47f6e7ad9c780a00240a6425.tar.gz
libmedia-thumbnail-84005f3beb854fdf47f6e7ad9c780a00240a6425.tar.bz2
Updates color enums for refactoring of libmm-utilityrefs/changes/68/169668/3
Change-Id: I81c17682bd9c921938128cefae747dcd389b5f09
Diffstat (limited to 'src')
-rwxr-xr-xsrc/media-thumb-internal.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/media-thumb-internal.c b/src/media-thumb-internal.c
index 5b9ea44..b1bf357 100755
--- a/src/media-thumb-internal.c
+++ b/src/media-thumb-internal.c
@@ -65,12 +65,12 @@ int _media_thumb_general(const char *origin_path, const char *thumb_path, int th
unsigned int width = 0;
unsigned int height = 0;
size_t size = 0;
- mm_util_magick_format format = MM_UTIL_IMG_FMT_NUM;
+ mm_util_color_format_e format = MM_UTIL_COLOR_NUM;
if (thumb_path != NULL) {
err = mm_util_resize_P_P(origin_path, thumb_width, thumb_height, thumb_path);
} else {
- err = mm_util_resize_P_B(origin_path, thumb_width, thumb_height, MM_UTIL_IMG_FMT_BGRA8888, &img);
+ err = mm_util_resize_P_B(origin_path, thumb_width, thumb_height, MM_UTIL_COLOR_BGRA, &img);
if (err != MM_UTIL_ERROR_NONE) {
thumb_err("mm_util_resize_P_B failed : %d", err);
return MS_MEDIA_ERR_INTERNAL;
@@ -154,7 +154,7 @@ int _media_thumb_video(const char *origin_path, const char *thumb_path, int thum
size_t res_size = 0;
unsigned int res_width = 0;
unsigned int res_height = 0;
- mm_util_magick_format res_format;
+ mm_util_color_format_e res_format;
/* Get Content Tag attribute for orientation */
err = mm_file_create_tag_attrs(&tag, origin_path);
@@ -245,7 +245,7 @@ int _media_thumb_video(const char *origin_path, const char *thumb_path, int thum
thumb_dbg("Origin:W[%d] H[%d] Proper:W[%d] H[%d]", width, height, thumb_width, thumb_height);
- err = mm_util_create_handle(&img, (unsigned char *)frame, width, height, size, MM_UTIL_IMG_FMT_RGB888);
+ err = mm_util_create_handle(&img, (unsigned char *)frame, width, height, size, MM_UTIL_COLOR_RGB24);
if (width > thumb_width || height > thumb_height) {
if (rot_type != MM_UTIL_ROTATE_0) {
if (STRING_VALID(thumb_path)) {