Revert "[Tizen] VectorAnimationRenderer: Updated dependancy from lotti-player to...
authorJoogab Yun <joogab.yun@samsung.com>
Tue, 12 Feb 2019 07:11:45 +0000 (16:11 +0900)
committerJoogab Yun <joogab.yun@samsung.com>
Tue, 12 Feb 2019 07:11:45 +0000 (16:11 +0900)
This reverts commit 30b50a748c523af23a28b27347d27079e9dd286b.

build/tizen/vector-animation-renderer/Makefile.am
build/tizen/vector-animation-renderer/configure.ac
dali-extension/vector-animation-renderer/tizen-vector-animation-renderer.cpp
dali-extension/vector-animation-renderer/tizen-vector-animation-renderer.h
packaging/dali-extension.spec

index 3260bb5..2716664 100644 (file)
@@ -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
index 33ab430..d3c3085 100644 (file)
@@ -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)
index ec7ece3..86485e4 100755 (executable)
@@ -119,7 +119,7 @@ void TizenVectorAnimationRenderer::SetSize( uint32_t width, uint32_t height )
 
 bool TizenVectorAnimationRenderer::StartRender()
 {
-  mRenderer = rlottie::Animation::loadFromFile( mUrl );
+  mRenderer = lottie::Animation::loadFromFile( mUrl );
   if( !mRenderer )
   {
     DALI_LOG_ERROR( "Failed to load a Lottie file [%s]\n", mUrl.c_str() );
@@ -183,7 +183,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 ) );
index a196581..2a98c19 100755 (executable)
@@ -25,7 +25,7 @@
 #include <dali/devel-api/adaptor-framework/native-image-source-queue.h>
 #include <dali/devel-api/adaptor-framework/vector-animation-renderer-plugin.h>
 #include <memory>
-#include <rlottie.h>
+#include <lottieanimation.h>
 #include <tbm_surface.h>
 #include <tbm_surface_queue.h>
 
@@ -91,13 +91,13 @@ 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
   NativeImageSourceQueuePtr            mTargetSurface;     ///< The target surface
-  std::unique_ptr< rlottie::Animation > mRenderer;          ///< The vector animation renderer
+  std::unique_ptr< lottie::Animation > mRenderer;          ///< 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
index 7aa5cec..f0870c4 100755 (executable)
@@ -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