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

Function ilGetFormatBpp

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

Returns the format of any bpp

Source from the content-addressed store, hash-verified

38
39// Returns the format of any bpp
40ILAPI ILenum ILAPIENTRY ilGetFormatBpp(ILubyte Bpp)
41{
42 switch (Bpp)
43 {
44 case 1:
45 return IL_LUMINANCE;
46 case 2:
47 return IL_LUMINANCE_ALPHA;
48 case 3:
49 return IL_RGB;
50 case 4:
51 return IL_RGBA;
52 }
53 return 0;
54}
55
56
57// Returns the bpc of any Type

Callers 4

iGetDicomHeadFunction · 0.85
ILAPIENTRY ilNewImageFunction · 0.85
iLoadPnmInternalFunction · 0.85
AllocImageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected