|
bool | canInterpretAs (const ImageFormat *otherFormat) const |
| True if data in otherFormat is binary compatible. More...
|
|
Color4 | channelMask () const |
| Returns a Color4 that masks off unused components in the format, given in RGBA For example, the mask for R32F is (1,0,0,0), for A32F is (0,0,0,1), for RGB32F is (1,1,1,0). More...
|
|
bool | isIntegerFormat () const |
|
const String & | name () const |
| Human readable name of this format. More...
|
|
int | openGLShaderImageFormat () const |
| Provide the OpenGL format that should be used to bind to a GLSL shader image. More...
|
|
bool | representableAsColor1unorm8 () const |
| Does this contain exactly one unorm8 component? More...
|
|
bool | representableAsColor2unorm8 () const |
| Does this contain exactly two unorm8 components? More...
|
|
bool | representableAsColor3unorm8 () const |
| Does this contain exactly three unorm8 components? More...
|
|
bool | representableAsColor4unorm8 () const |
| Does this contain exactly four unorm8 components? More...
|
|
bool | sameComponents (const ImageFormat *other) const |
| Returns true if these formats have the same components (possibly in different NumberFormats or sizes) More...
|
|
|
static const ImageFormat * | A16 () |
|
static const ImageFormat * | A16F () |
|
static const ImageFormat * | A32F () |
|
static const ImageFormat * | A8 () |
|
static const ImageFormat * | AUTO () |
|
NULL pointer; indicates that the G3D::Texture class should choose either RGBA8 or RGB8 depending on the presence of an alpha channel in the input. More...
|
|
static const ImageFormat * | BGR8 () |
|
static const ImageFormat * | BGRA8 () |
|
static bool | conversionAvailable (const ImageFormat *srcFormat, int srcRowPadBits, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY=false) |
| Checks if a conversion between two formats is available. More...
|
|
static bool | convert (const Array< const void *> &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void *> &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY=false, BayerAlgorithm bayerAlg=BayerAlgorithm::MHC) |
| Converts between arbitrary formats on the CPU. More...
|
|
static const ImageFormat * | depth (int depthBits=24) |
| Returns DEPTH16, DEPTH24, or DEPTH32 according to the bits specified. More...
|
|
static const ImageFormat * | DEPTH16 () |
|
static const ImageFormat * | DEPTH24 () |
|
static const ImageFormat * | DEPTH24_STENCIL8 () |
|
static const ImageFormat * | DEPTH32 () |
|
static const ImageFormat * | DEPTH32F () |
|
static const ImageFormat * | floatFormat (int numChannels) |
| Returns R32F, RG32F, RGB32F, or RGBA32F according to the channels specified. More...
|
|
static const ImageFormat * | fromCode (ImageFormat::Code code) |
| Returns the matching ImageFormat* identified by the Code. More...
|
|
static const ImageFormat * | fromString (const String &s) |
| Takes the same values that name() returns. More...
|
|
static const ImageFormat * | getFormatWithAlpha (const ImageFormat *otherFormat) |
| Returns ImageFormat representing the same channels as otherFormat plus an alpha channel, all with at least the same precision as otherFormat, or returns NULL if an equivalent format is unavailable. More...
|
|
static const ImageFormat * | getSRGBFormat (const ImageFormat *otherFormat) |
|
static const ImageFormat * | L16 () |
|
static const ImageFormat * | L16F () |
|
static const ImageFormat * | L32F () |
|
static const ImageFormat * | L8 () |
|
static const ImageFormat * | LA16 () |
|
static const ImageFormat * | LA16F () |
|
static const ImageFormat * | LA32F () |
|
static const ImageFormat * | LA4 () |
|
static const ImageFormat * | LA8 () |
|
static const ImageFormat * | R11G11B10F () |
|
static const ImageFormat * | R16 () |
|
static const ImageFormat * | R16_SNORM () |
|
static const ImageFormat * | R16F () |
|
static const ImageFormat * | R16I () |
|
static const ImageFormat * | R16UI () |
|
static const ImageFormat * | R32F () |
|
static const ImageFormat * | R32I () |
|
static const ImageFormat * | R32UI () |
|
static const ImageFormat * | R8 () |
|
static const ImageFormat * | R8_SNORM () |
|
static const ImageFormat * | R8I () |
|
static const ImageFormat * | R8UI () |
|
static const ImageFormat * | RG16 () |
|
static const ImageFormat * | RG16_SNORM () |
|
static const ImageFormat * | RG16F () |
|
static const ImageFormat * | RG16I () |
|
static const ImageFormat * | RG16UI () |
|
static const ImageFormat * | RG32F () |
|
static const ImageFormat * | RG32I () |
|
static const ImageFormat * | RG32UI () |
|
static const ImageFormat * | RG8 () |
|
static const ImageFormat * | RG8_SNORM () |
|
static const ImageFormat * | RG8I () |
|
static const ImageFormat * | RG8UI () |
|
static const ImageFormat * | RGB10 () |
|
static const ImageFormat * | RGB10A2 () |
|
static const ImageFormat * | RGB16 () |
|
static const ImageFormat * | RGB16_SNORM () |
|
static const ImageFormat * | RGB16F () |
|
static const ImageFormat * | RGB32F () |
|
static const ImageFormat * | RGB32I () |
|
static const ImageFormat * | RGB32UI () |
|
static const ImageFormat * | RGB5 () |
|
static const ImageFormat * | RGB5A1 () |
|
static const ImageFormat * | RGB8 () |
|
static const ImageFormat * | RGB8_SNORM () |
|
static const ImageFormat * | RGB8I () |
|
static const ImageFormat * | RGB8UI () |
|
static const ImageFormat * | RGB9E5F () |
|
static const ImageFormat * | RGB_DXT1 () |
|
static const ImageFormat * | RGBA16 () |
|
static const ImageFormat * | RGBA16_SNORM () |
|
static const ImageFormat * | RGBA16F () |
|
static const ImageFormat * | RGBA16I () |
|
static const ImageFormat * | RGBA16UI () |
|
static const ImageFormat * | RGBA2 () |
|
static const ImageFormat * | RGBA32F () |
|
static const ImageFormat * | RGBA32I () |
|
static const ImageFormat * | RGBA32UI () |
|
static const ImageFormat * | RGBA4 () |
|
static const ImageFormat * | RGBA8 () |
|
static const ImageFormat * | RGBA8_SNORM () |
|
static const ImageFormat * | RGBA8I () |
|
static const ImageFormat * | RGBA8UI () |
|
static const ImageFormat * | RGBA_DXT1 () |
|
static const ImageFormat * | RGBA_DXT3 () |
|
static const ImageFormat * | RGBA_DXT5 () |
|
static const ImageFormat * | SL8 () |
|
static const ImageFormat * | SLA8 () |
|
static const ImageFormat * | SRGB8 () |
|
static const ImageFormat * | SRGB_DXT1 () |
|
static const ImageFormat * | SRGBA8 () |
|
static const ImageFormat * | SRGBA_DXT1 () |
|
static const ImageFormat * | SRGBA_DXT3 () |
|
static const ImageFormat * | SRGBA_DXT5 () |
|
static const ImageFormat * | stencil (int bits=8) |
| Returns STENCIL1, STENCIL4, STENCIL8 or STENCIL16 according to the bits specified. More...
|
|
static const ImageFormat * | STENCIL1 () |
|
static const ImageFormat * | STENCIL16 () |
|
static const ImageFormat * | STENCIL4 () |
|
static const ImageFormat * | STENCIL8 () |
|
static const ImageFormat * | YUV420_PLANAR () |
|
static const ImageFormat * | YUV422 () |
|
static const ImageFormat * | YUV444 () |
|
|
int | alphaBits |
| Number of bits per pixel storage for alpha values; Zero for compressed textures and non-RGB. More...
|
|
BayerPattern | bayerPattern |
| If this is a Bayer format, what is the pattern. More...
|
|
int | blueBits |
| Number of bits per pixel storage for blue values; Zero for compressed textures and non-RGB. More...
|
|
Code | code |
| Useful for serializing. More...
|
|
ColorSpace | colorSpace |
|
bool | compressed |
|
int | cpuBitsPerPixel |
| Amount of CPU memory per pixel when packed into an array, discounting any end-of-row padding. More...
|
|
int | depthBits |
| Number of depth bits (for depth textures; e.g. More...
|
|
bool | floatingPoint |
| True if the bit depths specified are for float formats. More...
|
|
int | greenBits |
| Number of bits per pixel storage for green values; Zero for compressed textures and non-RGB. More...
|
|
int | luminanceBits |
|
NumberFormat | numberFormat |
| Indicates whether this format treats numbers as signed/unsigned integers, floating point, or signed/unsigned normalized fixed point. More...
|
|
int | numComponents |
| Number of channels (1 for a depth texture). More...
|
|
bool | opaque |
| True if there is no alpha channel for this texture. More...
|
|
int | openGLBaseFormat |
| The OpenGL base format equivalent to this one (e.g., GL_RGB, GL_ALPHA). More...
|
|
int | openGLBitsPerPixel |
|
Amount of GPU memory per pixel on most graphics cards, for formats supported by OpenGL. More...
|
|
int | openGLDataFormat |
| The OpenGL bytes (type) format of the data buffer used with this texture format, e.g., GL_UNSIGNED_BYTE. More...
|
|
int | openGLFormat |
| The OpenGL format equivalent to this one, e.g, GL_RGB8 Zero if there is no equivalent. More...
|
|
int | redBits |
| Number of bits per pixel storage for red values; Zero for compressed textures and non-RGB. More...
|
|
int | stencilBits |
| Number of bits per pixel. More...
|
|
Information about common image formats.
Don't construct these; use the methods provided to access the const instances.
For most formats, the number indicates the number of bits per channel and a suffix of "F" indicates floating point (following OpenGL conventions). This does not hold for the YUV and DXT formats.
- See also
- G3D::Image, G3D::Texture, G3D::ImageConvert