X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fcontrols%2Fvideo-view%2Fvideo-view.h;h=d9b3267a159f710c0609429adec7bbf48a8b3f4c;hb=904ef2c2c15ac3723b2f56e41e7639381e40cfa5;hp=3e7e2eef547f60c09570aa5033aa59cd7fee6ec9;hpb=910430a92e8daccda0a9e4120645f7f024af1309;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/public-api/controls/video-view/video-view.h b/dali-toolkit/public-api/controls/video-view/video-view.h old mode 100644 new mode 100755 index 3e7e2ee..d9b3267 --- a/dali-toolkit/public-api/controls/video-view/video-view.h +++ b/dali-toolkit/public-api/controls/video-view/video-view.h @@ -77,13 +77,23 @@ public: PROPERTY_START_INDEX = Control::CONTROL_PROPERTY_END_INDEX + 1, ///< @SINCE_1_0.0 }; + /** + * @brief Enumeration for the instance of properties belonging to the VideoView class. + * @SINCE_1_1.38 + */ struct Property { + /** + * @brief Enumeration for the instance of properties belonging to the VideoView class. + * @SINCE_1_1.38 + */ enum { /** * @brief name "video", video file url as string type or Property::Map. * @SINCE_1_1.38 + * @REMARK_INTERNET + * @REMARK_STORAGE */ VIDEO = PROPERTY_START_INDEX, @@ -109,8 +119,67 @@ public: * @brief name "underlay", Video rendering by underlay, true or false * This shows video composited underneath the window by the system. This means it may ignore rotation of the video-view * @SINCE_1_2.62 + * @REMARK_RAWVIDEO + */ + UNDERLAY, + + /** + * @brief The play position (millisecond) of the video. + * @details Name "playPosition", type Property::INTEGER + * @SINCE_1_3_9 */ - UNDERLAY + PLAY_POSITION, + + /** + * @brief The display mode of the video. + * @SINCE_1_3_15 + */ + DISPLAY_MODE + }; + }; + + /** + * @brief The values of this enum determine how the video should be display mode to the view + * @SINCE_1_3_15 + */ + struct DisplayMode + { + /** + * @brief The values of this enum determine how the video should be display mode to the view. + * @SINCE_1_3_15 + */ + enum Type + { + /** + * @brief Letter box + * @SINCE_1_3_15 + */ + LETTER_BOX = 0, + /** + * @brief Origin size + * @SINCE_1_3_15 + */ + ORIGIN_SIZE, + /** + * @brief Full-screen + * @SINCE_1_3_15 + */ + FULL_SCREEN, + /** + * @brief Cropped full-screen + * @SINCE_1_3_15 + */ + CROPPED_FULL, + /** + * @brief Origin size (if surface size is larger than video size(width/height)) or Letter box (if video size(width/height) is larger than surface size) + * @SINCE_1_3_15 + */ + ORIGIN_OR_LETTER, + /** + * @brief Region of Interest + * @SINCE_1_3_15 + */ + DST_ROI }; }; @@ -121,7 +190,6 @@ public: * @SINCE_1_1.38 * @return A handle to a newly allocated Dali ImageView * - * @note VideoView will not display anything */ static VideoView New(); @@ -138,6 +206,31 @@ public: static VideoView New( const std::string& url ); /** + * @brief Creates an initialized VideoView. + * @SINCE_1_3_9 + * @param[in] swCodec Video rendering by H/W codec if false + * @return A handle to a newly allocated Dali ImageView + * + * @note If platform or target does not support sw codec, video-view shows an error message and video by default codec type + */ + static VideoView New( bool swCodec ); + + /** + * @brief Creates an initialized VideoView. + * If the string is empty, VideoView will not display anything. + * + * @SINCE_1_3_9 + * @REMARK_INTERNET + * @REMARK_STORAGE + * @param[in] url The url of the video resource to display + * @param[in] swCodec Video rendering by H/W codec if false + * @return A handle to a newly allocated Dali VideoView + * + * @note If platform or target does not support sw codec, video-view shows an error message and video by default codec type + */ + static VideoView New( const std::string& url, bool swCodec ); + + /** * @brief Creates an uninitialized VideoView. * @SINCE_1_1.38 */ @@ -151,7 +244,7 @@ public: */ ~VideoView(); - /* + /** * @brief Copy constructor. * * @SINCE_1_1.38