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 {