Some image-util native APIs are removed. so remove related code here as well.
Change-Id: I17e65256c26cad926f094ce699add9d9b23970f0
extern "C" {
#endif
-#define TEMP_DATA_SIZE SIZE_MAX //To be removed
-
bool mm_image_is_valid_image(mm_util_image_h image);
void mm_image_debug_image(mm_util_image_h image, const char *message);
mm_util_color_format_e color, const unsigned char *data, size_t size,
mm_util_image_h *image)
{
- /* Just TEMP_DATA_SIZE has been used internally.
- * It will be removed after removing deprecated CAPIs. */
- if (size == TEMP_DATA_SIZE)
- return __create_new_image(width, height, color, data, size, false, false, image);
-
return __create_new_image(width, height, color, data, size, true, true, image);
}
mm_image_info_s *_image = (mm_image_info_s *)image;
mm_util_retvm_if(!IS_VALID_IMAGE(image), MM_UTIL_ERROR_INVALID_PARAMETER, "Invalid image");
- /* Just TEMP_DATA_SIZE has been used internally.
- * It will be removed after removing deprecated CAPIs. */
- mm_util_retvm_if(_image->size == TEMP_DATA_SIZE, MM_UTIL_ERROR_INVALID_PARAMETER, "Invalid size");
if (width)
*width = _image->width;
#include "mm_util_type.h"
-int mm_util_get_image_size(mm_util_color_format_e format, unsigned int width, unsigned int height, size_t *imgsize);
int mm_util_convert_colorspace(mm_util_image_h src, mm_util_color_format_e color, mm_util_image_h *dst);
int mm_util_resize_image(mm_util_image_h src, unsigned int width, unsigned int height, mm_util_image_h *dst);
int mm_util_rotate_image(mm_util_image_h src, mm_util_rotate_type_e angle, mm_util_image_h *dst);
return ret;
}
-
-int mm_util_get_image_size(mm_util_color_format_e format, unsigned int width, unsigned int height, size_t *imgsize)
-{
- return __mm_util_get_image_size(format, width, height, false, imgsize);
-}
basic_info->ysize = (uint32_t)mm_image->height;
*format = jxl_formats[mm_image->color];
*pixels = mm_image->data;
- *pixels_size = (mm_image->size == TEMP_DATA_SIZE) ? (size_t)(mm_image->width * mm_image->height * format->num_channels) : mm_image->size;
+ *pixels_size = mm_image->size;
return MM_UTIL_ERROR_NONE;
}
Name: libmm-utility
Summary: Multimedia Framework Utility Library
-Version: 0.4.18
+Version: 0.4.19
Release: 0
Group: System/Libraries
License: Apache-2.0