Remove unused imgp_type_e 47/309247/1
authorJiyong <jiyong.min@samsung.com>
Mon, 8 Apr 2024 01:42:45 +0000 (10:42 +0900)
committerJiyong <jiyong.min@samsung.com>
Mon, 8 Apr 2024 01:43:16 +0000 (10:43 +0900)
Change-Id: I6030b6049beb997824a3067889627dba6a8f5008

gstcs/include/mm_util_gstcs.h
gstcs/mm_util_gstcs.c

index 49aecb188a8a5206c5cc10b2a4a2773fd7b47832..f534b7748521420c8f74e5402b1cf969cdffb556 100644 (file)
@@ -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
 }
index bb2c990a05565480afd8027215b5628fc50c0751..1720223589f2b71358a9fa96247cd3ee81e6ca88 100644 (file)
@@ -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);