A static conversion class for transforming RGBA image buffers into verious GX texture formats for Wii homebrew development. More...
#include <Metaphrasis.h>
Public Member Functions | |
Metaphrasis () | |
virtual | ~Metaphrasis () |
Static Public Member Functions | |
static uint32_t * | convertBufferToI4 (uint32_t *rgbaBuffer, uint16_t bufferWidth, uint16_t bufferHeight) |
static uint32_t * | convertBufferToI8 (uint32_t *rgbaBuffer, uint16_t bufferWidth, uint16_t bufferHeight) |
static uint32_t * | convertBufferToIA4 (uint32_t *rgbaBuffer, uint16_t bufferWidth, uint16_t bufferHeight) |
static uint32_t * | convertBufferToIA8 (uint32_t *rgbaBuffer, uint16_t bufferWidth, uint16_t bufferHeight) |
static uint32_t * | convertBufferToRGBA8 (uint32_t *rgbaBuffer, uint16_t bufferWidth, uint16_t bufferHeight) |
static uint32_t * | convertBufferToRGB565 (uint32_t *rgbaBuffer, uint16_t bufferWidth, uint16_t bufferHeight) |
static uint32_t * | convertBufferToRGB5A3 (uint32_t *rgbaBuffer, uint16_t bufferWidth, uint16_t bufferHeight) |
static uint8_t | convertRGBAToIA4 (uint32_t rgba) |
static uint16_t | convertRGBAToIA8 (uint32_t rgba) |
static uint16_t | convertRGBAToRGB565 (uint32_t rgba) |
static uint16_t | convertRGBAToRGB5A3 (uint32_t rgba) |
A static conversion class for transforming RGBA image buffers into verious GX texture formats for Wii homebrew development.
Metaphrasis is a static conversion class for transforming RGBA image buffers into verious GX texture formats for Wii homebrew development. Metaphrasis is written in C++ and makes use of a community standard and newly developed algorithms for conversion of 32-bit RGBA data buffers into various GX texture formats common to both the Gamecube and Wii platforms.
Definition at line 96 of file Metaphrasis.h.
Metaphrasis::Metaphrasis | ( | ) |
Default constructor for the Metaphrasis class.
Definition at line 28 of file Metaphrasis.cpp.
Metaphrasis::~Metaphrasis | ( | ) | [virtual] |
Default destructor for the Metaphrasis class.
Definition at line 35 of file Metaphrasis.cpp.
uint32_t * Metaphrasis::convertBufferToI4 | ( | uint32_t * | rgbaBuffer, | |
uint16_t | bufferWidth, | |||
uint16_t | bufferHeight | |||
) | [static] |
Convert the specified RGBA data buffer into the I4 texture format
This routine converts the RGBA data buffer into the I4 texture format and returns a pointer to the converted buffer.
rgbaBuffer | Buffer containing the temporarily rendered RGBA data. | |
bufferWidth | Pixel width of the data buffer. | |
bufferHeight | Pixel height of the data buffer. |
Definition at line 49 of file Metaphrasis.cpp.
uint32_t * Metaphrasis::convertBufferToI8 | ( | uint32_t * | rgbaBuffer, | |
uint16_t | bufferWidth, | |||
uint16_t | bufferHeight | |||
) | [static] |
Convert the specified RGBA data buffer into the I8 texture format
This routine converts the RGBA data buffer into the I8 texture format and returns a pointer to the converted buffer.
rgbaBuffer | Buffer containing the temporarily rendered RGBA data. | |
bufferWidth | Pixel width of the data buffer. | |
bufferHeight | Pixel height of the data buffer. |
Definition at line 83 of file Metaphrasis.cpp.
uint32_t * Metaphrasis::convertBufferToIA4 | ( | uint32_t * | rgbaBuffer, | |
uint16_t | bufferWidth, | |||
uint16_t | bufferHeight | |||
) | [static] |
Convert the specified RGBA data buffer into the IA4 texture format
This routine converts the RGBA data buffer into the IA4 texture format and returns a pointer to the converted buffer.
rgbaBuffer | Buffer containing the temporarily rendered RGBA data. | |
bufferWidth | Pixel width of the data buffer. | |
bufferHeight | Pixel height of the data buffer. |
Definition at line 139 of file Metaphrasis.cpp.
uint32_t * Metaphrasis::convertBufferToIA8 | ( | uint32_t * | rgbaBuffer, | |
uint16_t | bufferWidth, | |||
uint16_t | bufferHeight | |||
) | [static] |
Convert the specified RGBA data buffer into the IA8 texture format
This routine converts the RGBA data buffer into the IA8 texture format and returns a pointer to the converted buffer.
rgbaBuffer | Buffer containing the temporarily rendered RGBA data. | |
bufferWidth | Pixel width of the data buffer. | |
bufferHeight | Pixel height of the data buffer. |
Definition at line 195 of file Metaphrasis.cpp.
uint32_t * Metaphrasis::convertBufferToRGB565 | ( | uint32_t * | rgbaBuffer, | |
uint16_t | bufferWidth, | |||
uint16_t | bufferHeight | |||
) | [static] |
Convert the specified RGBA data buffer into the RGB565 texture format
This routine converts the RGBA data buffer into the RGB565 texture format and returns a pointer to the converted buffer.
rgbaBuffer | Buffer containing the temporarily rendered RGBA data. | |
bufferWidth | Pixel width of the data buffer. | |
bufferHeight | Pixel height of the data buffer. |
Definition at line 289 of file Metaphrasis.cpp.
uint32_t * Metaphrasis::convertBufferToRGB5A3 | ( | uint32_t * | rgbaBuffer, | |
uint16_t | bufferWidth, | |||
uint16_t | bufferHeight | |||
) | [static] |
Convert the specified RGBA data buffer into the RGB5A3 texture format
This routine converts the RGBA data buffer into the RGB5A3 texture format and returns a pointer to the converted buffer.
rgbaBuffer | Buffer containing the temporarily rendered RGBA data. | |
bufferWidth | Pixel width of the data buffer. | |
bufferHeight | Pixel height of the data buffer. |
Definition at line 362 of file Metaphrasis.cpp.
uint32_t * Metaphrasis::convertBufferToRGBA8 | ( | uint32_t * | rgbaBuffer, | |
uint16_t | bufferWidth, | |||
uint16_t | bufferHeight | |||
) | [static] |
Convert the specified RGBA data buffer into the RGBA8 texture format
This routine converts the RGBA data buffer into the RGBA8 texture format and returns a pointer to the converted buffer.
rgbaBuffer | Buffer containing the temporarily rendered RGBA data. | |
bufferWidth | Pixel width of the data buffer. | |
bufferHeight | Pixel height of the data buffer. |
Definition at line 229 of file Metaphrasis.cpp.
uint8_t Metaphrasis::convertRGBAToIA4 | ( | uint32_t | rgba | ) | [static] |
Downsample the specified RGBA value data buffer to an IA4 value.
This routine downsamples the given RGBA data value into the IA4 texture data format.
rgba | A 32-bit RGBA value to convert to the IA4 format. |
Definition at line 119 of file Metaphrasis.cpp.
uint16_t Metaphrasis::convertRGBAToIA8 | ( | uint32_t | rgba | ) | [static] |
Downsample the specified RGBA value data buffer to an IA8 value.
This routine downsamples the given RGBA data value into the IA8 texture data format.
rgba | A 32-bit RGBA value to convert to the IA8 format. |
Definition at line 175 of file Metaphrasis.cpp.
uint16_t Metaphrasis::convertRGBAToRGB565 | ( | uint32_t | rgba | ) | [static] |
Downsample the specified RGBA value data buffer to an RGB565 value.
This routine downsamples the given RGBA data value into the RGB565 texture data format. Attribution for this routine is given fully to NoNameNo of GRRLIB Wii library.
rgba | A 32-bit RGBA value to convert to the RGB565 format. |
Definition at line 268 of file Metaphrasis.cpp.
uint16_t Metaphrasis::convertRGBAToRGB5A3 | ( | uint32_t | rgba | ) | [static] |
Downsample the specified RGBA value data buffer to an RGB5A3 value.
This routine downsamples the given RGBA data value into the RGB5A3 texture data format. Attribution for this routine is given fully to WiiGator via the TehSkeen forum.
rgba | A 32-bit RGBA value to convert to the RGB5A3 format. |
Definition at line 322 of file Metaphrasis.cpp.