Expand description
Module for pixel editing.
Structs
- Array component order, low byte -> high byte.
- Bitmap pixel order, high bit -> low bit.
- An RGBA color value (8-bits per channel).
- Packed component order, high bit -> low bit.
- Packed component order, high bit -> low bit.
- Info about a palette of colors.
- An SDL Pixel Format.
- An enumerated pixel format value.
- Pixel type.
Constants
- More alpha => more opaque.
- Transparent pixels are alpha = 0.
- Bitmap ordering from low to high.
- Bitmap ordering from high to low.
- No bitmap ordering.
- Android video texture format
- Planar mode: Y + U + V (3 planes)
- Planar mode: Y + U/V interleaved (2 planes)
- Planar mode: Y + V/U interleaved (2 planes)
- Packed mode: U0+Y0+V0+Y1 (1 plane)
- Packed mode: Y0+U0+Y1+V0 (1 plane)
- Planar mode: Y + V + U (3 planes)
- Packed mode: Y0+V0+Y1+U0 (1 plane)
- An unknown pixel type.
Functions
- Create an
SDL_PixelFormat
structure from a pixel format enum. - Create a palette structure with the specified number of color entries.
- Gets the bits per pixel.
- Gets the bytes per pixel.
- Calculate a 256 entry gamma ramp for a gamma value.
- Converts the pixel type parameters into a pixel format enumeration value.
- Converts a FourCC into a pixel format enumeration value.
- Free an
SDL_PixelFormat
structure. - Free a palette created with
SDL_AllocPalette
. - Get the human readable name of a pixel format
- Get the RGB components from a pixel of the specified format.
- Get the RGBA components from a pixel of the specified format.
- Does the pixel format have an alpha channel?
- Is this pixel format an array format?
- Is the pixel format a FourCC format?
- Is this pixel format an indexed format?
- Is this pixel format a packed format?
- Maps an RGB triple to an opaque pixel value for a given pixel format.
- Maps an RGBA quadruple to a pixel value for a given pixel format.
- Convert a bpp and RGBA masks to an enumerated pixel format.
- Gets the pixel flag bits.
- Gets the pixel layout bits.
- Gets the pixel order bits.
- Gets the pixel type bits.
- Convert one of the enumerated pixel formats to a bpp and RGBA masks.
- Set a range of colors in a palette.
- Set the palette for a pixel format structure.