Files
UnrealEngineUWP/Engine/Source/Runtime/ImageWrapper/Private/Formats/JpegImageWrapper.h
Ryan Vance 7c51ff94af Merging //UE4/Dev-Main to Dev-VR (//UE4/Dev-VR)
CL 1 of 8
#rb integration

[CL 4748712 by Ryan Vance in Dev-VR branch]
2019-01-17 18:54:05 -05:00

40 lines
959 B
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreTypes.h"
#include "ImageWrapperBase.h"
#if WITH_UNREALJPEG
/**
* Uncompresses JPEG data to raw 24bit RGB image that can be used by Unreal textures.
*
* Source code for JPEG decompression from http://code.google.com/p/jpeg-compressor/
*/
class FJpegImageWrapper
: public FImageWrapperBase
{
public:
/** Default constructor. */
FJpegImageWrapper(int32 InNumComponents = 4);
public:
//~ FImageWrapperBase interface
virtual bool SetCompressed(const void* InCompressedData, int32 InCompressedSize) override;
virtual bool SetRaw(const void* InRawData, int32 InRawSize, const int32 InWidth, const int32 InHeight, const ERGBFormat InFormat, const int32 InBitDepth) override;
virtual void Uncompress(const ERGBFormat InFormat, int32 InBitDepth) override;
virtual void Compress(int32 Quality) override;
private:
int32 NumComponents;
};
#endif //WITH_JPEG