![]() |
Mali OpenGL ES SDK v2.4.4
Mali Developer Center
Use of the code snippets present within these pages are subject to these EULA terms
|
#include <MImageTGA.h>
Classes | |
| struct | Header |
Public Member Functions | |
| MImageTGA () | |
| virtual | ~MImageTGA () |
| unsigned int | getWidth () const |
| unsigned int | getHeight () const |
| const unsigned char * | getData () const |
| bool | load (const MPath &aFileNameTGA) |
| The method load an image from file. | |
| bool | save (const MPath &aFileNameTGA) |
| void | set (const unsigned char *aData, unsigned int aWidth, unsigned int aHeight) |
| void | flipVertical () |
| The method flips the image vertically. | |
| void | release () |
| The method releases the internal memory buffer. | |
| void | getAlphaComponent (MImageTGA &aOutImage) const |
| The method reads an Alpha component out from the image and writes into aOutImage. | |
| MImageTGA () | |
| virtual | ~MImageTGA () |
| unsigned int | getWidth () const |
| unsigned int | getHeight () const |
| const unsigned char * | getData () const |
| bool | load (const MPath &aFileNameTGA) |
| The method load an image from file. | |
| bool | save (const MPath &aFileNameTGA) |
| void | set (const unsigned char *aData, unsigned int aWidth, unsigned int aHeight) |
| void | flipVertical () |
| The method flips the image vertically. | |
| void | release () |
| The method releases the internal memory buffer. | |
| void | getAlphaComponent (MImageTGA &aOutImage) const |
| The method reads an Alpha component out from the image and writes into aOutImage. | |
| MImageTGA () | |
| virtual | ~MImageTGA () |
| unsigned int | getWidth () const |
| unsigned int | getHeight () const |
| const unsigned char * | getData () const |
| bool | load (const MPath &aFileNameTGA) |
| The method load an image from file. | |
| bool | save (const MPath &aFileNameTGA) |
| void | set (const unsigned char *aData, unsigned int aWidth, unsigned int aHeight) |
| void | flipVertical () |
| The method flips the image vertically. | |
| void | release () |
| The method releases the internal memory buffer. | |
| void | getAlphaComponent (MImageTGA &aOutImage) const |
| The method reads an Alpha component out from the image and writes into aOutImage. | |
Private Member Functions | |
| unsigned int | reallocateData (const Header &aHeader) |
| void | convertBGRA2RGBA (unsigned char *aData, unsigned int aDataSize) const |
| void | copyData (unsigned int aSrcWidth, unsigned int aSrcHeight, unsigned int aSrcBitsPerPixel, const unsigned char *aSrcData, unsigned int aDstWidth, unsigned int aDstHeight, unsigned int aDstBitsPerPixel, unsigned char *aDstData) const |
| unsigned int | reallocateData (const Header &aHeader) |
| void | convertBGRA2RGBA (unsigned char *aData, unsigned int aDataSize) const |
| void | copyData (unsigned int aSrcWidth, unsigned int aSrcHeight, unsigned int aSrcBitsPerPixel, const unsigned char *aSrcData, unsigned int aDstWidth, unsigned int aDstHeight, unsigned int aDstBitsPerPixel, unsigned char *aDstData) const |
| unsigned int | reallocateData (const Header &aHeader) |
| void | convertBGRA2RGBA (unsigned char *aData, unsigned int aDataSize) const |
| void | copyData (unsigned int aSrcWidth, unsigned int aSrcHeight, unsigned int aSrcBitsPerPixel, const unsigned char *aSrcData, unsigned int aDstWidth, unsigned int aDstHeight, unsigned int aDstBitsPerPixel, unsigned char *aDstData) const |
Private Attributes | |
| unsigned char * | theData |
| unsigned int | theWidth |
| unsigned int | theHeight |
| unsigned int | theBitsPerPixel |
| unsigned int | theBytesPerPixel |
The class represents a simple TGA loader, which supports uncompressed TGA files with 24 and 32 bits format only.
| MImageTGA::MImageTGA | ( | ) |
|
virtual |
| MImageTGA::MImageTGA | ( | ) |
|
virtual |
| MImageTGA::MImageTGA | ( | ) |
|
virtual |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| void MImageTGA::flipVertical | ( | ) |
The method flips the image vertically.
| void MImageTGA::flipVertical | ( | ) |
The method flips the image vertically.
| void MImageTGA::flipVertical | ( | ) |
The method flips the image vertically.
| void MImageTGA::getAlphaComponent | ( | MImageTGA & | aOutImage | ) | const |
The method reads an Alpha component out from the image and writes into aOutImage.
| void MImageTGA::getAlphaComponent | ( | MImageTGA & | aOutImage | ) | const |
The method reads an Alpha component out from the image and writes into aOutImage.
| void MImageTGA::getAlphaComponent | ( | MImageTGA & | aOutImage | ) | const |
The method reads an Alpha component out from the image and writes into aOutImage.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| bool MImageTGA::load | ( | const MPath & | aFileNameTGA | ) |
The method load an image from file.
| bool MImageTGA::load | ( | const MPath & | aFileNameTGA | ) |
The method load an image from file.
| bool MImageTGA::load | ( | const MPath & | aFileNameTGA | ) |
The method load an image from file.
| void MImageTGA::release | ( | ) |
The method releases the internal memory buffer.
| void MImageTGA::release | ( | ) |
The method releases the internal memory buffer.
| void MImageTGA::release | ( | ) |
The method releases the internal memory buffer.
| bool MImageTGA::save | ( | const MPath & | aFileNameTGA | ) |
The method saves the current image to a specified file. If the specified file already exists then the method overrides this file.
| bool MImageTGA::save | ( | const MPath & | aFileNameTGA | ) |
The method saves the current image to a specified file. If the specified file already exists then the method overrides this file.
| bool MImageTGA::save | ( | const MPath & | aFileNameTGA | ) |
The method saves the current image to a specified file. If the specified file already exists then the method overrides this file.
The method creates an image from memory where aData is a RAW data image This is an alternative method to the "load" one.
The method creates an image from memory where aData is a RAW data image This is an alternative method to the "load" one.
The method creates an image from memory where aData is a RAW data image This is an alternative method to the "load" one.
|
private |
|
private |
|
private |
|
private |
|
private |