[ACR-465] Rename image_util_encode_set_jpeg_quality to image_util_encode_set_quality 40/53740/9 accepted/tizen/mobile/20151215.053948 accepted/tizen/tv/20151215.054009 accepted/tizen/wearable/20151215.054029 submit/tizen/20151215.004220
authorVineeth TM <vineeth.tm@samsung.com>
Thu, 10 Dec 2015 00:45:34 +0000 (09:45 +0900)
committerVineeth T M <vineeth.tm@samsung.com>
Fri, 11 Dec 2015 00:05:51 +0000 (16:05 -0800)
Change-Id: I4cd62af5e1bf47eea7ac00fa5c4053ec9ddaab61
Signed-off-by: Vineeth TM <vineeth.tm@samsung.com>
decode-test/image_util_decode_encode_testsuite.c
include/image_util.h
src/image_util.c

index d2d7056..2d1d808 100755 (executable)
@@ -251,7 +251,7 @@ int main(int argc, char *argv[])
                        return 0;
 
                if (encode_image_type == IMAGE_UTIL_JPEG) {
-                       ret = image_util_encode_set_jpeg_quality(encoded, 100);
+                       ret = image_util_encode_set_quality(encoded, 100);
                        if (ret != IMAGE_UTIL_ERROR_NONE)
                                return 0;
                }
index e669d0b..0511f34 100755 (executable)
@@ -1169,10 +1169,11 @@ int image_util_encode_set_resolution(image_util_encode_h handle, unsigned long w
 int image_util_encode_set_colorspace(image_util_encode_h handle, image_util_colorspace_e colorspace);
 
 /**
-* @brief Sets the quality for JPEG image encoding.
+* @brief Sets the quality for image encoding.
 * @since_tizen 3.0
 *
-* @remarks If application does not set this, then by default quality of 20 is set.
+* @remarks If application does not set this, then by default quality of 75 is set.\n
+*             Quality is supported for JPEG format. IMAGE_UTIL_ERROR_NOT_SUPPORTED_FORMAT will be returned for other formats.
 *
 * @param[in] handle The handle to image util encoding
 * @param[in] quality Encoding quality from 1~100
@@ -1198,7 +1199,7 @@ int image_util_encode_set_colorspace(image_util_encode_h handle, image_util_colo
 * @see image_util_encode_run_async()
 * @see image_util_encode_destroy()
 */
-int image_util_encode_set_jpeg_quality(image_util_encode_h handle, int quality);
+int image_util_encode_set_quality(image_util_encode_h handle, int quality);
 
 /**
 * @brief Sets the compression value of png image encoding(0~9).
@@ -1319,7 +1320,7 @@ int image_util_encode_set_output_path(image_util_encode_h handle, const char *pa
 * @retval #IMAGE_UTIL_ERROR_NONE Successful
 * @retval #IMAGE_UTIL_ERROR_INVALID_PARAMETER Invalid parameter
 * @retval #IMAGE_UTIL_ERROR_INVALID_OPERATION Invalid operation
-* @retval #IMAGE_UTIL_ERROR_NOT_SUPPORTED_FORMAT Invalid operation
+* @retval #IMAGE_UTIL_ERROR_NOT_SUPPORTED_FORMAT Format not supported
 *
 * @pre image_util_encode_create()
 *
index 509ba90..6ded044 100755 (executable)
@@ -1498,7 +1498,7 @@ static int _image_util_encode_create_jpeg_handle(decode_encode_s * handle)
 
        handle->image_h = (MMHandleType) _handle;
        handle->colorspace = IMAGE_UTIL_COLORSPACE_RGBA8888;
-       handle->quality = 20;
+       handle->quality = 75;
 
        return err;
 }
@@ -1711,7 +1711,7 @@ int image_util_encode_set_colorspace(image_util_encode_h handle, image_util_colo
        return err;
 }
 
-int image_util_encode_set_jpeg_quality(image_util_encode_h handle, int quality)
+int image_util_encode_set_quality(image_util_encode_h handle, int quality)
 {
        int err = IMAGE_UTIL_ERROR_NONE;
        decode_encode_s *_handle = (decode_encode_s *) handle;