summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMinje Ahn <minje.ahn@samsung.com>2015-06-11 05:16:38 (GMT)
committerMinje Ahn <minje.ahn@samsung.com>2015-06-12 04:32:13 (GMT)
commita12bc773900c611d8ca0e159397f039fa588893d (patch)
tree04ab5a27bd40f5441ccb45c0ed01e746f846279c /src/include
parentcbb11bf8d28059cdf57cea64a04150a740cbcf91 (diff)
downloadlibmedia-thumbnail-a12bc773900c611d8ca0e159397f039fa588893d.zip
libmedia-thumbnail-a12bc773900c611d8ca0e159397f039fa588893d.tar.gz
libmedia-thumbnail-a12bc773900c611d8ca0e159397f039fa588893d.tar.bz2
support thumbnail-util.refs/changes/54/41054/3
Change-Id: Ia218f4ef9ea66318eb67ed1fef2c6034044c18cb Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Diffstat (limited to 'src/include')
-rwxr-xr-xsrc/include/ipc/media-thumb-ipc.h20
-rwxr-xr-xsrc/include/media-thumb-internal.h8
-rwxr-xr-xsrc/include/util/media-thumb-util.h8
3 files changed, 34 insertions, 2 deletions
diff --git a/src/include/ipc/media-thumb-ipc.h b/src/include/ipc/media-thumb-ipc.h
index cc3cabf..ea07e5e 100755
--- a/src/include/ipc/media-thumb-ipc.h
+++ b/src/include/ipc/media-thumb-ipc.h
@@ -48,7 +48,11 @@ enum {
THUMB_REQUEST_CANCEL_MEDIA,
THUMB_REQUEST_CANCEL_ALL,
THUMB_REQUEST_KILL_SERVER,
- THUMB_RESPONSE
+ THUMB_RESPONSE,
+ THUMB_REQUEST_RAW_DATA,
+ THUMB_REQUEST_CANCEL_RAW_DATA,
+ THUMB_REQUEST_CANCEL_ALL_RAW_DATA,
+ THUMB_RESPONSE_RAW_DATA,
};
enum {
@@ -67,6 +71,10 @@ int _media_thumb_recv_udp_msg(int sock, int header_size, thumbMsg *msg, struct s
int _media_thumb_set_buffer(thumbMsg *req_msg, unsigned char **buf, int *buf_size);
+int _media_thumb_set_buffer_for_response(thumbMsg *req_msg, unsigned char **buf, int *buf_size);
+
+int _media_thumb_set_add_raw_data_buffer(thumbRawAddMsg *req_msg, unsigned char **buf, int *buf_size);
+
int _media_thumb_request(int msg_type,
media_thumb_type thumb_type,
const char *origin_path,
@@ -81,6 +89,16 @@ int _media_thumb_request_async(int msg_type,
thumbUserData *userData,
uid_t uid);
+int _media_thumb_request_raw_data_async(int msg_type,
+ int request_id,
+ const char *origin_path,
+ int width,
+ int height,
+ thumbRawUserData *userData,
+ uid_t uid);
+
int _media_thumb_process(thumbMsg *req_msg, thumbMsg *res_msg, uid_t uid);
+int _media_thumb_process_raw(thumbMsg *req_msg, thumbMsg *res_msg, thumbRawAddMsg *res_raw_msg, uid_t uid);
+
#endif /*_MEDIA_THUMB_IPC_H_*/
diff --git a/src/include/media-thumb-internal.h b/src/include/media-thumb-internal.h
index f101f52..151836a 100755
--- a/src/include/media-thumb-internal.h
+++ b/src/include/media-thumb-internal.h
@@ -66,11 +66,17 @@ typedef struct {
void *user_data;
} thumbUserData;
+typedef struct {
+ ThumbRawFunc func;
+ void *user_data;
+} thumbRawUserData;
+
int _media_thumb_image(const char *origin_path,
int thumb_width,
int thumb_height,
media_thumb_format format,
- media_thumb_info *thumb_info,
+ media_thumb_info *thumb_info,
+ bool is_raw,
uid_t uid);
int _media_thumb_video(const char *origin_path,
diff --git a/src/include/util/media-thumb-util.h b/src/include/util/media-thumb-util.h
index 41e48f4..fdda9ee 100755
--- a/src/include/util/media-thumb-util.h
+++ b/src/include/util/media-thumb-util.h
@@ -90,5 +90,13 @@ int _thumbnail_get_data(const char *origin_path,
int *alpha,
uid_t uid);
+int _thumbnail_get_raw_data(const char *origin_path,
+ media_thumb_format format,
+ unsigned char **data,
+ int *size,
+ int *width,
+ int *height,
+ uid_t uid);
+
#endif /*_MEDIA_THUMB_UTIL_H_*/