From: taeyoon0.lee Date: Thu, 21 Sep 2017 07:55:50 +0000 (+0900) Subject: [4.0] Added an devel-API to check whether video texture is supported X-Git-Tag: submit/tizen_4.0/20171013.122021^0 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git;a=commitdiff_plain;h=b6a3a40939f19bc3197e7dbac990e83decf272eb [4.0] Added an devel-API to check whether video texture is supported - Checks whether platform API provides decoded video frame images Change-Id: Ia287b51060217490a159d89b62255cb0e7b75c65 --- diff --git a/adaptors/common/video-player-impl.cpp b/adaptors/common/video-player-impl.cpp index 50e3e6b..0807e2a 100644 --- a/adaptors/common/video-player-impl.cpp +++ b/adaptors/common/video-player-impl.cpp @@ -289,6 +289,16 @@ void VideoPlayer::Backward( int millisecond ) } } +bool VideoPlayer::IsVideoTextureSupported() +{ + if( mPlugin != NULL ) + { + return mPlugin->IsVideoTextureSupported(); + } + + return false; +} + } // namespace Adaptor; } // namespace Internal; } // namespace Dali; diff --git a/adaptors/common/video-player-impl.h b/adaptors/common/video-player-impl.h index e37b5f6..498a761 100644 --- a/adaptors/common/video-player-impl.h +++ b/adaptors/common/video-player-impl.h @@ -159,6 +159,11 @@ public: */ void Backward( int millisecond ); + /** + * @brief Dali::VideoPlayer::IsVideoTextureSupported() + */ + bool IsVideoTextureSupported(); + private: /** diff --git a/adaptors/devel-api/adaptor-framework/video-player-plugin.h b/adaptors/devel-api/adaptor-framework/video-player-plugin.h index 4bbcc04..10a6d5d 100644 --- a/adaptors/devel-api/adaptor-framework/video-player-plugin.h +++ b/adaptors/devel-api/adaptor-framework/video-player-plugin.h @@ -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() = 0; + }; } // namespace Dali; diff --git a/adaptors/devel-api/adaptor-framework/video-player.cpp b/adaptors/devel-api/adaptor-framework/video-player.cpp index fb4b2a2..048a9f0 100644 --- a/adaptors/devel-api/adaptor-framework/video-player.cpp +++ b/adaptors/devel-api/adaptor-framework/video-player.cpp @@ -171,5 +171,10 @@ void VideoPlayer::Backward( int millisecond ) GetImplementation( *this ).Backward( millisecond ); } +bool VideoPlayer::IsVideoTextureSupported() +{ + return GetImplementation( *this ).IsVideoTextureSupported(); +} + } // namespace Dali; diff --git a/adaptors/devel-api/adaptor-framework/video-player.h b/adaptors/devel-api/adaptor-framework/video-player.h index 8c69719..c630c72 100644 --- a/adaptors/devel-api/adaptor-framework/video-player.h +++ b/adaptors/devel-api/adaptor-framework/video-player.h @@ -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(); + private: // Not intended for application developers /**