#include "mm_util_imgp.h"
#include "mm_util_imgp_internal.h"
+#define PATH_GSTCS_LIB LIBPREFIX "/libmmutil_imgp_gstcs.so"
+#define IMGP_FUNC_NAME "mm_imgp"
+
#define GEN_MASK(x) ((1<<(x))-1)
#define ROUND_UP_X(v, x) (((v) + GEN_MASK(x)) & ~GEN_MASK(x))
#define DIV_ROUND_UP_X(v, x) (((v) + GEN_MASK(x)) >> (x))
-typedef bool(*IMGPInfoFunc) (imgp_info_s *, const unsigned char *, unsigned char **, imgp_type_e);
+typedef bool(*IMGPInfoFunc) (imgp_info_s *, const unsigned char *, unsigned char **);
static int __check_valid_picture_size(unsigned int width, unsigned int height)
{
goto ERROR;
}
- ret = _mm_util_imgp_func(_imgp_info_s, _src->data, &output_buffer, IMGP_CSC);
+ ret = _mm_util_imgp_func(_imgp_info_s, _src->data, &output_buffer);
if (ret != MM_UTIL_ERROR_NONE) {
mm_util_error("image processing failed");
goto ERROR;
goto ERROR;
}
- ret = _mm_util_imgp_func(_imgp_info_s, _src->data, &output_buffer, IMGP_RSZ);
+ ret = _mm_util_imgp_func(_imgp_info_s, _src->data, &output_buffer);
mm_util_debug("_mm_util_imgp_func, ret: %d", ret);
if (ret != MM_UTIL_ERROR_NONE) {
mm_util_error("image processing failed");
goto ERROR;
}
- ret = _mm_util_imgp_func(_imgp_info_s, _src->data, &output_buffer, IMGP_ROT);
+ ret = _mm_util_imgp_func(_imgp_info_s, _src->data, &output_buffer);
if (ret != MM_UTIL_ERROR_NONE) {
mm_util_error("image processing failed");
goto ERROR;