diff options
Diffstat (limited to 'src/include')
-rwxr-xr-x | src/include/media-thumb-internal.h | 6 | ||||
-rwxr-xr-x | src/include/util/media-thumb-util.h | 72 |
2 files changed, 11 insertions, 67 deletions
diff --git a/src/include/media-thumb-internal.h b/src/include/media-thumb-internal.h index addbc7b..f101f52 100755 --- a/src/include/media-thumb-internal.h +++ b/src/include/media-thumb-internal.h @@ -66,16 +66,14 @@ typedef struct { void *user_data; } thumbUserData; -int -_media_thumb_image(const char *origin_path, +int _media_thumb_image(const char *origin_path, int thumb_width, int thumb_height, media_thumb_format format, media_thumb_info *thumb_info, uid_t uid); -int -_media_thumb_video(const char *origin_path, +int _media_thumb_video(const char *origin_path, int thumb_width, int thumb_height, media_thumb_format format, 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, |