diff options
author | Minje Ahn <minje.ahn@samsung.com> | 2015-06-05 16:01:28 +0900 |
---|---|---|
committer | Minje Ahn <minje.ahn@samsung.com> | 2015-06-05 16:25:21 +0900 |
commit | be3906afcd5d61009fa339b320305b04b5e89c64 (patch) | |
tree | d47c653ee0849bde15c4aa152a18dc925291d620 /src/include/util | |
parent | 147bd126e27935c2f61283e0b9b247b713744127 (diff) | |
download | libmedia-thumbnail-be3906afcd5d61009fa339b320305b04b5e89c64.tar.gz libmedia-thumbnail-be3906afcd5d61009fa339b320305b04b5e89c64.tar.bz2 libmedia-thumbnail-be3906afcd5d61009fa339b320305b04b5e89c64.zip |
Modify error type(annotation)
Change-Id: I0145b68cc08a327048b3f8c945dcc5af0bef0f8a
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Diffstat (limited to 'src/include/util')
-rwxr-xr-x | src/include/util/media-thumb-util.h | 72 |
1 files changed, 9 insertions, 63 deletions
diff --git a/src/include/util/media-thumb-util.h b/src/include/util/media-thumb-util.h index 7eee7d8..41e48f4 100755 --- a/src/include/util/media-thumb-util.h +++ b/src/include/util/media-thumb-util.h @@ -51,87 +51,33 @@ typedef enum { THUMB_PHONE, /**< Stored only in phone */ - THUMB_MMC /**< Stored only in MMC */ + THUMB_MMC /**< Stored only in MMC */ } media_thumb_store_type; int _media_thumb_get_length(media_thumb_type thumb_type); int _media_thumb_get_store_type_by_path(const char *full_path); -int -_media_thumb_get_file_ext(const char *file_path, char *file_ext, int max_len); +int _media_thumb_get_file_ext(const char *file_path, char *file_ext, int max_len); -int -_media_thumb_get_file_type(const char *file_full_path); +int _media_thumb_get_file_type(const char *file_full_path); -int -_media_thumb_remove_file(const char *path); +int _media_thumb_remove_file(const char *path); -char -*_media_thumb_generate_hash_name(const char *file); +char* _media_thumb_generate_hash_name(const char *file); -int -_media_thumb_get_hash_name(const char *file_full_path, - char *thumb_hash_path, size_t max_thumb_path, uid_t uid); +int _media_thumb_get_hash_name(const char *file_full_path, char *thumb_hash_path, size_t max_thumb_path, uid_t uid); -int -_media_thumb_save_to_file_with_gdk(GdkPixbuf *data, +int _media_thumb_save_to_file_with_gdk(GdkPixbuf *data, int w, int h, gboolean alpha, char *thumb_path); -int -_media_thumb_get_width(media_thumb_type thumb_type); +int _media_thumb_get_width(media_thumb_type thumb_type); -int -_media_thumb_get_height(media_thumb_type thumb_type); +int _media_thumb_get_height(media_thumb_type thumb_type); -/** - * _thumbnail_get_data: - * This function generates thumbnail raw data, which is wanted by user - * This api is closed for a while until being independent from evas object to be thread-safe - * - * @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. - * @param[in] origin_path The path of the original image - * @param[in] thumb_type The type of the returned thumbnail data - * @param[in] format The format of the returned data - * @param[out] data The data of generated thumbnail. - * @param[out] size The size of generated thumbnail. - * @param[out] width The width of generated thumbnail. - * @param[out] height The height of generated thumbnail. - * @param[out] origin_width The width of original image. - * @param[out] origin_height The height of original image. - * @see None. - * @pre None. - * @post None. - * @remark None. - * @par example - * @code - -#include <media-thumbnail.h> - -void test_get_thumb_data() -{ - int ret = MEDIA_THUMB_ERROR_NONE; - int thumb_type = 0; - const char *origin_path = "/opt/usr/media/test.jpg"; - void *data = NULL; - - - ret = _thumbnail_get_data(origin_path, thumb_type, thumb_path, &data); - - if (ret < 0) - { - printf( "_thumbnail_get_data fails. error code->%d", ret); - } - - return; -} - - * @endcode -*/ int _thumbnail_get_data(const char *origin_path, media_thumb_type thumb_type, media_thumb_format format, |