From 669a7683b782fd2708ada88d06f394e8b3a83cf6 Mon Sep 17 00:00:00 2001 From: Jiyong Date: Mon, 8 Apr 2024 10:45:39 +0900 Subject: [PATCH] Remove unused imgp_type_e Change-Id: I711ccd4422a982c8ceb275c54a9ced2f57135906 --- imgp/include/mm_util_imgp_internal.h | 12 ------------ imgp/mm_util_imgp.c | 11 +++++++---- 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/imgp/include/mm_util_imgp_internal.h b/imgp/include/mm_util_imgp_internal.h index 7296a8f..5d367aa 100644 --- a/imgp/include/mm_util_imgp_internal.h +++ b/imgp/include/mm_util_imgp_internal.h @@ -25,10 +25,6 @@ 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 diff --git a/imgp/mm_util_imgp.c b/imgp/mm_util_imgp.c index 05d4cff..7bd0c75 100644 --- a/imgp/mm_util_imgp.c +++ b/imgp/mm_util_imgp.c @@ -24,11 +24,14 @@ #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; -- 2.7.4