Get mm_util_s from libmm-utility. because it is only used here 70/190970/1
authorhj kim <backto.kim@samsung.com>
Wed, 10 Oct 2018 05:04:27 +0000 (14:04 +0900)
committerhj kim <backto.kim@samsung.com>
Wed, 10 Oct 2018 05:04:27 +0000 (14:04 +0900)
Change-Id: I4e9adc714e1ce9766f453c408397a003e376cf0b

include/image_util_private.h

index d681e0c1a71f3e503b559a74c76fe3a808086ec8..1bd385465ffaa1a17cdcd28c50bd780cec6d4976 100755 (executable)
@@ -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 {