return err;
}
-static void __get_rotation_and_cdis(const char *path, mm_util_magick_rotate_type *rot_type, int *cdis_value)
+static void __get_rotation_and_cdis(const char *path, mm_util_rotate_type_e *rot_type, int *cdis_value)
{
int err = MS_MEDIA_ERR_NONE;
MMHandleType tag = (MMHandleType) NULL;
char *p = NULL;
int size = 0;
int _cdis_value = 0;
- mm_util_magick_rotate_type _rot_type = MM_UTIL_ROTATE_0;
+ mm_util_rotate_type_e _rot_type = MM_UTIL_ROTATE_0;
/* Get Content Tag attribute for orientation */
err = mm_file_create_tag_attrs(&tag, path);
}
-static int __get_video_info(const char *path, int *video_track_num, unsigned int *width, unsigned int *height, void **frame, size_t *frame_size, mm_util_magick_rotate_type *rot_type)
+static int __get_video_info(const char *path, int *video_track_num, unsigned int *width, unsigned int *height, void **frame, size_t *frame_size, mm_util_rotate_type_e *rot_type)
{
int err = MS_MEDIA_ERR_NONE;
int _cdis_value = 0;
- mm_util_magick_rotate_type _rot_type = MM_UTIL_ROTATE_0;
+ mm_util_rotate_type_e _rot_type = MM_UTIL_ROTATE_0;
__get_rotation_and_cdis(path, &_rot_type, &_cdis_value);
err = __get_video_meta(_cdis_value, path, video_track_num, width, height, frame, frame_size);
thumb_dbg("proper thumb w: %d h: %d", *thumb_width, *thumb_height);
}
-static int __get_video_thumb_to_file(unsigned int width, unsigned int height, void *frame, size_t frame_size, mm_util_magick_rotate_type rot_type, const char *thumb_path, unsigned int thumb_width, unsigned int thumb_height)
+static int __get_video_thumb_to_file(unsigned int width, unsigned int height, void *frame, size_t frame_size, mm_util_rotate_type_e rot_type, const char *thumb_path, unsigned int thumb_width, unsigned int thumb_height)
{
int err = MS_MEDIA_ERR_NONE;
mm_util_image_h img = NULL;
return MS_MEDIA_ERR_INTERNAL;
}
-static int __get_video_thumb_to_buffer(unsigned int width, unsigned int height, void *frame, size_t frame_size, mm_util_magick_rotate_type rot_type, unsigned int thumb_width, unsigned int thumb_height, mm_util_image_h *dst_img)
+static int __get_video_thumb_to_buffer(unsigned int width, unsigned int height, void *frame, size_t frame_size, mm_util_rotate_type_e rot_type, unsigned int thumb_width, unsigned int thumb_height, mm_util_image_h *dst_img)
{
int err = MS_MEDIA_ERR_NONE;
mm_util_image_h img = NULL;
unsigned int video_height = 0;
void *frame = NULL;
size_t frame_size = 0;
- mm_util_magick_rotate_type rot_type = MM_UTIL_ROTATE_NUM;
+ mm_util_rotate_type_e rot_type = MM_UTIL_ROTATE_NUM;
err = __check_parameter_validity_for_file(path, width, height, thumb_path);
thumb_retvm_if(err != MS_MEDIA_ERR_NONE, err, "Invalid parameter");
void *frame = NULL;
size_t frame_size = 0;
mm_util_image_h img = NULL;
- mm_util_magick_rotate_type rot_type = MM_UTIL_ROTATE_NUM;
+ mm_util_rotate_type_e rot_type = MM_UTIL_ROTATE_NUM;
mm_util_image_h convert_img = NULL;
err = __check_parameter_validity_for_buffer(path, width, height, thumb_buffer, thumb_size, thumb_width, thumb_height);