media_svc_debug("Origin:W[%d] H[%d] Proper:W[%d] H[%d]", origin_w, origin_h, thumb_w, thumb_h);
- ret = mm_util_create_handle(&img, (unsigned char *)frame, origin_w, origin_h, size, MM_UTIL_COLOR_RGB24);
+ ret = mm_image_create_image(origin_w, origin_h, MM_UTIL_COLOR_RGB24, (unsigned char *)frame, size, &img);
if (origin_w > thumb_w || origin_h > thumb_h) {
if (rot_type != MM_UTIL_ROTATE_0) {
ret = mm_util_resize_B_B(img, thumb_w, thumb_h, &resize_img);
}
ERROR:
- mm_util_destroy_handle(img);
- mm_util_destroy_handle(resize_img);
+ mm_image_destroy_image(img);
+ mm_image_destroy_image(resize_img);
mm_file_destroy_content_attrs(content);
if (ret != MS_MEDIA_ERR_NONE)