X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fimaging%2Fcommon%2Floader-gif.cpp;h=e29231876b583a9fa40a401475aed0eabb6882ae;hb=c1bb1606717a5a831a0e7bdaca8b4eb86dc5a89e;hp=a7b1bee6da1c78ffac97594c4c8cf0c20716a35a;hpb=345282f7530ad3b406c5e1050db453854f6aac98;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/imaging/common/loader-gif.cpp b/dali/internal/imaging/common/loader-gif.cpp old mode 100644 new mode 100755 index a7b1bee..e292318 --- a/dali/internal/imaging/common/loader-gif.cpp +++ b/dali/internal/imaging/common/loader-gif.cpp @@ -23,6 +23,10 @@ #include #include +#include + +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 @@ -89,7 +93,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(gifInfo->UserData); - return fread( data, sizeof( GifByteType ), length, fp); + return InternalFile::fread( data, sizeof( GifByteType ), length, fp); } /// Loads the GIF Header. @@ -271,7 +275,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); @@ -280,7 +284,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.