Added new API for getting width and height from images.
Change-Id: Ib7b7f102daa27943dd8bd072a5b98660b6dba2b2
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
-CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+CMAKE_MINIMUM_REQUIRED(VERSION 2.6...2.8.12)
PROJECT(media-thumbnail C)
SET(VERSION_MAJOR 1)
SET(VERSION "${VERSION_MAJOR}.0.0")
int create_thumbnail_to_buffer(const char *path, unsigned int width, unsigned int height, unsigned char **thumb_buffer, size_t *thumb_size, unsigned int *thumb_width, unsigned int *thumb_height);
int create_thumbnail_to_file(const char *path, unsigned int width, unsigned int height, const char *thumb_path);
+int get_image_info(const char *path, unsigned int *width, unsigned int *height);
#ifdef __cplusplus
}
Name: libmedia-thumbnail
Summary: Media thumbnail service library for multimedia applications
-Version: 0.4.8
+Version: 0.4.9
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
regfree(®ex);
return create_video_thumbnail_to_file(path, width, height, thumb_path, false);
}
+
+int get_image_info(const char *path, unsigned int *width, unsigned int *height)
+{
+ int ret = MM_UTIL_ERROR_NONE;
+
+ ret = mm_util_extract_image_info(path, NULL, width, height);
+ thumb_retvm_if(ret != MM_UTIL_ERROR_NONE, THUMB_FAIL, "mm_util_extract_image_info failed");
+
+ return THUMB_OK;
+}