#include <iimage.h>
|
| virtual | ~IImage ()=default |
| |
| virtual bool | LoadImageFromMemory (unsigned char *buffer, unsigned int bufSize, unsigned int width, unsigned int height)=0 |
| | Load an image from memory with the format m_strMimeType to determine it's size and orientation. More...
|
| |
| virtual bool | Decode (unsigned char *const pixels, unsigned int width, unsigned int height, unsigned int pitch, unsigned int format)=0 |
| | Decodes the previously loaded image data to the output buffer in 32 bit raw bits. More...
|
| |
| virtual bool | CreateThumbnailFromSurface (unsigned char *bufferin, unsigned int width, unsigned int height, unsigned int format, unsigned int pitch, const std::string &destFile, unsigned char *&bufferout, unsigned int &bufferoutSize)=0 |
| | Encodes an thumbnail from raw bits of given memory location. More...
|
| |
| virtual void | ReleaseThumbnailBuffer () |
| | Frees the output buffer allocated by CreateThumbnailFromSurface. More...
|
| |
| unsigned int | Width () const |
| |
| unsigned int | Height () const |
| |
| unsigned int | originalWidth () const |
| |
| unsigned int | originalHeight () const |
| |
| unsigned int | Orientation () const |
| |
| bool | hasAlpha () const |
| |
◆ ~IImage()
| virtual IImage::~IImage |
( |
| ) |
|
|
virtualdefault |
◆ CreateThumbnailFromSurface()
| virtual bool IImage::CreateThumbnailFromSurface |
( |
unsigned char * |
bufferin, |
|
|
unsigned int |
width, |
|
|
unsigned int |
height, |
|
|
unsigned int |
format, |
|
|
unsigned int |
pitch, |
|
|
const std::string & |
destFile, |
|
|
unsigned char *& |
bufferout, |
|
|
unsigned int & |
bufferoutSize |
|
) |
| |
|
pure virtual |
Encodes an thumbnail from raw bits of given memory location.
- Parameters
-
| bufferin | The memory location where the image data can be found |
| width | The width of the thumbnail |
| height | The height of the thumbnail |
| format | The format of the input buffer (JpegIO only) |
| pitch | The pitch of the input texture stored in bufferin |
| destFile | The destination path of the thumbnail to determine the image format from the extension |
| bufferout | The output buffer (will be allocated inside the method) |
| bufferoutSize | The output buffer size |
- Returns
- true if the thumbnail was successfully created
Implemented in ADDON::CImageDecoder, and CFFmpegImage.
◆ Decode()
| virtual bool IImage::Decode |
( |
unsigned char *const |
pixels, |
|
|
unsigned int |
width, |
|
|
unsigned int |
height, |
|
|
unsigned int |
pitch, |
|
|
unsigned int |
format |
|
) |
| |
|
pure virtual |
Decodes the previously loaded image data to the output buffer in 32 bit raw bits.
- Parameters
-
| pixels | The output buffer |
| width | The width of the image |
| height | The height of the image |
| pitch | The pitch of the output buffer |
| format | The format of the output buffer (JpegIO only) |
- Returns
- true if the image data could be decoded to the output buffer
Implemented in ADDON::CImageDecoder, and CFFmpegImage.
◆ hasAlpha()
| bool IImage::hasAlpha |
( |
| ) |
const |
|
inline |
◆ Height()
| unsigned int IImage::Height |
( |
| ) |
const |
|
inline |
◆ LoadImageFromMemory()
| virtual bool IImage::LoadImageFromMemory |
( |
unsigned char * |
buffer, |
|
|
unsigned int |
bufSize, |
|
|
unsigned int |
width, |
|
|
unsigned int |
height |
|
) |
| |
|
pure virtual |
Load an image from memory with the format m_strMimeType to determine it's size and orientation.
- Parameters
-
| buffer | The memory location where the image data can be found |
| bufSize | The size of the buffer |
| width | The ideal width of the texture |
| height | The ideal height of the texture |
- Returns
- true if the image could be loaded
Implemented in ADDON::CImageDecoder, and CFFmpegImage.
◆ Orientation()
| unsigned int IImage::Orientation |
( |
| ) |
const |
|
inline |
◆ originalHeight()
| unsigned int IImage::originalHeight |
( |
| ) |
const |
|
inline |
◆ originalWidth()
| unsigned int IImage::originalWidth |
( |
| ) |
const |
|
inline |
◆ ReleaseThumbnailBuffer()
| virtual void IImage::ReleaseThumbnailBuffer |
( |
| ) |
|
|
inlinevirtual |
Frees the output buffer allocated by CreateThumbnailFromSurface.
Reimplemented in CFFmpegImage.
◆ Width()
| unsigned int IImage::Width |
( |
| ) |
const |
|
inline |
◆ m_hasAlpha
| bool IImage::m_hasAlpha = false |
|
protected |
◆ m_height
| unsigned int IImage::m_height = 0 |
|
protected |
◆ m_orientation
| unsigned int IImage::m_orientation = 0 |
|
protected |
◆ m_originalHeight
| unsigned int IImage::m_originalHeight = 0 |
|
protected |
original image height before scaling or cropping
◆ m_originalWidth
| unsigned int IImage::m_originalWidth = 0 |
|
protected |
original image width before scaling or cropping
◆ m_width
| unsigned int IImage::m_width = 0 |
|
protected |
The documentation for this class was generated from the following file: