#define __DALI_TIZEN_PLATFORM_LOADER_BMP_H__
/*
- * Copyright (c) 2014 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.
*/
#include <cstdio>
+#include "image-loader-input.h"
namespace Dali
{
-
-namespace Integration
+namespace Devel
{
-class Bitmap;
+class PixelBuffer;
}
-struct ImageAttributes;
namespace TizenPlatform
{
/**
* Loads the bitmap from an BMP file. This function checks the header first
* and if it is not a BMP file, then it returns straight away.
- * @param[in] fp Pointer to the Image file
- * @param[in] bitmap The bitmap class where the decoded image will be stored
- * @param[in] attributes Describes the dimensions, pixel format and other details for loading the image data
+ * @param[in] input Information about the input image (including file pointer)
+ * @param[out] bitmap The bitmap class where the decoded image will be stored
* @return true if file decoded successfully, false otherwise
*/
-bool LoadBitmapFromBmp( FILE *fp, Integration::Bitmap& bitmap, ImageAttributes& attributes, const ResourceLoadingClient& client );
+bool LoadBitmapFromBmp( const ImageLoader::Input& input, Dali::Devel::PixelBuffer& bitmap );
/**
* Loads the header of a BMP file and fills in the width and height appropriately.
* @param[out] height Is set with the height of the image
* @return true if the file's header was read successully, false otherwise
*/
-bool LoadBmpHeader(FILE *fp, const ImageAttributes& attributes, unsigned int &width, unsigned int &height);
+bool LoadBmpHeader( const ImageLoader::Input& input, unsigned int& width, unsigned int& height );
} // namespace TizenPlatform