#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))
-#define GST "gstcs"
typedef gboolean(*IMGPInfoFunc) (imgp_info_s *, const unsigned char *, unsigned char **, imgp_type_e);
goto ERROR;
}
- if (g_strrstr(g_module_name(_module), GST)) {
- if (__mm_gst_can_resize_format(_imgp_info_s->src_format) == FALSE) {
- mm_util_error("#RESIZE ERROR# IMAGE_NOT_SUPPORT_FORMAT");
- ret = MM_UTIL_ERROR_NOT_SUPPORTED_FORMAT;
- goto ERROR;
- }
+ if (__mm_gst_can_resize_format(_imgp_info_s->src_format) == FALSE) {
+ mm_util_error("#RESIZE ERROR# IMAGE_NOT_SUPPORT_FORMAT");
+ ret = MM_UTIL_ERROR_NOT_SUPPORTED_FORMAT;
+ goto ERROR;
}
ret = _mm_util_imgp_func(_imgp_info_s, _src->data, &output_buffer, IMGP_RSZ);
goto ERROR;
}
- if (g_strrstr(g_module_name(_module), GST)) {
- if (__mm_gst_can_rotate_format(_imgp_info_s->src_format) == FALSE) {
- mm_util_error("#gstreamer ROTATE ERROR# IMAGE_NOT_SUPPORT_FORMAT");
- ret = MM_UTIL_ERROR_NOT_SUPPORTED_FORMAT;
- goto ERROR;
- }
+ if (__mm_gst_can_rotate_format(_imgp_info_s->src_format) == FALSE) {
+ mm_util_error("#ROTATE ERROR# IMAGE_NOT_SUPPORT_FORMAT");
+ ret = MM_UTIL_ERROR_NOT_SUPPORTED_FORMAT;
+ goto ERROR;
}
ret = _mm_util_imgp_func(_imgp_info_s, _src->data, &output_buffer, IMGP_ROT);