(VectorAnimationRenderer) Add GetFrameRate method
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / video-player-plugin.h
old mode 100644 (file)
new mode 100755 (executable)
index f1c309b..caf74fb
@@ -53,6 +53,32 @@ public:
   };
 
   /**
+   * @brief Enumeration for video codec type
+   */
+  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
+  };
+
+  /**
+   * @brief The values of this enum determine how the video should be display mode to the view
+   */
+  struct DisplayMode
+  {
+    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 */
+    };
+  };
+
+  /**
    * @brief Constructor.
    * @SINCE_1_1.38
    */
@@ -215,7 +241,31 @@ public:
    * @brief Checks whether the video texture is supported
    * @return True if supported, otherwise false.
    */
-  virtual bool IsVideoTextureSupported() const = 0;
+  virtual bool IsVideoTextureSupported() = 0;
+
+  /**
+   * @brief Sets codec type
+   * @param[in] type The CodecType
+   */
+  virtual void SetCodecType( VideoPlayerPlugin::CodecType type ) = 0;
+
+  /**
+   * @brief Gets codec type
+   * @return CodecType
+   */
+  virtual VideoPlayerPlugin::CodecType GetCodecType() const = 0;
+
+  /**
+   * @brief Sets the display mode for playback.
+   * @param[in] mode of playback
+   */
+  virtual void SetDisplayMode( VideoPlayerPlugin::DisplayMode::Type mode ) = 0;
+
+  /**
+   * @brief Returns the current display mode.
+   * @return The current display mode of playback
+   */
+  virtual VideoPlayerPlugin::DisplayMode::Type GetDisplayMode() const = 0;
 
 };