#include <dali/internal/system/common/file-reader.h>
using namespace Dali::Integration;
+using namespace Dali::Internal::Platform;
namespace Dali
{
Integration::Log::Filter* gLogFilter = Debug::Filter::New( Debug::Concise, false, "LOG_IMAGE_LOADING" );
#endif
+static unsigned int gMaxTextureSize = 4096;
/**
* Enum for file formats, has to be in sync with BITMAP_LOADER_LOOKUP_TABLE
const std::string& filename )
{
unsigned char magic[MAGIC_LENGTH];
- size_t read = fread(magic, sizeof(unsigned char), MAGIC_LENGTH, fp);
+ size_t read = InternalFile::fread(magic, sizeof(unsigned char), MAGIC_LENGTH, fp);
// Reset to the start of the file.
- if( fseek(fp, 0, SEEK_SET) )
+ if( InternalFile::fseek(fp, 0, SEEK_SET) )
{
DALI_LOG_ERROR("Error seeking to start of file\n");
}
}
// Reset to the start of the file.
- if( fseek(fp, 0, SEEK_SET) )
+ if( InternalFile::fseek(fp, 0, SEEK_SET) )
{
DALI_LOG_ERROR("Error seeking to start of file\n");
}
return ImageDimensions( width, height );
}
+void SetMaxTextureSize( unsigned int size )
+{
+ gMaxTextureSize = size;
+}
+
+unsigned int GetMaxTextureSize()
+{
+ return gMaxTextureSize;
+}
+
} // ImageLoader
} // TizenPlatform
} // Dali