Add coverage exception macros 24/219424/2
authorjiyong.min <jiyong.min@samsung.com>
Wed, 4 Dec 2019 23:31:51 +0000 (08:31 +0900)
committerjiyong.min <jiyong.min@samsung.com>
Wed, 4 Dec 2019 23:33:29 +0000 (08:33 +0900)
Change-Id: I884da8d4ced2485d8b1656b125d53cbb1c2ea665

packaging/capi-media-image-util.spec
src/image_util.c
src/image_util_decode.c
src/image_util_encode.c

index db0cffd393b288e8db3484b06f88bd0ab1b9d71c..5ec5442c75043da70e42120f0c3303ae5db6e604 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       capi-media-image-util
 Summary:    A Image Utility library in Tizen Native API
-Version:    0.2.2
+Version:    0.2.3
 Release:    2
 Group:      Multimedia/API
 License:    Apache-2.0
index b7e6ac93c261f6c36763a659f463a5abcd66aa7a..5ec12956ba2eb10cae5955e6bdf0117c4a340419 100644 (file)
@@ -168,6 +168,7 @@ static int __clone_transform(transformation_h src, transformation_h *dst)
        return ret;
 }
 
+/* LCOV_EXCL_START */
 static void __destroy_async_queue(gpointer data)
 {
        t_data_s *_t_data = (t_data_s *)data;
@@ -178,6 +179,7 @@ static void __destroy_async_queue(gpointer data)
        IMAGE_UTIL_SAFE_FREE(_t_data->transform);
        IMAGE_UTIL_SAFE_FREE(_t_data);
 }
+/* LCOV_EXCL_STOP */
 
 static gboolean __is_valid_condition(transformation_h handle)
 {
index 1b2c0008a5d81aa7782d7741de2f76e4ed2daa9d..3127b1ef0934f210d73e0dce7f977d1c7edfbabc 100644 (file)
@@ -598,6 +598,7 @@ int image_util_decode_destroy(image_util_decode_h handle)
        return IMAGE_UTIL_ERROR_NONE;
 }
 
+/* LCOV_EXCL_START */
 #ifdef TIZEN_FEATURE_COMPATIBILITY
 static int __image_util_get_image(mm_util_image_h image, int *width, int *height, unsigned char **buffer, unsigned int *size)
 {
@@ -709,3 +710,4 @@ int image_util_decode_jpeg_from_memory_with_downscale(const unsigned char *jpeg_
        return _image_error_capi(err);
 }
 #endif
+/* LCOV_EXCL_STOP */
index 9bf4924b2436499c27f91ef7d8e1f4a6ed7aacf0..d1c4575733b1c6ec5f791db07dfe953679588257 100644 (file)
@@ -753,6 +753,7 @@ int image_util_agif_encode_destroy(image_util_agif_encode_h handle)
        return IMAGE_UTIL_ERROR_NONE;
 }
 
+/* LCOV_EXCL_START */
 #ifdef TIZEN_FEATURE_COMPATIBILITY
 int image_util_encode_jpeg(const unsigned char *buffer, int width, int height, image_util_colorspace_e colorspace, int quality, const char *path)
 {
@@ -802,3 +803,4 @@ int image_util_encode_jpeg_to_memory(const unsigned char *image_buffer, int widt
        return _image_error_capi(err);
 }
 #endif
+/* LCOV_EXCL_STOP */