From 43893f66684004fcf65121b542b25d398d5f1837 Mon Sep 17 00:00:00 2001 From: Seoyeon Kim Date: Mon, 16 Oct 2017 11:29:13 +0900 Subject: [PATCH] [4.0] Added an devel-API to check whether video texture is supported This reverts commit 9b639a223f9e0c389f646bbb6f09608476495c3d. Change-Id: I3869a13e0f7252d8add6a26a5e579cb84bcec66d --- adaptors/common/video-player-impl.cpp | 10 ++++++++++ adaptors/common/video-player-impl.h | 5 +++++ adaptors/devel-api/adaptor-framework/video-player-plugin.h | 6 ++++++ adaptors/devel-api/adaptor-framework/video-player.cpp | 5 +++++ adaptors/devel-api/adaptor-framework/video-player.h | 6 ++++++ 5 files changed, 32 insertions(+) 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 /** -- 2.7.4