Update debug message 25/270725/1
authorbackto.kim <backto.kim@samsung.com>
Tue, 8 Feb 2022 05:33:50 +0000 (14:33 +0900)
committerbackto.kim <backto.kim@samsung.com>
Tue, 8 Feb 2022 05:33:50 +0000 (14:33 +0900)
Change-Id: I2a4a527d909cba242eb88a9b4d38172f2f8c0596

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

index dc639cc..2bd90bc 100644 (file)
@@ -147,7 +147,6 @@ static int __mm_util_get_crop_image_size(mm_util_color_format_e format, unsigned
                *imgsize = size;
                break;
 
-
        case MM_UTIL_COLOR_NV12:
        case MM_UTIL_COLOR_NV12_TILED:
                x_chroma_shift = 1;
@@ -163,7 +162,7 @@ static int __mm_util_get_crop_image_size(mm_util_color_format_e format, unsigned
                break;
 
        default:
-               mm_util_error("Not supported format");
+               mm_util_error("Not supported format [%d]", format);
                return MM_UTIL_ERROR_NOT_SUPPORTED_FORMAT;
        }
 
@@ -417,7 +416,7 @@ int mm_util_resize_image(mm_util_image_h src, unsigned int width, unsigned int h
        }
 
        if (__mm_gst_can_resize_format(_imgp_info_s->src_format) == FALSE) {
-               mm_util_error("#RESIZE ERROR# IMAGE_NOT_SUPPORT_FORMAT");
+               mm_util_error("Not supported format");
                ret = MM_UTIL_ERROR_NOT_SUPPORTED_FORMAT;
                goto ERROR;
        }
@@ -506,7 +505,7 @@ int mm_util_rotate_image(mm_util_image_h src, mm_util_rotate_type_e angle, mm_ut
        }
 
        if (__mm_gst_can_rotate_format(_imgp_info_s->src_format) == FALSE) {
-               mm_util_error("#ROTATE ERROR# IMAGE_NOT_SUPPORT_FORMAT");
+               mm_util_error("Not supported format");
                ret = MM_UTIL_ERROR_NOT_SUPPORTED_FORMAT;
                goto ERROR;
        }
@@ -584,15 +583,13 @@ int mm_util_crop_image(mm_util_image_h src, unsigned int start_x, unsigned int s
 
        if (_src->color == MM_UTIL_COLOR_I420 || _src->color == MM_UTIL_COLOR_YUV420) {
                if ((_width % 2) != 0) {
-                       mm_util_warn("#YUV Width value(%u) must be even at least# ", _width);
                        _width = ((_width+1)>>1)<<1;
-                       mm_util_debug("Image isplay is suceeded when YUV crop width value %u", _width);
+                       mm_util_warn("width must be even. change from [%d] to [%d]", width, _width);
                }
 
-               if ((_height % 2) != 0) { /* height value must be also even when crop yuv image */
-                       mm_util_warn("#YUV Height value(%u) must be even at least# ", _height);
+               if ((_height % 2) != 0) {
                        _height = ((_height+1)>>1)<<1;
-                       mm_util_debug("Image isplay is suceeded when YUV crop height value %u", _height);
+                       mm_util_warn("height must be even. change from [%d] to [%d]", height, _height);
                }
        }
 
@@ -623,7 +620,7 @@ int mm_util_crop_image(mm_util_image_h src, unsigned int start_x, unsigned int s
                break;
                }
        default:
-               mm_util_debug("Not supported format");
+               mm_util_error("Not supported format [%d]", _src->color);
                g_free(_buffer);
                return MM_UTIL_ERROR_NOT_SUPPORTED_FORMAT;
        }
@@ -712,7 +709,7 @@ int mm_util_get_image_size(mm_util_color_format_e format, unsigned int width, un
                break;
 
        default:
-               mm_util_error("Not supported format");
+               mm_util_error("Not supported format [%d]", format);
                return MM_UTIL_ERROR_NOT_SUPPORTED_FORMAT;
        }
 
index 65b87cc..1d8e6f9 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-utility
 Summary:    Multimedia Framework Utility Library
-Version:    0.3.5
+Version:    0.3.6
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0