Integrating latest 47acbe8
This commit is contained in:
@@ -63,10 +63,10 @@ namespace ImageProcessingAtom
|
||||
virtual ~IImageObject() {};
|
||||
public:
|
||||
//creating new image object outof this image object
|
||||
virtual IImageObject* Clone(uint32_t maxMipCount = std::numeric_limits<uint32>::max()) const = 0;
|
||||
virtual IImageObject* Clone(uint32_t maxMipCount = std::numeric_limits<uint32_t>::max()) const = 0;
|
||||
// allocate an empty image object with requested format and same properties with current image
|
||||
virtual IImageObject* AllocateImage(EPixelFormat pixelFormat, uint32_t maxMipCount = std::numeric_limits<uint32>::max()) const = 0;
|
||||
virtual IImageObject* AllocateImage(uint32_t maxMipCount = std::numeric_limits<uint32>::max()) const = 0;
|
||||
virtual IImageObject* AllocateImage(EPixelFormat pixelFormat, uint32_t maxMipCount = std::numeric_limits<uint32_t>::max()) const = 0;
|
||||
virtual IImageObject* AllocateImage(uint32_t maxMipCount = std::numeric_limits<uint32_t>::max()) const = 0;
|
||||
|
||||
//get pixel format
|
||||
virtual EPixelFormat GetPixelFormat() const = 0;
|
||||
|
||||
+6
-3
@@ -13,11 +13,10 @@
|
||||
#pragma once
|
||||
|
||||
#include <AzCore/EBus/EBus.h>
|
||||
#include <Atom/ImageProcessing/ImageObject.h>
|
||||
|
||||
namespace ImageProcessingAtom
|
||||
{
|
||||
class IImageObject;
|
||||
|
||||
class ImageProcessingRequests
|
||||
: public AZ::EBusTraits
|
||||
{
|
||||
@@ -28,7 +27,11 @@ namespace ImageProcessingAtom
|
||||
static const AZ::EBusAddressPolicy AddressPolicy = AZ::EBusAddressPolicy::Single;
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
virtual IImageObject* LoadImage(const AZStd::string& filePath) = 0;
|
||||
// Loads an image from a source file path
|
||||
virtual IImageObjectPtr LoadImage(const AZStd::string& filePath) = 0;
|
||||
|
||||
// Loads an image from a source file path and converts it to a format suitable for previewing in tools
|
||||
virtual IImageObjectPtr LoadImagePreview(const AZStd::string& filePath) = 0;
|
||||
};
|
||||
using ImageProcessingRequestBus = AZ::EBus<ImageProcessingRequests>;
|
||||
} // namespace ImageProcessingAtom
|
||||
|
||||
Reference in New Issue
Block a user