#define _NOT_SUPPORTED_COLORSPACE (-1)
-#define MODE_DECODE 1
-#define MODE_ENCODE 2
-
-#define IS_DECODE_MODE(x) (x == MODE_DECODE)
-#define IS_ENCODE_MODE(x) (x == MODE_ENCODE)
-
#define IMGCV_FUNC_NAME "mm_util_cv_extract_representative_color"
#define PATH_MMUTIL_IMGCV_LIB PATH_LIBDIR"/libmmutil_imgcv.so"
void *image_h;
unsigned long width;
unsigned long height;
- unsigned int mode;
int quality;
image_util_png_compression_e compression;
unsigned int current_buffer_count;
unsigned int current_resolution_count;
unsigned int current_delay_count;
image_util_colorspace_e colorspace;
- image_util_scale_e down_scale;
- decode_cb_s *_decode_cb;
encode_cb_s *_encode_cb;
/* for async */
size_t src_size;
void **dst_buffer;
char *path;
- int quality;
image_util_colorspace_e colorspace;
image_util_scale_e down_scale;
decode_cb_s *_decode_cb;
_handle->dst_buffer = NULL;
_handle->path = NULL;
_handle->image_h = NULL;
- _handle->mode = MODE_ENCODE;
_handle->current_buffer_count = 0;
_handle->current_resolution_count = 0;
_handle->current_delay_count = 0;