summaryrefslogtreecommitdiff
path: root/source/modules/asura-core/Image
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-08-07 21:08:47 +0800
committerchai <chaifix@163.com>2019-08-07 21:08:47 +0800
commit0c391fdbce5a079cf03e483eb6174dd47806163d (patch)
treeb06cd7a9d0ae0d9bb9e82f3dcb786dfce11f8628 /source/modules/asura-core/Image
parent9686368e58e25cbd6dc37d686bdd2be3f80486d6 (diff)
*misc
Diffstat (limited to 'source/modules/asura-core/Image')
-rw-r--r--source/modules/asura-core/Image/ImageData.cpp2
-rw-r--r--source/modules/asura-core/Image/ImageData.h14
-rw-r--r--source/modules/asura-core/Image/ImageDecodeTask.h6
-rw-r--r--source/modules/asura-core/Image/ImageDecoder.h6
-rw-r--r--source/modules/asura-core/Image/PngDecoder.cpp4
-rw-r--r--source/modules/asura-core/Image/PngDecoder.h4
-rw-r--r--source/modules/asura-core/Image/StbDecoder.cpp6
-rw-r--r--source/modules/asura-core/Image/StbDecoder.h4
-rw-r--r--source/modules/asura-core/Image/binding/_image_data.cpp6
9 files changed, 26 insertions, 26 deletions
diff --git a/source/modules/asura-core/Image/ImageData.cpp b/source/modules/asura-core/Image/ImageData.cpp
index c75166f..bbfd177 100644
--- a/source/modules/asura-core/Image/ImageData.cpp
+++ b/source/modules/asura-core/Image/ImageData.cpp
@@ -31,7 +31,7 @@ ImageData::~ImageData()
delete[] pixels;
}
-void ImageData::Decode(IO::DataBuffer& buffer)
+void ImageData::Decode(FileSystem::DataBuffer& buffer)
{
for (ImageDecoder* decoder : ImageDecoders)
{
diff --git a/source/modules/asura-core/Image/ImageData.h b/source/modules/asura-core/Image/ImageData.h
index cd2fe1a..2d70edc 100644
--- a/source/modules/asura-core/Image/ImageData.h
+++ b/source/modules/asura-core/Image/ImageData.h
@@ -3,11 +3,11 @@
#include <list>
-#include <asura-utils/Scripting/Portable.hpp>
-#include <asura-utils/IO/DecodedData.h>
-#include <asura-utils/IO/DataBuffer.h>
-#include <asura-utils/Threads/Thread.h>
-#include <asura-utils/Threads/Mutex.h>
+#include <asura-base/Scripting/Scripting.h>
+#include <asura-base/FileSystem/DecodedData.h>
+#include <asura-base/FileSystem/DataBuffer.h>
+#include <asura-base/Threads/Thread.h>
+#include <asura-base/Threads/Mutex.h>
#include "../Graphics/Texture.h"
#include "../Graphics/Color.h"
@@ -19,7 +19,7 @@ class ImageDecoder;
class ImageData ASURA_FINAL
: public Scripting::Portable<ImageData>
- , public AEIO::DecodedData
+ , public AEFileSystem::DecodedData
{
public:
@@ -29,7 +29,7 @@ public:
ImageData();
~ImageData();
- void Decode(AEIO::DataBuffer& buffer) override;
+ void Decode(AEFileSystem::DataBuffer& buffer) override;
void Lock();
void Unlock();
diff --git a/source/modules/asura-core/Image/ImageDecodeTask.h b/source/modules/asura-core/Image/ImageDecodeTask.h
index 74ecf24..194ac3e 100644
--- a/source/modules/asura-core/Image/ImageDecodeTask.h
+++ b/source/modules/asura-core/Image/ImageDecodeTask.h
@@ -1,9 +1,9 @@
#ifndef _ASURA_IMAGE_DECODE_TASK_H_
#define _ASURA_IMAGE_DECODE_TASK_H_
-#include <asura-utils/Threads/task.h>
-#include <asura-utils/Scripting/Portable.hpp>
-#include <asura-utils/Classes.h>
+#include <asura-base/Threads/task.h>
+#include <asura-base/Scripting/Scripting.h>
+#include <asura-base/Classes.h>
namespace_begin(AsuraEngine)
namespace_begin(Image)
diff --git a/source/modules/asura-core/Image/ImageDecoder.h b/source/modules/asura-core/Image/ImageDecoder.h
index 7de92d6..6cea8fd 100644
--- a/source/modules/asura-core/Image/ImageDecoder.h
+++ b/source/modules/asura-core/Image/ImageDecoder.h
@@ -1,7 +1,7 @@
#ifndef _ASURA_ENGINE_IMAGE_DECODER_H_
#define _ASURA_ENGINE_IMAGE_DECODER_H_
-#include <asura-utils/IO/DataBuffer.h>
+#include <asura-base/FileSystem/DataBuffer.h>
#include "ImageData.h"
@@ -18,12 +18,12 @@ public:
///
/// жڴǷñdecoderѹ
///
- virtual bool CanDecode(AEIO::DataBuffer& input) = 0;
+ virtual bool CanDecode(AEFileSystem::DataBuffer& input) = 0;
///
/// һڴ棬һѹImage dataѹʧܷnullptr
///
- virtual void Decode(AEIO::DataBuffer& input, ImageData& target) = 0;
+ virtual void Decode(AEFileSystem::DataBuffer& input, ImageData& target) = 0;
};
diff --git a/source/modules/asura-core/Image/PngDecoder.cpp b/source/modules/asura-core/Image/PngDecoder.cpp
index 618c16e..b314561 100644
--- a/source/modules/asura-core/Image/PngDecoder.cpp
+++ b/source/modules/asura-core/Image/PngDecoder.cpp
@@ -3,12 +3,12 @@
namespace_begin(AsuraEngine)
namespace_begin(Image)
-bool PNGDecoder::CanDecode(AEIO::DataBuffer& buffer)
+bool PNGDecoder::CanDecode(AEFileSystem::DataBuffer& buffer)
{
return false;
}
-void PNGDecoder::Decode(AEIO::DataBuffer& buffer, ImageData& data)
+void PNGDecoder::Decode(AEFileSystem::DataBuffer& buffer, ImageData& data)
{
}
diff --git a/source/modules/asura-core/Image/PngDecoder.h b/source/modules/asura-core/Image/PngDecoder.h
index b6ea3ba..3b2a39c 100644
--- a/source/modules/asura-core/Image/PngDecoder.h
+++ b/source/modules/asura-core/Image/PngDecoder.h
@@ -13,9 +13,9 @@ class PNGDecoder ASURA_FINAL: public ImageDecoder
{
public:
- bool CanDecode(AEIO::DataBuffer& buffer) override;
+ bool CanDecode(AEFileSystem::DataBuffer& buffer) override;
- void Decode(AEIO::DataBuffer& buffer, ImageData& data) override;
+ void Decode(AEFileSystem::DataBuffer& buffer, ImageData& data) override;
};
diff --git a/source/modules/asura-core/Image/StbDecoder.cpp b/source/modules/asura-core/Image/StbDecoder.cpp
index 8d3537c..101b148 100644
--- a/source/modules/asura-core/Image/StbDecoder.cpp
+++ b/source/modules/asura-core/Image/StbDecoder.cpp
@@ -1,4 +1,4 @@
-#include <asura-utils/Exceptions/Exception.h>
+#include <asura-base/Exception.h>
#include "StbDecoder.h"
@@ -10,7 +10,7 @@ using namespace AEGraphics;
namespace_begin(AsuraEngine)
namespace_begin(Image)
-bool STBDecoder::CanDecode(IO::DataBuffer& buffer)
+bool STBDecoder::CanDecode(FileSystem::DataBuffer& buffer)
{
int w = 0;
int h = 0;
@@ -21,7 +21,7 @@ bool STBDecoder::CanDecode(IO::DataBuffer& buffer)
return status == 1 && w > 0 && h > 0;
}
-void STBDecoder::Decode(IO::DataBuffer& db, ImageData& imageData)
+void STBDecoder::Decode(FileSystem::DataBuffer& db, ImageData& imageData)
{
const stbi_uc *buffer = (const stbi_uc *)db.GetData();
// databufferݳ
diff --git a/source/modules/asura-core/Image/StbDecoder.h b/source/modules/asura-core/Image/StbDecoder.h
index a86073a..23e8c38 100644
--- a/source/modules/asura-core/Image/StbDecoder.h
+++ b/source/modules/asura-core/Image/StbDecoder.h
@@ -14,9 +14,9 @@ class STBDecoder ASURA_FINAL
{
public:
- bool CanDecode(AEIO::DataBuffer& buffer) override;
+ bool CanDecode(AEFileSystem::DataBuffer& buffer) override;
- void Decode(AEIO::DataBuffer& buffer, ImageData& data) override;
+ void Decode(AEFileSystem::DataBuffer& buffer, ImageData& data) override;
};
diff --git a/source/modules/asura-core/Image/binding/_image_data.cpp b/source/modules/asura-core/Image/binding/_image_data.cpp
index 77f3a96..375f854 100644
--- a/source/modules/asura-core/Image/binding/_image_data.cpp
+++ b/source/modules/asura-core/Image/binding/_image_data.cpp
@@ -1,11 +1,11 @@
-#include <asura-utils/Threads/Thread.h>
-#include <asura-utils/IO/DataBuffer.h>
+#include <asura-base/Threads/Thread.h>
+#include <asura-base/FileSystem/DataBuffer.h>
#include "../ImageData.h"
using namespace std;
using namespace AEThreading;
-using namespace AEIO;
+using namespace AEFileSystem;
namespace_begin(AsuraEngine)
namespace_begin(Image)