X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fimaging%2Fcommon%2Fgif-loading.cpp;h=4ca7dd40008744720e209aef310883e89677ac74;hb=9a3d89d83b3fb174bbe4550ed8e7dd786eb4404d;hp=e72e60031f0be6da845d6330f939221ed904c7ee;hpb=7df1a4d29fe308fb5635723c8dda40617888a058;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/imaging/common/gif-loading.cpp b/dali/internal/imaging/common/gif-loading.cpp index e72e600..4ca7dd4 100644 --- a/dali/internal/imaging/common/gif-loading.cpp +++ b/dali/internal/imaging/common/gif-loading.cpp @@ -1442,40 +1442,6 @@ GifLoading::~GifLoading() delete mImpl; } -bool GifLoading::LoadNextNFrames(uint32_t frameStartIndex, int count, std::vector& pixelData) -{ - int error; - bool ret = false; - - if(DALI_UNLIKELY(!mImpl->LoadGifInformation())) - { - return false; - } - - Mutex::ScopedLock lock(mImpl->mMutex); - const int bufferSize = mImpl->imageProperties.w * mImpl->imageProperties.h * sizeof(uint32_t); - - DALI_LOG_INFO(gGifLoadingLogFilter, Debug::Concise, "LoadNextNFrames( frameStartIndex:%d, count:%d )\n", frameStartIndex, count); - - for(int i = 0; i < count; ++i) - { - auto pixelBuffer = new unsigned char[bufferSize]; - - mImpl->loaderInfo.animated.currentFrame = 1 + ((frameStartIndex + i) % mImpl->loaderInfo.animated.frameCount); - - if(ReadNextFrame(mImpl->loaderInfo, mImpl->imageProperties, pixelBuffer, &error)) - { - if(pixelBuffer) - { - pixelData.push_back(Dali::PixelData::New(pixelBuffer, bufferSize, mImpl->imageProperties.w, mImpl->imageProperties.h, Dali::Pixel::RGBA8888, Dali::PixelData::DELETE_ARRAY)); - ret = true; - } - } - } - - return ret; -} - Dali::Devel::PixelBuffer GifLoading::LoadFrame(uint32_t frameIndex) { int error;