From 4208c73daf72de1ab8e4fed6ea8f17d8a9537b55 Mon Sep 17 00:00:00 2001 From: Minje Ahn Date: Tue, 21 Mar 2017 15:50:56 +0900 Subject: [PATCH] [ACR] Add API to provide rotation of video Change-Id: I995d82197bff2e89cf7c31ea13f7cebae958e3f3 Signed-off-by: Minje Ahn --- include/media_video.h | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/include/media_video.h b/include/media_video.h index 2f2d083..9b465e6 100755 --- a/include/media_video.h +++ b/include/media_video.h @@ -275,7 +275,7 @@ int video_meta_get_recorded_date(video_meta_h video, char **recorded_date); int video_meta_get_copyright(video_meta_h video, char **copyright); /** - * @brief Gets the track number of the given videoo metadata. + * @brief Gets the track number of the given video metadata. * @details If the value is an empty string, the method returns "Unknown". \n * Since 3.0, if the media content has no track info, the method returns empty string. * @@ -313,7 +313,7 @@ int video_meta_get_track_num(video_meta_h video, char **track_num); int video_meta_get_bit_rate(video_meta_h video, int *bit_rate); /** - * @brief Gets the track duration of the given videoo metadata. + * @brief Gets the track duration of the given video metadata. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif * * @param[in] video The video metadata handle @@ -329,7 +329,7 @@ int video_meta_get_bit_rate(video_meta_h video, int *bit_rate); int video_meta_get_duration(video_meta_h video, int *duration); /** - * @brief Gets the width of the given videoo metadata. + * @brief Gets the width of the given video metadata. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif * * @param[in] video The video metadata handle @@ -345,7 +345,7 @@ int video_meta_get_duration(video_meta_h video, int *duration); int video_meta_get_width(video_meta_h video, int *width); /** - * @brief Gets the height of the given videoo metadata. + * @brief Gets the height of the given video metadata. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif * * @param[in] video The video metadata handle @@ -361,6 +361,22 @@ int video_meta_get_width(video_meta_h video, int *width); int video_meta_get_height(video_meta_h video, int *height); /** + * @brief Gets the rotation of the given video metadata. + * @since_tizen 4.0 + * + * @param[in] video The video metadata handle + * @param[out] rotation The clockwise rotation angle of the video in degrees (can be returned from 0 to less than 360) + * + * @return @c 0 on success, + * otherwise a negative error value + * + * @retval #MEDIA_CONTENT_ERROR_NONE Successful + * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter + */ +int video_meta_get_rotation(video_meta_h video, int *rotation); + + +/** * @deprecated Deprecated since @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif. [Use media_info_get_played_count() instead] * @brief Gets the played count of the video. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif -- 2.7.4