From: Seungho, Baek Date: Mon, 18 Feb 2019 05:46:33 +0000 (+0900) Subject: Revert "[Tizen] VectorAnimationRenderer: Updated dependancy from lotti-player to... X-Git-Tag: accepted/tizen/unified/20190219.154117~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3ec24c5b5ec2ab282198d9ed6c74b4e36b7d8a0e;p=platform%2Fcore%2Fuifw%2Fdali-extension.git Revert "[Tizen] VectorAnimationRenderer: Updated dependancy from lotti-player to rlottie library." This reverts commit 848c9f71949c3e3afe8e988480b2f5f5e9062c74. --- diff --git a/build/tizen/vector-animation-renderer/Makefile.am b/build/tizen/vector-animation-renderer/Makefile.am index 3260bb5..2716664 100644 --- a/build/tizen/vector-animation-renderer/Makefile.am +++ b/build/tizen/vector-animation-renderer/Makefile.am @@ -32,12 +32,12 @@ libdali_vector_animation_renderer_plugin_la_DEPENDENCIES = libdali_vector_animation_renderer_plugin_la_CXXFLAGS = \ -I../../../ \ $(DALI_CFLAGS) \ - $(RLOTTIE_CFLAGS) \ + $(LOTTIE_PLAYER_CFLAGS) \ -Werror -Wall libdali_vector_animation_renderer_plugin_la_LIBADD = \ $(DALI_LIBS) \ - $(RLOTTIE_LIBS) + $(LOTTIE_PLAYER_LIBS) libdali_vector_animation_renderer_plugin_la_LDFLAGS = \ -rdynamic diff --git a/build/tizen/vector-animation-renderer/configure.ac b/build/tizen/vector-animation-renderer/configure.ac index 33ab430..d3c3085 100644 --- a/build/tizen/vector-animation-renderer/configure.ac +++ b/build/tizen/vector-animation-renderer/configure.ac @@ -15,7 +15,7 @@ DALI_EXTENSION_VERSION=dali_version AC_SUBST(DALI_EXTENSION_VERSION) PKG_CHECK_MODULES([DALI], [dali-core dali-adaptor dali-toolkit]) -PKG_CHECK_MODULES(RLOTTIE, rlottie) +PKG_CHECK_MODULES(LOTTIE_PLAYER, lottie-player) devincludepath=${includedir} AC_SUBST(devincludepath) diff --git a/dali-extension/vector-animation-renderer/tizen-vector-animation-renderer.cpp b/dali-extension/vector-animation-renderer/tizen-vector-animation-renderer.cpp index 01b8fd2..99158e3 100755 --- a/dali-extension/vector-animation-renderer/tizen-vector-animation-renderer.cpp +++ b/dali-extension/vector-animation-renderer/tizen-vector-animation-renderer.cpp @@ -147,7 +147,7 @@ void TizenVectorAnimationRenderer::SetSize( uint32_t width, uint32_t height ) bool TizenVectorAnimationRenderer::StartRender() { - mVectorRenderer = rlottie::Animation::loadFromFile( mUrl ); + mVectorRenderer = lottie::Animation::loadFromFile( mUrl ); if( !mVectorRenderer ) { DALI_LOG_ERROR( "Failed to load a Lottie file [%s]\n", mUrl.c_str() ); @@ -211,7 +211,7 @@ void TizenVectorAnimationRenderer::Render( uint32_t frameNumber ) unsigned char* buffer = info.planes[0].ptr; // Create Surface object - rlottie::Surface surface( reinterpret_cast< uint32_t* >( buffer ), mWidth, mHeight, static_cast< size_t >( info.planes[0].stride ) ); + lottie::Surface surface( reinterpret_cast< uint32_t* >( buffer ), mWidth, mHeight, static_cast< size_t >( info.planes[0].stride ) ); // Push the buffer mBuffers.push_back( SurfacePair( tbmSurface, surface ) ); diff --git a/dali-extension/vector-animation-renderer/tizen-vector-animation-renderer.h b/dali-extension/vector-animation-renderer/tizen-vector-animation-renderer.h index c332aec..260a572 100755 --- a/dali-extension/vector-animation-renderer/tizen-vector-animation-renderer.h +++ b/dali-extension/vector-animation-renderer/tizen-vector-animation-renderer.h @@ -25,7 +25,7 @@ #include #include #include -#include +#include #include #include @@ -96,14 +96,14 @@ private: private: - using SurfacePair = std::pair< tbm_surface_h, rlottie::Surface >; + using SurfacePair = std::pair< tbm_surface_h, lottie::Surface >; std::string mUrl; ///< The content file path std::vector< SurfacePair > mBuffers; ///< EGL Image vector Dali::Mutex mMutex; ///< Mutex Dali::Renderer mRenderer; ///< Renderer NativeImageSourceQueuePtr mTargetSurface; ///< The target surface - std::unique_ptr< rlottie::Animation > mVectorRenderer; ///< The vector animation renderer + std::unique_ptr< lottie::Animation > mVectorRenderer; ///< The vector animation renderer tbm_surface_queue_h mTbmQueue; ///< Tbm surface queue handle uint32_t mTotalFrameNumber; ///< The total frame number uint32_t mWidth; ///< The width of the surface diff --git a/packaging/dali-extension.spec b/packaging/dali-extension.spec index 9c791ed..3b21e47 100755 --- a/packaging/dali-extension.spec +++ b/packaging/dali-extension.spec @@ -99,7 +99,7 @@ Image Loader plugin to image loading file for Dali %package vector-animation-renderer-plugin Summary: Plugin to render a vector animation Group: System/Libraries -BuildRequires: pkgconfig(rlottie) +BuildRequires: pkgconfig(lottie-player) %description vector-animation-renderer-plugin Plugin to render a vector animation