Remove unused imgp_type_e 49/309249/1 accepted/tizen/unified/20240411.142713 accepted/tizen/unified/x/20240412.023843
authorJiyong <jiyong.min@samsung.com>
Mon, 8 Apr 2024 01:45:39 +0000 (10:45 +0900)
committerJiyong <jiyong.min@samsung.com>
Mon, 8 Apr 2024 01:47:41 +0000 (10:47 +0900)
Change-Id: I711ccd4422a982c8ceb275c54a9ced2f57135906

imgp/include/mm_util_imgp_internal.h
imgp/mm_util_imgp.c

index 7296a8f..5d367aa 100644 (file)
        extern "C" {
 #endif
 
-#define PATH_GSTCS_LIB                                 LIBPREFIX "/libmmutil_imgp_gstcs.so"
-
-#define IMGP_FUNC_NAME                         "mm_imgp"
-
 /**
  * Image Process Info for dlopen
  */
@@ -45,14 +41,6 @@ typedef struct _imgp_info_s {
        mm_util_rotate_type_e angle;
 } imgp_info_s;
 
-/* Enumerations */
-typedef enum {
-       IMGP_CSC = 0,
-       IMGP_RSZ,
-       IMGP_ROT,
-       IMGP_MAX
-} imgp_type_e;
-
 #ifdef __cplusplus
 }
 #endif
index 05d4cff..7bd0c75 100644 (file)
 #include "mm_util_imgp.h"
 #include "mm_util_imgp_internal.h"
 
+#define PATH_GSTCS_LIB    LIBPREFIX "/libmmutil_imgp_gstcs.so"
+#define IMGP_FUNC_NAME    "mm_imgp"
+
 #define GEN_MASK(x) ((1<<(x))-1)
 #define ROUND_UP_X(v, x) (((v) + GEN_MASK(x)) & ~GEN_MASK(x))
 #define DIV_ROUND_UP_X(v, x) (((v) + GEN_MASK(x)) >> (x))
 
-typedef bool(*IMGPInfoFunc) (imgp_info_s *, const unsigned char *, unsigned char **, imgp_type_e);
+typedef bool(*IMGPInfoFunc) (imgp_info_s *, const unsigned char *, unsigned char **);
 
 static int __check_valid_picture_size(unsigned int width, unsigned int height)
 {
@@ -335,7 +338,7 @@ int mm_util_convert_colorspace(mm_util_image_h src, mm_util_color_format_e color
                goto ERROR;
        }
 
-       ret = _mm_util_imgp_func(_imgp_info_s, _src->data, &output_buffer, IMGP_CSC);
+       ret = _mm_util_imgp_func(_imgp_info_s, _src->data, &output_buffer);
        if (ret != MM_UTIL_ERROR_NONE) {
                mm_util_error("image processing failed");
                goto ERROR;
@@ -413,7 +416,7 @@ int mm_util_resize_image(mm_util_image_h src, unsigned int width, unsigned int h
                goto ERROR;
        }
 
-       ret = _mm_util_imgp_func(_imgp_info_s, _src->data, &output_buffer, IMGP_RSZ);
+       ret = _mm_util_imgp_func(_imgp_info_s, _src->data, &output_buffer);
        mm_util_debug("_mm_util_imgp_func, ret: %d", ret);
        if (ret != MM_UTIL_ERROR_NONE) {
                mm_util_error("image processing failed");
@@ -502,7 +505,7 @@ int mm_util_rotate_image(mm_util_image_h src, mm_util_rotate_type_e angle, mm_ut
                goto ERROR;
        }
 
-       ret = _mm_util_imgp_func(_imgp_info_s, _src->data, &output_buffer, IMGP_ROT);
+       ret = _mm_util_imgp_func(_imgp_info_s, _src->data, &output_buffer);
        if (ret != MM_UTIL_ERROR_NONE) {
                mm_util_error("image processing failed");
                goto ERROR;