IplImage *vImg = cvCreateImage(cvSize(handle->width, handle->height), IPL_DEPTH_8U, 1);
if (!hsvImg || !hImg || !sImg || !vImg) {
- mm_util_error("fail to cvCreateImage()\n");
+ mm_util_error("fail to cvCreateImage()");
return MM_UTIL_ERROR_INVALID_OPERATION;
}
_convert_hsv_to_rgb(hVal, sVal, vVal, &rVal, &gVal, &bVal);
- mm_util_debug("nh[%d], ns[%d], nv[%d]\n", max_bin_idx[0], max_bin_idx[1], max_bin_idx[2]);
- mm_util_debug("h[%d], s[%d], v[%d]\n", hVal, sVal, vVal);
+ mm_util_debug("nh[%d], ns[%d], nv[%d]", max_bin_idx[0], max_bin_idx[1], max_bin_idx[2]);
+ mm_util_debug("h[%d], s[%d], v[%d]", hVal, sVal, vVal);
*rgb_r = rVal;
*rgb_g = gVal;
*rgb_b = bVal;
TTRACE_END();
return MM_UTIL_ERROR_NOT_SUPPORTED_FORMAT;
}
- mm_util_debug("format: %d, *imgsize: %d\n", format, *imgsize);
+ mm_util_debug("format: %d, *imgsize: %d", format, *imgsize);
TTRACE_END();
return ret;
static int _mm_util_transform_packet_finalize_callback(media_packet_h packet, int err, void *userdata)
{
- mm_util_debug("==> finalize callback func is called [%d] \n", err);
+ mm_util_debug("==> finalize callback func is called [%d]", err);
return MEDIA_PACKET_FINALIZE;
}
return MM_UTIL_ERROR_INVALID_PARAMETER;
}
- mm_util_debug("[Input] src: [%p] src_width: [%ui] src_height: [%ui] src_format: [%d] crop_start_x: [%ui] crop_start_y: [%ui] crop_dest_width: [%ui] crop_dest_height: [%ui]\n",
+ mm_util_debug("[Input] src: [%p] src_width: [%ui] src_height: [%ui] src_format: [%d] crop_start_x: [%ui] crop_start_y: [%ui] crop_dest_width: [%ui] crop_dest_height: [%ui]",
src, src_width, src_height, src_format, crop_start_x, crop_start_y, *crop_dest_width, *crop_dest_height);
switch (src_format) {
TTRACE_END();
return MM_UTIL_ERROR_NOT_SUPPORTED_FORMAT;
}
- mm_util_debug("format: %d, *imgsize: %d\n", format, *imgsize);
+ mm_util_debug("format: %d, *imgsize: %d", format, *imgsize);
TTRACE_END();
return ret;
#if LIBJPEG_TURBO
mm_util_debug("#START# LIBJPEG_TURBO");
ret = __mm_image_decode_from_jpeg_file_with_libjpeg_turbo(decoded, filename, fmt);
- mm_util_debug("decoded->data: %p\t width: %d\t height: %d\t size: %u\n", decoded->data, decoded->width, decoded->height, decoded->size);
+ mm_util_debug("decoded->data: %p\t width: %d\t height: %d\t size: %u", decoded->data, decoded->width, decoded->height, decoded->size);
mm_util_debug("#End# LIBJPEG_TURBO, Success!! ret: %d", ret);
#else
mm_util_debug("#START# libjpeg");
ret = __mm_image_decode_from_jpeg_file_with_libjpeg(decoded, filename, fmt, MM_UTIL_JPEG_DECODE_DOWNSCALE_1_1);
}
- mm_util_debug("decoded->data: %p\t width: %d\t height:%d\t size: %u\n", decoded->data, decoded->width, decoded->height, decoded->size);
+ mm_util_debug("decoded->data: %p\t width: %d\t height:%d\t size: %u", decoded->data, decoded->width, decoded->height, decoded->size);
mm_util_debug("#End# libjpeg, Success!! ret: %d", ret);
#endif
} else if (magic[0] == 0x47 && magic[1] == 0x49) {
mm_util_debug("#START# libjpeg");
ret = __mm_image_decode_from_jpeg_memory_with_libjpeg_turbo(decoded, src, size, fmt);
- mm_util_debug("decoded->data: %p\t width: %d\t height: %u\t size: %u\n", decoded->data, decoded->width, decoded->height, decoded->size);
+ mm_util_debug("decoded->data: %p\t width: %d\t height: %u\t size: %u", decoded->data, decoded->width, decoded->height, decoded->size);
mm_util_debug("#END# libjpeg, Success!! ret: %d", ret);
#else
ret = __mm_image_decode_from_jpeg_memory_with_libjpeg(decoded, src, size, fmt, MM_UTIL_JPEG_DECODE_DOWNSCALE_1_1);
}
- mm_util_debug("decoded->data: %p\t width: %d\t height: %d\t size: %u\n", decoded->data, decoded->width, decoded->height, decoded->size);
+ mm_util_debug("decoded->data: %p\t width: %d\t height: %d\t size: %u", decoded->data, decoded->width, decoded->height, decoded->size);
mm_util_debug("#END# libjpeg, Success!! ret: %d", ret);
#endif
#if LIBJPEG_TURBO
mm_util_debug("#START# LIBJPEG_TURBO");
ret = __mm_image_decode_from_jpeg_file_with_libjpeg_turbo(decoded, filename, fmt);
- mm_util_debug("decoded->data: %p\t width: %d\t height: %d\t size: %u\n", decoded->data, decoded->width, decoded->height, decoded->size);
+ mm_util_debug("decoded->data: %p\t width: %d\t height: %d\t size: %u", decoded->data, decoded->width, decoded->height, decoded->size);
mm_util_debug("#End# LIBJPEG_TURBO, Success!! ret: %d", ret);
#else
mm_util_debug("#START# libjpeg");
ret = __mm_image_decode_from_jpeg_file_with_libjpeg(decoded, filename, fmt, downscale);
}
- mm_util_debug("decoded->data: %p\t width: %d\t height:%d\t size: %u\n", decoded->data, decoded->width, decoded->height, decoded->size);
+ mm_util_debug("decoded->data: %p\t width: %d\t height:%d\t size: %u", decoded->data, decoded->width, decoded->height, decoded->size);
mm_util_debug("#End# libjpeg, Success!! ret: %d", ret);
#endif
} else if (magic[0] == 0x47 && magic[1] == 0x49) {
mm_util_debug("#START# libjpeg");
ret = __mm_image_decode_from_jpeg_memory_with_libjpeg_turbo(decoded, src, size, fmt);
- mm_util_debug("decoded->data: %p\t width: %d\t height: %d\t size: %u\n", decoded->data, decoded->width, decoded->height, decoded->size);
+ mm_util_debug("decoded->data: %p\t width: %d\t height: %d\t size: %u", decoded->data, decoded->width, decoded->height, decoded->size);
mm_util_debug("#END# libjpeg, Success!! ret: %d", ret);
#else
ret = __mm_image_decode_from_jpeg_memory_with_libjpeg(decoded, src, size, fmt, downscale);
}
- mm_util_debug("decoded->data: %p\t width: %d\t height: %d\t size: %u\n", decoded->data, decoded->width, decoded->height, decoded->size);
+ mm_util_debug("decoded->data: %p\t width: %d\t height: %d\t size: %u", decoded->data, decoded->width, decoded->height, decoded->size);
mm_util_debug("#END# libjpeg, Success!! ret: %d", ret);
#endif