diff options
author | Kim Kibum <kb0929.kim@samsung.com> | 2012-04-29 17:01:16 +0900 |
---|---|---|
committer | Kim Kibum <kb0929.kim@samsung.com> | 2012-04-29 17:01:16 +0900 |
commit | 69a56c3e83fe93a7b4286623e28d0059a9cbbe05 (patch) | |
tree | d1565da8fa4c02b4627d05a0872b0a85abcd7d96 /include | |
parent | 1a432356f7a4f1154376357f0c36054c33e82635 (diff) | |
download | libmedia-thumbnail-69a56c3e83fe93a7b4286623e28d0059a9cbbe05.tar.gz libmedia-thumbnail-69a56c3e83fe93a7b4286623e28d0059a9cbbe05.tar.bz2 libmedia-thumbnail-69a56c3e83fe93a7b4286623e28d0059a9cbbe05.zip |
upload tizen1.0 source
Diffstat (limited to 'include')
-rwxr-xr-x | include/media-thumb-types.h | 2 | ||||
-rwxr-xr-x | include/media-thumbnail.h | 30 |
2 files changed, 31 insertions, 1 deletions
diff --git a/include/media-thumb-types.h b/include/media-thumb-types.h index c73289d..3387a6c 100755 --- a/include/media-thumb-types.h +++ b/include/media-thumb-types.h @@ -30,7 +30,7 @@ typedef enum { } media_thumb_type; typedef enum { - MEDIA_THUMB_BGRA, /* BGRA, especially provided for evas users */ + MEDIA_THUMB_BGRA, /* BGRA, especially provided for evas users */ MEDIA_THUMB_RGB888, /* RGB888 */ } media_thumb_format; diff --git a/include/media-thumbnail.h b/include/media-thumbnail.h index ab68c4a..2d77601 100755 --- a/include/media-thumbnail.h +++ b/include/media-thumbnail.h @@ -127,8 +127,38 @@ int thumbnail_request_save_to_file(const char *origin_path, const char *thumb_path); +/** + * thumbnail_request_extract_all_thumbs: + * This function generates thumbnail of all media, which don't have thumbnail yet and save it to the file system as jpeg format. + * Once thumbnail generated, the thumbnail path and original image's width and height will be updated to media database. + * + * @return This function returns zero(MEDIA_THUMB_ERROR_NONE) on success, or negative value with error code. + * Please refer 'media-thumb-error.h' to know the exact meaning of the error. + * @see None. + * @pre None. + * @post None. + * @par example + * @code +#include <media-thumbnail.h> + +void extract_all_thumbs() +{ + int ret = MEDIA_THUMB_ERROR_NONE; + + ret = thumbnail_request_extract_all_thumbs(); + + if (ret < 0) { + printf( "thumbnail_request_extract_all_thumbs fails. error code->%d", ret); + } + + return; +} + + * @endcode + */ +int thumbnail_request_extract_all_thumbs(void); /** @} */ |