mmutil-bmp was just a wrapper of mmutil-magick. so use mmutil-magick directlry.
Change-Id: I7fdbeba2eff597a29d486c1a005855b5ef82cfc0
INCLUDE_DIRECTORIES(${INC_DIR})
# for package file
-SET(dependents "dlog mmutil-bmp mmutil-common mmutil-gif mmutil-png mmutil-jpeg mmutil-imgp capi-base-common capi-media-tool glib-2.0")
+SET(dependents "dlog mmutil-magick mmutil-common mmutil-gif mmutil-png mmutil-jpeg mmutil-imgp capi-base-common capi-media-tool glib-2.0")
SET(pc_dependents "capi-base-common capi-media-tool")
INCLUDE(FindPkgConfig)
pkg_check_modules(${fw_name} REQUIRED ${dependents})
Name: capi-media-image-util
Summary: A Image Utility library in Tizen Native API
-Version: 0.2.4
+Version: 0.2.5
Release: 2
Group: Multimedia/API
License: Apache-2.0
BuildRequires: pkgconfig(mmutil-imgp)
BuildRequires: pkgconfig(mmutil-png)
BuildRequires: pkgconfig(mmutil-gif)
-BuildRequires: pkgconfig(mmutil-bmp)
+BuildRequires: pkgconfig(mmutil-magick)
BuildRequires: pkgconfig(capi-base-common)
BuildRequires: pkgconfig(capi-media-tool)
BuildRequires: pkgconfig(glib-2.0)
#include <mm_util_jpeg.h>
#include <mm_util_png.h>
#include <mm_util_gif.h>
-#include <mm_util_bmp.h>
+#include <mm_util_magick.h>
#include <mm_util_image.h>
#include <image_util.h>
case IMAGE_UTIL_BMP:
{
if (_handle->path)
- err = mm_util_decode_from_bmp_file(_handle->path, image_info);
+ err = mm_util_decode_image_from_file(_handle->path, MM_UTIL_COLOR_RGBA, image_info);
else
- err = mm_util_decode_from_bmp_memory(_handle->src_buffer, _handle->src_size, image_info);
+ err = mm_util_decode_image_from_buffer(_handle->src_buffer, _handle->src_size, MM_UTIL_COLOR_RGBA, image_info);
}
break;
default:
break;
case IMAGE_UTIL_BMP:
- ret = mm_util_decode_from_bmp_file(file_path, image);
+ ret = mm_util_decode_image_from_file(file_path, MM_UTIL_COLOR_RGBA, image);
break;
default:
ret = mm_util_decode_from_gif_memory((void *)buffer, buffer_size, image);
break;
case IMAGE_UTIL_BMP:
- ret = mm_util_decode_from_bmp_memory((void *)buffer, buffer_size, image);
+ ret = mm_util_decode_image_from_buffer((void *)buffer, buffer_size, MM_UTIL_COLOR_RGBA, image);
break;
default:
image_util_error("Not supported format [%d]", image_type);
#include <mm_util_jpeg.h>
#include <mm_util_png.h>
#include <mm_util_gif.h>
-#include <mm_util_bmp.h>
+#include <mm_util_magick.h>
#include <mm_util_image.h>
#include <image_util.h>
case IMAGE_UTIL_BMP:
{
if (_handle->path)
- err = mm_util_encode_bmp_to_file(_src, _handle->path);
+ err = mm_util_encode_image_to_file(_src, _handle->path);
else
- err = mm_util_encode_bmp_to_memory(_src, _handle->dst_buffer, &_handle->dst_size);
+ err = mm_util_encode_image_to_buffer(_src, IMG_CODEC_BMP, _handle->dst_buffer, &_handle->dst_size);
}
break;
default:
break;
case IMAGE_UTIL_BMP:
- ret = mm_util_encode_bmp_to_file(image, file_path);
+ ret = mm_util_encode_image_to_file(image, file_path);
break;
default:
break;
case IMAGE_UTIL_BMP:
- ret = mm_util_encode_bmp_to_memory(image, (void **)buffer, buffer_size);
+ ret = mm_util_encode_image_to_buffer(image, IMG_CODEC_BMP, (void **)buffer, buffer_size);
break;
default:
return IMAGE_UTIL_ERROR_INVALID_PARAMETER;
#include <mm_util_jpeg.h>
#include <mm_util_png.h>
#include <mm_util_gif.h>
-#include <mm_util_bmp.h>
typedef struct {
mm_util_color_format_e image_format;