Files
UnrealEngineUWP/Engine/Source/Runtime/ImageWrapper/Private/Formats/OOJpegImageWrapper.h
2023-09-13 14:47:22 -04:00

40 lines
948 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreTypes.h"
#include "ImageWrapperBase.h"
#if WITH_OOJPEG
class FOOJpegImageWrapper
: public FImageWrapperBase
{
public:
/** Default constructor. */
// NumComponents == 1 for GrayscaleJPEG
FOOJpegImageWrapper(int32 InNumComponents = 4);
virtual ~FOOJpegImageWrapper();
public:
//~ FImageWrapperBase interface
virtual bool SetCompressed(const void* InCompressedData, int64 InCompressedSize) override;
virtual void Uncompress(const ERGBFormat InFormat, int32 InBitDepth) override;
virtual void Compress(int32 Quality) override;
virtual TArray64<uint8> GetExportData(int32 Quality) override;
virtual bool CanSetRawFormat(const ERGBFormat InFormat, const int32 InBitDepth) const override;
virtual ERawImageFormat::Type GetSupportedRawFormat(const ERawImageFormat::Type InFormat) const override;
private:
int32 NumComponents;
};
#endif //WITH_OOJPEG