engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
IImageWrapper类 参考abstract

Interface for image wrappers. 更多...

#include <IImageWrapper.h>

Public 成员函数

virtual int32 GetBitDepth () const =0
 Gets the bit depth of the image. 更多...
 
virtual const TArray64< uint8 > & GetCompressed (int32 Quality=0)=0
 Gets the compressed data. 更多...
 
virtual ERGBFormat GetFormat () const =0
 Gets the format of the image. 更多...
 
virtual int32 GetFramerate () const =0
 
virtual int32 GetHeight () const =0
 Gets the height of the image. 更多...
 
virtual int32 GetNumFrames () const =0
 
virtual bool GetRaw (const ERGBFormat InFormat, int32 InBitDepth, TArray64< uint8 > &OutRawData)=0
 Gets the raw data. 更多...
 
bool GetRaw (const ERGBFormat InFormat, int32 InBitDepth, TArray< uint8 > &OutRawData)
 Gets the raw data in a TArray. 更多...
 
virtual int32 GetWidth () const =0
 Gets the width of the image. 更多...
 
virtual bool SetAnimationInfo (int32 InNumFrames, int32 InFramerate)=0
 Set information for animated formats 更多...
 
virtual bool SetCompressed (const void *InCompressedData, int64 InCompressedSize)=0
 Sets the compressed data. 更多...
 
virtual bool SetRaw (const void *InRawData, int64 InRawSize, const int32 InWidth, const int32 InHeight, const ERGBFormat InFormat, const int32 InBitDepth)=0
 Sets the compressed data. 更多...
 
virtual ~IImageWrapper ()
 Virtual destructor.
 

详细描述

Interface for image wrappers.

成员函数说明

◆ GetBitDepth()

virtual int32 IImageWrapper::GetBitDepth ( ) const
pure virtual

Gets the bit depth of the image.

返回
The bit depth per-channel of the image.

◆ GetCompressed()

virtual const TArray64< uint8 > & IImageWrapper::GetCompressed ( int32  Quality = 0)
pure virtual

Gets the compressed data.

返回
Array of the compressed data.

◆ GetFormat()

virtual ERGBFormat IImageWrapper::GetFormat ( ) const
pure virtual

Gets the format of the image.

Theoretically, this is the format it would be best to call GetRaw() with, if you support it.

返回
The format the image data is in

◆ GetFramerate()

virtual int32 IImageWrapper::GetFramerate ( ) const
pure virtual
返回
The playback framerate of animated images (or 0 for non-animated)

◆ GetHeight()

virtual int32 IImageWrapper::GetHeight ( ) const
pure virtual

Gets the height of the image.

返回
Image height.
参见
GetWidth

◆ GetNumFrames()

virtual int32 IImageWrapper::GetNumFrames ( ) const
pure virtual
返回
The number of frames in an animated image

◆ GetRaw() [1/2]

virtual bool IImageWrapper::GetRaw ( const ERGBFormat  InFormat,
int32  InBitDepth,
TArray64< uint8 > &  OutRawData 
)
pure virtual

Gets the raw data.

参数
InFormatHow we want to manipulate the RGB data.
InBitDepthThe output bit-depth per channel, normally 8.
OutRawDataWill contain the uncompressed raw data.
返回
true on success, false otherwise.

◆ GetRaw() [2/2]

bool IImageWrapper::GetRaw ( const ERGBFormat  InFormat,
int32  InBitDepth,
TArray< uint8 > &  OutRawData 
)
inline

Gets the raw data in a TArray.

Only use this if you're certain that the image is less than 2 GB in size. Prefer using the overload which takes a TArray64 in general.

参数
InFormatHow we want to manipulate the RGB data.
InBitDepthThe output bit-depth per channel, normally 8.
OutRawDataWill contain the uncompressed raw data.
返回
true on success, false otherwise.

◆ GetWidth()

virtual int32 IImageWrapper::GetWidth ( ) const
pure virtual

Gets the width of the image.

返回
Image width.
参见
GetHeight

◆ SetAnimationInfo()

virtual bool IImageWrapper::SetAnimationInfo ( int32  InNumFrames,
int32  InFramerate 
)
pure virtual

Set information for animated formats

参数
InNumFramesThe number of frames in the animation (the RawData from SetRaw will need to be a multiple of NumFrames)
InFramerateThe playback rate of the animation
返回
true if successful

◆ SetCompressed()

virtual bool IImageWrapper::SetCompressed ( const void *  InCompressedData,
int64  InCompressedSize 
)
pure virtual

Sets the compressed data.

参数
InCompressedDataThe memory address of the start of the compressed data.
InCompressedSizeThe size of the compressed data parsed.
返回
true if data was the expected format.

◆ SetRaw()

virtual bool IImageWrapper::SetRaw ( const void *  InRawData,
int64  InRawSize,
const int32  InWidth,
const int32  InHeight,
const ERGBFormat  InFormat,
const int32  InBitDepth 
)
pure virtual

Sets the compressed data.

参数
InRawDataThe memory address of the start of the raw data.
InRawSizeThe size of the compressed data parsed.
InWidthThe width of the image data.
InHeightthe height of the image data.
InFormatthe format the raw data is in, normally RGBA.
InBitDepththe bit-depth per channel, normally 8.
返回
true if data was the expected format.

该类的文档由以下文件生成: