MM_UTIL_ROTATE_NUM /**< Number of rotation types */
} mm_util_img_rotate_type_e;
-/* Enumerations */
-typedef enum {
- IMGP_CSC = 0,
- IMGP_RSZ,
- IMGP_ROT,
- IMGP_MAX,
-} imgp_type_e;
-
typedef enum {
/* YUV planar format */
MM_UTIL_COLOR_YUV420, /**< YUV420 format - planer YV12*/
* else if the resule is 0, then you can use output_image pointer(char** value)
*/
-int mm_imgp(imgp_info_s* pImgp_info, unsigned char *src, unsigned char **dst, imgp_type_e _imgp_type_e);
+int mm_imgp(imgp_info_s* pImgp_info, unsigned char *src, unsigned char **dst);
#ifdef __cplusplus
}
return FALSE;
}
-int mm_imgp(imgp_info_s* pImgp_info, unsigned char *src, unsigned char **dst, imgp_type_e _imgp_type)
+int mm_imgp(imgp_info_s* pImgp_info, unsigned char *src, unsigned char **dst)
{
gstcs_retvm_if(pImgp_info == NULL, GSTCS_ERROR_INVALID_PARAMETER, "Invalid info");
gstcs_retvm_if(src == NULL, GSTCS_ERROR_INVALID_PARAMETER, "Invalid src");
gstcs_retvm_if(dst == NULL, GSTCS_ERROR_INVALID_PARAMETER, "Invalid dst");
- gstcs_retvm_if((_imgp_type < 0 || _imgp_type > IMGP_MAX), GSTCS_ERROR_INVALID_PARAMETER, "Invalid _imgp_type[%d]", _imgp_type);
gstcs_retvm_if((_mm_imgp_check_format(pImgp_info->src_format) == FALSE), GSTCS_ERROR_NOT_SUPPORTED_FORMAT, "not supported src_format [%d]", pImgp_info->src_format);
gstcs_retvm_if((_mm_imgp_check_format(pImgp_info->dst_format) == FALSE), GSTCS_ERROR_NOT_SUPPORTED_FORMAT, "not supported dst_format [%d]", pImgp_info->dst_format);