Remove useless code 08/270708/3
authorbackto.kim <backto.kim@samsung.com>
Tue, 8 Feb 2022 03:22:29 +0000 (12:22 +0900)
committerbackto.kim <backto.kim@samsung.com>
Tue, 8 Feb 2022 04:57:36 +0000 (13:57 +0900)
As NEON is no longer used, there is no need for a code that distinguishes GST from NEON.

Change-Id: I8d803a9113f1e93db4be931638b4d9fd008e9680

imgp/mm_util_imgp.c
packaging/libmm-utility.spec

index c08b652..dc639cc 100644 (file)
@@ -28,7 +28,6 @@
 #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))
-#define GST "gstcs"
 
 typedef gboolean(*IMGPInfoFunc) (imgp_info_s *, const unsigned char *, unsigned char **, imgp_type_e);
 
@@ -417,12 +416,10 @@ int mm_util_resize_image(mm_util_image_h src, unsigned int width, unsigned int h
                goto ERROR;
        }
 
-       if (g_strrstr(g_module_name(_module), GST)) {
-               if (__mm_gst_can_resize_format(_imgp_info_s->src_format) == FALSE) {
-                       mm_util_error("#RESIZE ERROR# IMAGE_NOT_SUPPORT_FORMAT");
-                       ret = MM_UTIL_ERROR_NOT_SUPPORTED_FORMAT;
-                       goto ERROR;
-               }
+       if (__mm_gst_can_resize_format(_imgp_info_s->src_format) == FALSE) {
+               mm_util_error("#RESIZE ERROR# IMAGE_NOT_SUPPORT_FORMAT");
+               ret = MM_UTIL_ERROR_NOT_SUPPORTED_FORMAT;
+               goto ERROR;
        }
 
        ret = _mm_util_imgp_func(_imgp_info_s, _src->data, &output_buffer, IMGP_RSZ);
@@ -508,12 +505,10 @@ int mm_util_rotate_image(mm_util_image_h src, mm_util_rotate_type_e angle, mm_ut
                goto ERROR;
        }
 
-       if (g_strrstr(g_module_name(_module), GST)) {
-               if (__mm_gst_can_rotate_format(_imgp_info_s->src_format) == FALSE) {
-                       mm_util_error("#gstreamer ROTATE ERROR# IMAGE_NOT_SUPPORT_FORMAT");
-                       ret = MM_UTIL_ERROR_NOT_SUPPORTED_FORMAT;
-                       goto ERROR;
-               }
+       if (__mm_gst_can_rotate_format(_imgp_info_s->src_format) == FALSE) {
+               mm_util_error("#ROTATE ERROR# IMAGE_NOT_SUPPORT_FORMAT");
+               ret = MM_UTIL_ERROR_NOT_SUPPORTED_FORMAT;
+               goto ERROR;
        }
 
        ret = _mm_util_imgp_func(_imgp_info_s, _src->data, &output_buffer, IMGP_ROT);
index a89b667..65b87cc 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-utility
 Summary:    Multimedia Framework Utility Library
-Version:    0.3.4
+Version:    0.3.5
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0