[Tizen] Fix pixel format bug in pixel manipulation
[platform/core/uifw/dali-adaptor.git] / dali / internal / imaging / common / loader-png.h
old mode 100644 (file)
new mode 100755 (executable)
index eb9c780..d2d52fb
@@ -1,8 +1,8 @@
-#ifndef __DALI_TIZEN_PLATFORM_LOADER_PNG_H__
-#define __DALI_TIZEN_PLATFORM_LOADER_PNG_H__
+#ifndef DALI_TIZEN_PLATFORM_LOADER_PNG_H
+#define DALI_TIZEN_PLATFORM_LOADER_PNG_H
 
 /*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 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.
@@ -22,7 +22,7 @@
 #include <dali/public-api/common/dali-vector.h>
 #include <dali/public-api/images/pixel.h>
 #include <dali/internal/legacy/tizen/image-encoder.h>
-#include <dali/internal/imaging/common/image-loader-input.h>
+#include <dali/devel-api/adaptor-framework/image-loader-input.h>
 
 namespace Dali
 {
@@ -49,7 +49,7 @@ const unsigned char MAGIC_BYTE_2 = 0x50;
  * @param[out] bitmap The bitmap class where the decoded image will be stored
  * @return  true if file decoded successfully, false otherwise
  */
-bool LoadBitmapFromPng( const ImageLoader::Input& input, Dali::Devel::PixelBuffer& bitmap );
+bool LoadBitmapFromPng( const Dali::ImageLoader::Input& input, Dali::Devel::PixelBuffer& bitmap );
 
 /**
  * Loads the header of a PNG file and fills in the width and height appropriately.
@@ -59,7 +59,7 @@ bool LoadBitmapFromPng( const ImageLoader::Input& input, Dali::Devel::PixelBuffe
  * @param[out]  height  Is set with the height of the image
  * @return true if the file's header was read successully, false otherwise
  */
-bool LoadPngHeader( const ImageLoader::Input& input, unsigned int& width, unsigned int& height );
+bool LoadPngHeader( const Dali::ImageLoader::Input& input, unsigned int& width, unsigned int& height );
 
 /**
  * Encode raw pixel data to PNG format.
@@ -75,4 +75,4 @@ bool EncodeToPng( const unsigned char* pixelBuffer, Vector<unsigned char>& encod
 
 } // namespace Dali
 
-#endif // __DALI_TIZEN_PLATFORM_LOADER_PNG_H__
+#endif // DALI_TIZEN_PLATFORM_LOADER_PNG_H