From 919015ef25701aff6535ebd9461355948eecac0f Mon Sep 17 00:00:00 2001 From: Jiyong Date: Mon, 8 Apr 2024 10:42:45 +0900 Subject: [PATCH] Remove unused imgp_type_e Change-Id: I6030b6049beb997824a3067889627dba6a8f5008 --- gstcs/include/mm_util_gstcs.h | 10 +--------- gstcs/mm_util_gstcs.c | 3 +-- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/gstcs/include/mm_util_gstcs.h b/gstcs/include/mm_util_gstcs.h index 49aecb1..f534b77 100644 --- a/gstcs/include/mm_util_gstcs.h +++ b/gstcs/include/mm_util_gstcs.h @@ -42,14 +42,6 @@ typedef enum { MM_UTIL_ROTATE_NUM /**< Number of rotation types */ } mm_util_img_rotate_type_e; -/* Enumerations */ -typedef enum { - IMGP_CSC = 0, - IMGP_RSZ, - IMGP_ROT, - IMGP_MAX, -} imgp_type_e; - typedef enum { /* YUV planar format */ MM_UTIL_COLOR_YUV420, /**< YUV420 format - planer YV12*/ @@ -124,7 +116,7 @@ typedef struct _imgp_info_s { * else if the resule is 0, then you can use output_image pointer(char** value) */ -int mm_imgp(imgp_info_s* pImgp_info, unsigned char *src, unsigned char **dst, imgp_type_e _imgp_type_e); +int mm_imgp(imgp_info_s* pImgp_info, unsigned char *src, unsigned char **dst); #ifdef __cplusplus } diff --git a/gstcs/mm_util_gstcs.c b/gstcs/mm_util_gstcs.c index bb2c990..1720223 100644 --- a/gstcs/mm_util_gstcs.c +++ b/gstcs/mm_util_gstcs.c @@ -676,12 +676,11 @@ static bool _mm_imgp_check_format(mm_util_color_format_e color_format) return FALSE; } -int mm_imgp(imgp_info_s* pImgp_info, unsigned char *src, unsigned char **dst, imgp_type_e _imgp_type) +int mm_imgp(imgp_info_s* pImgp_info, unsigned char *src, unsigned char **dst) { gstcs_retvm_if(pImgp_info == NULL, GSTCS_ERROR_INVALID_PARAMETER, "Invalid info"); gstcs_retvm_if(src == NULL, GSTCS_ERROR_INVALID_PARAMETER, "Invalid src"); gstcs_retvm_if(dst == NULL, GSTCS_ERROR_INVALID_PARAMETER, "Invalid dst"); - gstcs_retvm_if((_imgp_type < 0 || _imgp_type > IMGP_MAX), GSTCS_ERROR_INVALID_PARAMETER, "Invalid _imgp_type[%d]", _imgp_type); gstcs_retvm_if((_mm_imgp_check_format(pImgp_info->src_format) == FALSE), GSTCS_ERROR_NOT_SUPPORTED_FORMAT, "not supported src_format [%d]", pImgp_info->src_format); gstcs_retvm_if((_mm_imgp_check_format(pImgp_info->dst_format) == FALSE), GSTCS_ERROR_NOT_SUPPORTED_FORMAT, "not supported dst_format [%d]", pImgp_info->dst_format); -- 2.7.4