Coverage Improvement of Contacts Service
[platform/core/pim/contacts-service.git] / common / ctsvc_image_util.c
index 2658346..539eb4f 100644 (file)
@@ -39,6 +39,7 @@ int ctsvc_image_util_get_mimetype(image_util_colorspace_e colorspace,
        case IMAGE_UTIL_COLORSPACE_YUV422:
                mimetype = MEDIA_FORMAT_422P;
                break;
+               /* LCOV_EXCL_START */
        case IMAGE_UTIL_COLORSPACE_NV12:
                mimetype = MEDIA_FORMAT_NV12;
                break;
@@ -57,9 +58,11 @@ int ctsvc_image_util_get_mimetype(image_util_colorspace_e colorspace,
        case IMAGE_UTIL_COLORSPACE_ARGB8888:
                mimetype = MEDIA_FORMAT_ARGB;
                break;
+               /* LCOV_EXCL_STOP */
        case IMAGE_UTIL_COLORSPACE_RGBA8888:
                mimetype = MEDIA_FORMAT_RGBA;
                break;
+               /* LCOV_EXCL_START */
        case IMAGE_UTIL_COLORSPACE_NV21:
                mimetype = MEDIA_FORMAT_NV21;
                break;
@@ -67,6 +70,7 @@ int ctsvc_image_util_get_mimetype(image_util_colorspace_e colorspace,
                mimetype = MEDIA_FORMAT_NV16;
                break;
        case IMAGE_UTIL_COLORSPACE_BGRA8888: /* not supported */
+               /* LCOV_EXCL_STOP */
        case IMAGE_UTIL_COLORSPACE_BGRX8888: /* not supported */
        case IMAGE_UTIL_COLORSPACE_NV61: /* not supported */
        case IMAGE_UTIL_COLORSPACE_YV12: /* not supported */
@@ -342,7 +346,7 @@ static int _ctsvc_image_util_transform_run(transformation_h transform,
        return CONTACTS_ERROR_NONE;
 }
 
-
+               /* LCOV_EXCL_START */
 int ctsvc_image_util_rotate(media_packet_h packet, image_util_rotation_e rotation,
                void **p_buffer, uint64_t *p_size)
 {
@@ -351,19 +355,15 @@ int ctsvc_image_util_rotate(media_packet_h packet, image_util_rotation_e rotatio
 
        ret = image_util_transform_create(&transform);
        if (IMAGE_UTIL_ERROR_NONE != ret) {
-               /* LCOV_EXCL_START */
                ERR("image_util_transform_create() Fail(%d)", ret);
                return CONTACTS_ERROR_SYSTEM;
-               /* LCOV_EXCL_STOP */
        }
 
        ret = image_util_transform_set_rotation(transform, rotation);
        if (IMAGE_UTIL_ERROR_NONE != ret) {
-               /* LCOV_EXCL_START */
                ERR("image_util_transform_set_rotation() Fail(%d)", ret);
                image_util_transform_destroy(transform);
                return CONTACTS_ERROR_SYSTEM;
-               /* LCOV_EXCL_STOP */
        }
 
        ret = _ctsvc_image_util_transform_run(transform, packet, p_buffer, p_size);
@@ -371,7 +371,7 @@ int ctsvc_image_util_rotate(media_packet_h packet, image_util_rotation_e rotatio
        image_util_transform_destroy(transform);
        return ret;
 }
-
+               /* LCOV_EXCL_STOP */
 int ctsvc_image_util_resize(media_packet_h packet, int width, int height,
                void **p_buffer, uint64_t *p_size)
 {