typedef void *mm_util_imgp_h;
-typedef bool (*mm_util_completed_callback)(mm_util_color_image_h image, int error, void *user_param);
-
typedef enum {
MM_UTIL_ROTATE_0, /**< Rotation 0 degree - no effect */
MM_UTIL_ROTATE_90, /**< Rotation 90 degree */
MM_UTIL_ROTATE_NUM /**< Number of rotation types */
} mm_util_img_rotate_type;
-typedef struct {
- void *user_data;
- mm_util_completed_callback completed_cb;
-} mm_util_cb_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_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);