From: hj kim Date: Wed, 10 Oct 2018 05:04:27 +0000 (+0900) Subject: Get mm_util_s from libmm-utility. because it is only used here X-Git-Tag: submit/tizen/20181106.000712^2~37 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9f0c8efd1b386883fb5ad00c60bdd3777e6f9fb5;p=platform%2Fcore%2Fapi%2Fimage-util.git Get mm_util_s from libmm-utility. because it is only used here Change-Id: I4e9adc714e1ce9766f453c408397a003e376cf0b --- diff --git a/include/image_util_private.h b/include/image_util_private.h index d681e0c..1bd3854 100755 --- a/include/image_util_private.h +++ b/include/image_util_private.h @@ -97,31 +97,43 @@ extern "C" typedef gboolean(*ModuleFunc)(void *, int, int, unsigned char *, unsigned char *, unsigned char *); +typedef struct { + mm_image_info_s *src; + mm_image_info_s *dst; + + /* for converting colorspace */ + mm_util_color_format_e dst_format; + /* for image crop */ + /* for resize */ + unsigned int start_x; + unsigned int start_y; + unsigned int dst_width; + unsigned int dst_height; + + /* for rotation */ + mm_util_img_rotate_type rotation; + + bool set_convert; + bool set_crop; + bool set_resize; + bool set_rotate; + + /* for multi instance */ + mm_util_cb_s *_util_cb; + bool is_completed; + bool is_finish; + GThread* thread; + GAsyncQueue *queue; +} mm_util_s; + typedef struct { void *user_data; -// media_packet_h dst; image_util_transform_completed_cb completed_cb; } image_util_cb_s; typedef struct { - //media_packet_h src; - //media_packet_h dst; -// image_util_colorspace_e colorspace; dst_format -// image_util_rotation_e dest_rotation; -// void *image_h; mm_util_s *image_h; image_util_cb_s *_util_cb; -// unsigned int width; -// unsigned int height; -// image_util_rotation_e rotation; -// unsigned int start_x; -// unsigned int start_y; -// unsigned int end_x; -// unsigned int end_y; -// bool set_convert; -// bool set_resize; -// bool set_rotate; -// bool set_crop; } transformation_s; typedef struct {