Pixel utility functions. More...
#include <pixel_format.h>
Static Public Member Functions | |
Statics | |
| static int | get_mask_shift (unsigned int mask) |
| Returns the shift of a color mask. | |
| static int | get_mask_bits (unsigned int mask) |
| Returns the bit count of a color mask. | |
| static unsigned int | get_bitmask (int bits, int shift) |
| Returns the color mask based on bit count and shift. | |
Pixel utility functions.
| static unsigned int CL_PixelFormat::get_bitmask | ( | int | bits, | |
| int | shift | |||
| ) | [static] |
Returns the color mask based on bit count and shift.
| static int CL_PixelFormat::get_mask_bits | ( | unsigned int | mask | ) | [static] |
Returns the bit count of a color mask.
| static int CL_PixelFormat::get_mask_shift | ( | unsigned int | mask | ) | [static] |
Returns the shift of a color mask.
1.7.1