MCPcopy Create free account
hub / github.com/DentonW/DevIL / ilGetBppFormat

Function ilGetBppFormat

DevIL/src-IL/src/il_utility.cpp:18–36  ·  view source on GitHub ↗

Returns the bpp of any Format

Source from the content-addressed store, hash-verified

16
17// Returns the bpp of any Format
18ILAPI ILubyte ILAPIENTRY ilGetBppFormat(ILenum Format)
19{
20 switch (Format)
21 {
22 case IL_COLOUR_INDEX:
23 case IL_LUMINANCE:
24 case IL_ALPHA:
25 return 1;
26 case IL_LUMINANCE_ALPHA:
27 return 2;
28 case IL_RGB:
29 case IL_BGR:
30 return 3;
31 case IL_RGBA:
32 case IL_BGRA:
33 return 4;
34 }
35 return 0;
36}
37
38
39// Returns the format of any bpp

Callers 8

iConvertPaletteFunction · 0.85
ILAPIENTRY iConvertImageFunction · 0.85
ILAPIENTRY ilCopyPixelsFunction · 0.85
ILAPIENTRY ilSetPixelsFunction · 0.85
iCheckDicomFunction · 0.85
iLoadDicomInternalFunction · 0.85
ILAPIENTRY ilApplyPalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected