Revert "[Tizen] Add codes for Dali Windows Backend"
[platform/core/uifw/dali-adaptor.git] / dali / internal / imaging / common / loader-gif.cpp
index 4408404..cf9b010 100755 (executable)
 #include <dali/devel-api/adaptor-framework/pixel-buffer.h>
 #include <memory>
 
-#include <dali/internal/system/common/file-closer.h>
-
-using namespace Dali::Internal::Platform;
-
 // We need to check if giflib has the new open and close API (including error parameter).
 #ifdef GIFLIB_MAJOR
 #define LIBGIF_VERSION_5_1_OR_ABOVE
@@ -93,7 +89,7 @@ const unsigned int INTERLACE_PAIR_TABLE_SIZE( sizeof( INTERLACE_PAIR_TABLE ) / s
 int ReadDataFromGif(GifFileType *gifInfo, GifByteType *data, int length)
 {
   FILE *fp = reinterpret_cast<FILE*>(gifInfo->UserData);
-  return InternalFile::fread( data, sizeof( GifByteType ), length, fp);
+  return fread( data, sizeof( GifByteType ), length, fp);
 }
 
 /// Loads the GIF Header.
@@ -275,7 +271,7 @@ bool HandleExtensionRecordType( GifFileType* gifInfo )
 
 } // unnamed namespace
 
-bool LoadGifHeader( const ImageLoader::Input& input, unsigned int& width, unsigned int& height )
+bool LoadGifHeader( const Dali::ImageLoader::Input& input, unsigned int& width, unsigned int& height )
 {
   GifFileType* gifInfo = NULL;
   AutoCleanupGif autoCleanupGif(gifInfo);
@@ -284,7 +280,7 @@ bool LoadGifHeader( const ImageLoader::Input& input, unsigned int& width, unsign
   return LoadGifHeader(fp, width, height, &gifInfo);
 }
 
-bool LoadBitmapFromGif( const ImageLoader::Input& input, Dali::Devel::PixelBuffer& bitmap )
+bool LoadBitmapFromGif( const Dali::ImageLoader::Input& input, Dali::Devel::PixelBuffer& bitmap )
 {
   FILE* const fp = input.file;
   // Load the GIF Header file.