Files
UnrealEngineUWP/Engine/Source/Developer/ImageWrapper/Private/JpegImageWrapper.h
Matt Kuhlenschmidt cb140c07dc Merged GitHub pull request #202 to main.
refactored tga code to allows use outside of EditorFactories.cpp
added support for grayscale jpeg
fix memory leak in jpeg code
changes in AssetTools to allow to specify precise factory when multiple factories support the same filetype
changes in Plugin.cs to allow binary only plugins
exposed parts of engine API to other modules

[CL 2108453 by Matt Kuhlenschmidt in Main branch]
2014-06-17 16:16:40 -04:00

38 lines
925 B
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#pragma once
#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::Type InFormat, const int32 InBitDepth ) override;
virtual void Uncompress( const ERGBFormat::Type InFormat, int32 InBitDepth ) override;
virtual void Compress(int32 Quality) override;
private:
int32 NumComponents;
};
#endif //WITH_JPEG