Remove unused variables 29/191229/1
authorjiyong.min <jiyong.min@samsung.com>
Sun, 14 Oct 2018 23:24:31 +0000 (08:24 +0900)
committerjiyong.min <jiyong.min@samsung.com>
Sun, 14 Oct 2018 23:24:59 +0000 (08:24 +0900)
Change-Id: I6e394a71e37c4ad8dc3cdea3d38a72b2195683b6

include/image_util_private.h
src/image_util_encode.c

index 43399b9..2c8b7f6 100755 (executable)
@@ -80,12 +80,6 @@ extern "C"
 
 #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"
 
@@ -150,15 +144,12 @@ typedef struct {
        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 */
@@ -171,7 +162,6 @@ typedef struct {
        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;
index 9b5389c..04875fd 100644 (file)
@@ -113,7 +113,6 @@ int image_util_encode_create(image_util_type_e image_type, image_util_encode_h *
        _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;