From bcfffa2b5a733d26e70689b49862f5326bed9790 Mon Sep 17 00:00:00 2001 From: hj kim Date: Wed, 10 Oct 2018 14:03:44 +0900 Subject: [PATCH] Move mm_util_s to CAPI level. because it is not used anymore here Change-Id: Id36a937c7aea7e871067c7590540bd53f0fcfb35 --- imgp/include/mm_util_imgp.h | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/imgp/include/mm_util_imgp.h b/imgp/include/mm_util_imgp.h index d17d474..5c8e303 100755 --- a/imgp/include/mm_util_imgp.h +++ b/imgp/include/mm_util_imgp.h @@ -28,7 +28,6 @@ extern "C" { #include #include -#include #include "mm_util_type.h" @@ -51,43 +50,7 @@ typedef struct { mm_util_completed_callback completed_cb; } mm_util_cb_s; -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; - int mm_util_get_image_size(mm_util_color_format_e format, unsigned int width, unsigned int height, size_t *imgsize); -//int mm_util_create(mm_util_imgp_h *imgp_handle); -//int mm_util_set_colorspace_convert(mm_util_imgp_h imgp_handle, mm_util_color_format_e colorspace); -//int mm_util_set_resolution(mm_util_imgp_h imgp_handle, unsigned int width, unsigned int height); -//int mm_util_set_rotation(mm_util_imgp_h imgp_handle, mm_util_img_rotate_type rotation); -//int mm_util_set_crop_area(mm_util_imgp_h imgp_handle, unsigned int start_x, unsigned int start_y, unsigned int end_x, unsigned int end_y); -int mm_util_transform(mm_util_imgp_h imgp_handle, mm_util_color_image_h image, mm_util_completed_callback completed_callback, void * user_data); -//int mm_util_destroy(mm_util_imgp_h imgp_handle); int mm_util_convert_colorspace(const unsigned char *src, unsigned int src_width, unsigned int src_height, mm_util_color_format_e src_format, mm_util_color_format_e dst_format, unsigned char **dst, unsigned int *result_buf_width, unsigned int *result_buf_height, size_t *result_buf_size); int mm_util_resize_image(const unsigned char *src, unsigned int src_width, unsigned int src_height, mm_util_color_format_e src_format, unsigned int dst_width, unsigned int dst_height, unsigned char **dst, unsigned int *result_buf_width, unsigned int *result_buf_height, size_t *result_buf_size); int mm_util_rotate_image(const unsigned char *src, unsigned int src_width, unsigned int src_height, mm_util_color_format_e src_format, mm_util_img_rotate_type angle, unsigned char **dst, unsigned int *result_buf_width, unsigned int *result_buf_height, size_t *result_buf_size); -- 2.7.4