X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fvideo-view%2Fvideo-view-impl.h;h=1f58785b3521ed7877969cac64607899dbe4ac31;hp=a662802d1f0fd2ebdcfc8c2023b6f08a985cb74e;hb=ee0a1565d8a52fafc20e2c5beab39db93dcd427b;hpb=cb3456e0afbf5fca76c0d8cd682e8977d5fc0800 diff --git a/dali-toolkit/internal/controls/video-view/video-view-impl.h b/dali-toolkit/internal/controls/video-view/video-view-impl.h index a662802..1f58785 100644 --- a/dali-toolkit/internal/controls/video-view/video-view-impl.h +++ b/dali-toolkit/internal/controls/video-view/video-view-impl.h @@ -22,6 +22,9 @@ #include #include #include +#include +#include +#include // INTERNAL INCLUDES #include @@ -195,8 +198,47 @@ public: */ static bool DoAction( BaseObject* object, const std::string& actionName, const Property::Map& attributes ); + /** + * Connects a callback function with the object's signals. + * @param[in] object The object providing the signal. + * @param[in] tracker Used to disconnect the signal. + * @param[in] signalName The signal to connect to. + * @param[in] functor A newly allocated FunctorDelegate. + * @return True if the signal was connected. + * @post If a signal was connected, ownership of functor was passed to CallbackBase. Otherwise the c + */ static bool DoConnectSignal( BaseObject* object, ConnectionTrackerInterface* tracker, const std::string& signalName, FunctorDelegate* functor ); + /** + * @brief Updates video display area for window rendering target + */ + void UpdateDisplayArea( Dali::PropertyNotification& source ); + + /** + * @brief Sets underlay flag and initializes new rendering target by flag. + */ + void SetUnderlay( bool set ); + + /** + * @brief Checks underlay flag. + */ + bool IsUnderlay(); + + /** + * @brief Sets sw codec type. + */ + void SetSWCodec( bool on ); + + /** + * @brief Gets play position. + */ + int GetPlayPosition(); + + /** + * @brief Sets play position. + */ + void SetPlayPosition( int pos ); + private: // From Control /** @@ -249,10 +291,15 @@ private: Dali::NativeImage mNativeImage; ///< Native image handle for video rendering by texture streaming Dali::Toolkit::VideoView::VideoViewSignalType mFinishedSignal; std::string mUrl; + Dali::DisplayArea mDisplayArea; + Dali::Renderer mRenderer; + Dali::PropertyNotification mPositionUpdateNotification; + Dali::PropertyNotification mSizeUpdateNotification; + Dali::PropertyNotification mScaleUpdateNotification; + int mCurrentVideoPlayPosition; - bool mIsNativeImageTarget; bool mIsPlay; - bool mIsPause; + bool mIsUnderlay; }; } // namespace Internal