|
| bool | canInterpretAs (const ImageFormat *otherFormat) const |
| | True if data in otherFormat is binary compatible.
|
| |
| 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).
|
| |
| bool | isIntegerFormat () const |
| |
| const std::string & | name () const |
| | Human readable name of this format.
|
| |
| bool | representableAsColor1unorm8 () const |
| | Does this contain exactly one unorm8 component?
|
| |
| bool | representableAsColor2unorm8 () const |
| | Does this contain exactly two unorm8 components?
|
| |
| bool | representableAsColor3unorm8 () const |
| | Does this contain exactly three unorm8 components?
|
| |
| bool | representableAsColor4unorm8 () const |
| | Does this contain exactly four unorm8 components?
|
| |
| bool | sameComponents (const ImageFormat *other) const |
| | Returns true if these formats have the same components (possibly in different NumberFormats or sizes)
|
| |
|
| 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.
|
| |
| 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.
|
| |
| 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.
|
| |
| static const ImageFormat * | depth (int depthBits=24) |
| | Returns DEPTH16, DEPTH24, or DEPTH32 according to the bits specified.
|
| |
| static const ImageFormat * | DEPTH16 () |
| |
| static const ImageFormat * | DEPTH24 () |
| |
| static const ImageFormat * | DEPTH24_STENCIL8 () |
| |
| static const ImageFormat * | DEPTH32 () |
| |
| static const ImageFormat * | DEPTH32F () |
| |
| static const ImageFormat * | fromCode (ImageFormat::Code code) |
| | Returns the matching ImageFormat* identified by the Code.
|
| |
| static const ImageFormat * | fromString (const std::string &s) |
| | Takes the same values that name() returns.
|
| |
| 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.
|
| |
| 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 * | R16F () |
| |
| static const ImageFormat * | R16I () |
| |
| static const ImageFormat * | R16UI () |
| |
| static const ImageFormat * | R32F () |
| |
| static const ImageFormat * | R8 () |
| |
| static const ImageFormat * | R8I () |
| |
| static const ImageFormat * | R8UI () |
| |
| static const ImageFormat * | RG16F () |
| |
| static const ImageFormat * | RG32F () |
| |
| static const ImageFormat * | RG8 () |
| |
| 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 * | RGBA32F () |
| |
| static const ImageFormat * | RGBA32I () |
| |
| static const ImageFormat * | RGBA32UI () |
| |
| 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.
|
| |
| 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.
|
| |
| BayerPattern | bayerPattern |
| | If this is a Bayer format, what is the pattern.
|
| |
| int | blueBits |
| | Number of bits per pixel storage for blue values; Zero for compressed textures and non-RGB.
|
| |
| Code | code |
| | Useful for serializing.
|
| |
| ColorSpace | colorSpace |
| |
| bool | compressed |
| |
| int | cpuBitsPerPixel |
| | Amount of CPU memory per pixel when packed into an array, discounting any end-of-row padding.
|
| |
| int | depthBits |
| | Number of depth bits (for depth textures; e.g.
|
| |
| bool | floatingPoint |
| | True if the bit depths specified are for float formats.
|
| |
| int | greenBits |
| | Number of bits per pixel storage for green values; Zero for compressed textures and non-RGB.
|
| |
| int | luminanceBits |
| |
| NumberFormat | numberFormat |
| | Indicates whether this format treats numbers as integers, floating point, or normalized fixed point.
|
| |
| int | numComponents |
| | Number of channels (1 for a depth texture).
|
| |
| bool | opaque |
| | True if there is no alpha channel for this texture.
|
| |
| int | openGLBaseFormat |
| | The OpenGL base format equivalent to this one (e.g., GL_RGB, GL_ALPHA).
|
| |
| int | openGLBitsPerPixel |
| | Amount of GPU memory per pixel on most graphics cards, for formats supported by OpenGL.
|
| |
| int | openGLDataFormat |
| | The OpenGL bytes (type) format of the data buffer used with this texture format, e.g., GL_UNSIGNED_BYTE.
|
| |
| int | openGLFormat |
| | The OpenGL format equivalent to this one, e.g, GL_RGB8 Zero if there is no equivalent.
|
| |
| int | redBits |
| | Number of bits per pixel storage for red values; Zero for compressed textures and non-RGB.
|
| |
| int | stencilBits |
| | Number of bits per pixel.
|
| |
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