Added an devel-API to check whether video texture is supported 82/151582/10
authortaeyoon0.lee <taeyoon0.lee@samsung.com>
Thu, 21 Sep 2017 07:55:50 +0000 (16:55 +0900)
committertaeyoon0.lee <taeyoon0.lee@samsung.com>
Mon, 16 Oct 2017 16:20:58 +0000 (01:20 +0900)
 - Checks whether platform API provides decoded video frame images

Change-Id: Ia287b51060217490a159d89b62255cb0e7b75c65

adaptors/common/video-player-impl.cpp
adaptors/common/video-player-impl.h
adaptors/devel-api/adaptor-framework/video-player-plugin.h
adaptors/devel-api/adaptor-framework/video-player.cpp
adaptors/devel-api/adaptor-framework/video-player.h

index 50e3e6b..7a66095 100644 (file)
@@ -289,6 +289,16 @@ void VideoPlayer::Backward( int millisecond )
   }
 }
 
+bool VideoPlayer::IsVideoTextureSupported() const
+{
+  if( mPlugin != NULL )
+  {
+    return mPlugin->IsVideoTextureSupported();
+  }
+
+  return false;
+}
+
 } // namespace Adaptor;
 } // namespace Internal;
 } // namespace Dali;
index e37b5f6..eaaa2fb 100644 (file)
@@ -159,6 +159,11 @@ public:
    */
   void Backward( int millisecond );
 
+  /**
+   * @brief Dali::VideoPlayer::IsVideoTextureSupported()
+   */
+  bool IsVideoTextureSupported() const;
+
 private:
 
   /**
index 4bbcc04..f1c309b 100644 (file)
@@ -211,6 +211,12 @@ public:
    */
   virtual void Backward( int millisecond ) = 0;
 
+  /**
+   * @brief Checks whether the video texture is supported
+   * @return True if supported, otherwise false.
+   */
+  virtual bool IsVideoTextureSupported() const = 0;
+
 };
 
 } // namespace Dali;
index fb4b2a2..281ae39 100644 (file)
@@ -171,5 +171,10 @@ void VideoPlayer::Backward( int millisecond )
   GetImplementation( *this ).Backward( millisecond );
 }
 
+bool VideoPlayer::IsVideoTextureSupported() const
+{
+  return GetImplementation( *this ).IsVideoTextureSupported();
+}
+
 } // namespace Dali;
 
index 8c69719..f548ab1 100644 (file)
@@ -241,6 +241,12 @@ public:
    */
   void Backward( int millisecond );
 
+  /**
+   * @brief Checks whether the video texture is supported
+   * @return True if supported, otherwise false.
+   */
+  bool IsVideoTextureSupported() const;
+
 private: // Not intended for application developers
 
   /**