/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* @param[out] fileHeader This will be populated with the header data
* @return True if the file is valid, false otherwise
*/
-bool LoadAstcHeader( FILE * const filePointer, unsigned int &width, unsigned int &height, AstcFileHeader &fileHeader )
+bool LoadAstcHeader( FILE * const filePointer, unsigned int& width, unsigned int& height, AstcFileHeader& fileHeader )
{
// Pull the bytes of the file header in as a block:
- unsigned int readLength = sizeof( AstcFileHeader );
- if( fread( (void*)&fileHeader, 1, readLength, filePointer ) != readLength )
+ const unsigned int readLength = sizeof( AstcFileHeader );
+ if( fread( &fileHeader, 1, readLength, filePointer ) != readLength )
{
return false;
}
}
// File loading API entry-point:
-bool LoadBitmapFromAstc( const ResourceLoadingClient& client, const ImageLoader::Input& input, Integration::Bitmap& bitmap )
+bool LoadBitmapFromAstc( const ImageLoader::Input& input, Integration::Bitmap& bitmap )
{
FILE* const filePointer = input.file;
if( !filePointer )