[Tizen] VectorAnimationRenderer: Updated dependancy from lotti-player to rlottie... accepted/tizen/unified/20190202.022441 accepted/tizen/unified/20190208.061713 submit/tizen/20190201.062521 submit/tizen/20190208.043508 submit/tizen/20190211.061543
authorJiyun Yang <ji.yang@samsung.com>
Wed, 30 Jan 2019 11:43:42 +0000 (20:43 +0900)
committerJiyun Yang <ji.yang@samsung.com>
Wed, 30 Jan 2019 11:43:51 +0000 (20:43 +0900)
This reverts commit 72f2c6762c1cc1e1cbd2e32cd2d83904d5b2ca40.

Change-Id: I196194cc36d8c8a8bc09f57a90c7360956d8f3a9

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 2716664..3260bb5 100644 (file)
@@ -32,12 +32,12 @@ libdali_vector_animation_renderer_plugin_la_DEPENDENCIES =
 libdali_vector_animation_renderer_plugin_la_CXXFLAGS = \
                       -I../../../ \
                       $(DALI_CFLAGS) \
-                      $(LOTTIE_PLAYER_CFLAGS) \
+                      $(RLOTTIE_CFLAGS) \
                       -Werror -Wall
 
 libdali_vector_animation_renderer_plugin_la_LIBADD = \
                       $(DALI_LIBS) \
-                      $(LOTTIE_PLAYER_LIBS)
+                      $(RLOTTIE_LIBS)
 
 libdali_vector_animation_renderer_plugin_la_LDFLAGS = \
                       -rdynamic
index d3c3085..33ab430 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(LOTTIE_PLAYER, lottie-player)
+PKG_CHECK_MODULES(RLOTTIE, rlottie)
 
 devincludepath=${includedir}
 AC_SUBST(devincludepath)
index 86485e4..ec7ece3 100755 (executable)
@@ -119,7 +119,7 @@ void TizenVectorAnimationRenderer::SetSize( uint32_t width, uint32_t height )
 
 bool TizenVectorAnimationRenderer::StartRender()
 {
-  mRenderer = lottie::Animation::loadFromFile( mUrl );
+  mRenderer = rlottie::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
-      lottie::Surface surface( reinterpret_cast< uint32_t* >( buffer ), mWidth, mHeight, static_cast< size_t >( info.planes[0].stride ) );
+      rlottie::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 2a98c19..a196581 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 <lottieanimation.h>
+#include <rlottie.h>
 #include <tbm_surface.h>
 #include <tbm_surface_queue.h>
 
@@ -91,13 +91,13 @@ private:
 
 private:
 
-  using SurfacePair = std::pair< tbm_surface_h, lottie::Surface >;
+  using SurfacePair = std::pair< tbm_surface_h, rlottie::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< lottie::Animation > mRenderer;          ///< The vector animation renderer
+  std::unique_ptr< rlottie::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 f0870c4..7aa5cec 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(lottie-player)
+BuildRequires:  pkgconfig(rlottie)
 
 %description vector-animation-renderer-plugin
 Plugin to render a vector animation