From: Tae-Young Chung Date: Mon, 13 Apr 2020 02:47:02 +0000 (+0900) Subject: [ITC][image-util][Non-ACR][Bug fix] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=54462934648a816859ca4878dfaffe8f5fd0ee6e;p=test%2Ftct%2Fnative%2Fapi.git [ITC][image-util][Non-ACR][Bug fix] Change-Id: I1de7337db446422c13d60317c9fd34e8ea8a5719 Signed-off-by: Tae-Young Chung --- diff --git a/src/itc/image-util/ITs-image-util.c b/src/itc/image-util/ITs-image-util.c index e577f52a4..e35a87595 100755 --- a/src/itc/image-util/ITs-image-util.c +++ b/src/itc/image-util/ITs-image-util.c @@ -566,7 +566,6 @@ int ITc_image_util_transform_run_p(void) int ITc_image_util_extract_color_from_memory_p(void) { unsigned char *puszImageSourceBuffer = NULL; - int nWidth = 0, nHeight = 0; unsigned char rgb_r, rgb_g, rgb_b; unsigned long long unDecodeSize = 0; image_util_decode_h dstHandle = NULL; @@ -605,11 +604,8 @@ int ITc_image_util_extract_color_from_memory_p(void) nRet = image_util_destroy_image(stDecodedImage); PRINT_RESULT(IMAGE_UTIL_ERROR_NONE, nRet, "image_util_destroy_image", ImageUtilGetError(nRet)); - nWidth = (int)nDecWidth; - nWidth = (int)nDecHeight; - //target api - nRet = image_util_extract_color_from_memory(puszImageSourceBuffer, nWidth, nHeight, &rgb_r, &rgb_g, &rgb_b); + nRet = image_util_extract_color_from_memory(puszImageSourceBuffer, (int)nDecWidth, (int)nDecHeight, &rgb_r, &rgb_g, &rgb_b); PRINT_RESULT_CLEANUP(IMAGE_UTIL_ERROR_NONE, nRet, "image_util_extract_color_from_memory", ImageUtilGetError(nRet), FREE_MEMORY(puszImageSourceBuffer)); FREE_MEMORY(puszImageSourceBuffer);