X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fdevel-api%2Fadaptor-framework%2Fvideo-player-plugin.h;h=3679e63af5a222af727cb2a8df7f1aff64706818;hb=dd7e0c329b95a8142d266bf567cebbb0375176ec;hp=9cfc799ab228a47a63e465ecc7417566db247d56;hpb=2330036d3c9b9b78633284e60ec6f60c2d1464da;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/devel-api/adaptor-framework/video-player-plugin.h b/dali/devel-api/adaptor-framework/video-player-plugin.h old mode 100755 new mode 100644 index 9cfc799..3679e63 --- a/dali/devel-api/adaptor-framework/video-player-plugin.h +++ b/dali/devel-api/adaptor-framework/video-player-plugin.h @@ -2,7 +2,7 @@ #define DALI_VIDEO_PLAYER_PLUGIN_H /* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,15 +19,14 @@ */ // EXTERNAL INCLUDES -#include -#include #include +#include +#include namespace Dali { - class Any; -typedef Dali::Rect< int > DisplayArea; +typedef Dali::Rect DisplayArea; /** * @brief VideoPlayerPlugin is an abstract interface, used by dali-adaptor to access video player plugin. @@ -37,8 +36,7 @@ typedef Dali::Rect< int > DisplayArea; class VideoPlayerPlugin { public: - - typedef Signal< void () > VideoPlayerSignalType; + typedef Signal VideoPlayerSignalType; /** * @brief Video display rotation option @@ -47,10 +45,10 @@ public: */ enum DisplayRotation { - ROTATION_NONE, ///< Display isn't rotated. @SINCE_1_1.38 - ROTATION_90, ///< Display is rotated 90 degree. @SINCE_1_1.38 - ROTATION_180, ///< Display is rotated 180 degree. @SINCE_1_1.38 - ROTATION_270 ///< Display is rotated 270 degree. @SINCE_1_1.38 + ROTATION_NONE, ///< Display isn't rotated. @SINCE_1_1.38 + ROTATION_90, ///< Display is rotated 90 degree. @SINCE_1_1.38 + ROTATION_180, ///< Display is rotated 180 degree. @SINCE_1_1.38 + ROTATION_270 ///< Display is rotated 270 degree. @SINCE_1_1.38 }; /** @@ -58,9 +56,9 @@ public: */ enum class CodecType { - DEFAULT, ///< Codec which has higher priority as default. Platform selects it. Usually the H/W codec has higher priority than S/W codec if it exist. - HW, ///< H/W codec - SW ///< S/W codec + DEFAULT, ///< Codec which has higher priority as default. Platform selects it. Usually the H/W codec has higher priority than S/W codec if it exist. + HW, ///< H/W codec + SW ///< S/W codec }; /** @@ -70,12 +68,12 @@ public: { enum Type { - LETTER_BOX = 0, /**< Letter box */ - ORIGIN_SIZE, /**< Origin size */ - FULL_SCREEN, /**< Full-screen */ - CROPPED_FULL, /**< Cropped full-screen */ - ORIGIN_OR_LETTER, /**< 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) */ - DST_ROI /**< Region of Interest */ + LETTER_BOX = 0, /**< Letter box */ + ORIGIN_SIZE, /**< Origin size */ + FULL_SCREEN, /**< Full-screen */ + CROPPED_FULL, /**< Cropped full-screen */ + ORIGIN_OR_LETTER, /**< 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) */ + DST_ROI /**< Region of Interest */ }; }; @@ -83,13 +81,17 @@ public: * @brief Constructor. * @SINCE_1_1.38 */ - VideoPlayerPlugin(){} + VideoPlayerPlugin() + { + } /** * @brief Destructor. * @SINCE_1_1.38 */ - virtual ~VideoPlayerPlugin(){} + virtual ~VideoPlayerPlugin() + { + } /** * @brief Sets a URL of the video file to play. @@ -97,7 +99,7 @@ public: * @SINCE_1_1.38 * @param [in] url The url of video file */ - virtual void SetUrl( const std::string& url ) = 0; + virtual void SetUrl(const std::string& url) = 0; /** * @brief Returns the URL of the video file. @@ -145,7 +147,7 @@ public: * @SINCE_1_1.38 * @param[in] mute The new mute status, true is mute. */ - virtual void SetMute( bool mute ) = 0; + virtual void SetMute(bool mute) = 0; /** * @brief Returns the player mute status. @@ -160,7 +162,7 @@ public: * @param[in] left The left volume scalar * @param[in] right The right volume scalar */ - virtual void SetVolume( float left, float right ) = 0; + virtual void SetVolume(float left, float right) = 0; /** * @brief Gets current volume factor. @@ -168,14 +170,14 @@ public: * @param[out] left The current left volume scalar * @param[out] right The current right volume scalar */ - virtual void GetVolume( float& left, float& right ) = 0; + virtual void GetVolume(float& left, float& right) = 0; /** * @brief Sets video rendering target. * @SINCE_1_1.38 * @param[in] target The target for video rendering, window surface or native image source */ - virtual void SetRenderingTarget( Any target ) = 0; + virtual void SetRenderingTarget(Any target) = 0; /** * @brief Sets the position for playback. @@ -183,7 +185,7 @@ public: * * @param[in] millisecond The position for playback */ - virtual void SetPlayPosition( int millisecond ) = 0; + virtual void SetPlayPosition(int millisecond) = 0; /** * @brief Returns the current position in milliseconds. @@ -198,14 +200,14 @@ public: * @SINCE_1_2.46 * param[in] area The left-top position and size of the video display area */ - virtual void SetDisplayArea( DisplayArea area ) = 0; + virtual void SetDisplayArea(DisplayArea area) = 0; /** * @brief Sets video display rotation * @SINCE_1_1.38 * @param[in] rotation The rotation of display */ - virtual void SetDisplayRotation( Dali::VideoPlayerPlugin::DisplayRotation rotation ) = 0; + virtual void SetDisplayRotation(Dali::VideoPlayerPlugin::DisplayRotation rotation) = 0; /** * @brief Returns rotation of current video display @@ -228,7 +230,7 @@ public: * @SINCE_1_2.46 * @param[in] millisecond The position for forward playback */ - virtual void Forward( int millisecond ) = 0; + virtual void Forward(int millisecond) = 0; /** * @brief Seeks backward by the specified number of milliseconds. @@ -236,7 +238,7 @@ public: * @SINCE_1_2.46 * @param[in] millisecond The position for backward playback */ - virtual void Backward( int millisecond ) = 0; + virtual void Backward(int millisecond) = 0; /** * @brief Checks whether the video texture is supported @@ -248,7 +250,7 @@ public: * @brief Sets codec type * @param[in] type The CodecType */ - virtual void SetCodecType( VideoPlayerPlugin::CodecType type ) = 0; + virtual void SetCodecType(VideoPlayerPlugin::CodecType type) = 0; /** * @brief Gets codec type @@ -260,7 +262,7 @@ public: * @brief Sets the display mode for playback. * @param[in] mode of playback */ - virtual void SetDisplayMode( VideoPlayerPlugin::DisplayMode::Type mode ) = 0; + virtual void SetDisplayMode(VideoPlayerPlugin::DisplayMode::Type mode) = 0; /** * @brief Returns the current display mode. @@ -285,9 +287,8 @@ public: * This function is called, the synchronization is finished between UI(transparent hole) and video player. */ virtual void FinishSynchronization() = 0; - }; -} // namespace Dali; +} // namespace Dali #endif // DALI_VIDEO_PLAYER_PLUGIN_H