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;
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);