MCPcopy Create free account
hub / github.com/ddnet/ddnet / PixelSize

Method PixelSize

src/engine/gfx/image.cpp:32–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32size_t CImageInfo::PixelSize(EImageFormat Format)
33{
34 dbg_assert(Format != FORMAT_UNDEFINED, "Format undefined");
35 static const size_t s_aSizes[] = {3, 4, 1, 2};
36 return s_aSizes[(int)Format];
37}
38
39const char *CImageInfo::FormatName(EImageFormat Format)
40{

Callers 6

UploadEntityLayerTextMethod · 0.45
ConvertToGrayscaleFunction · 0.45
ResizeImageFunction · 0.45
CopyRectFromMethod · 0.45
SavePngMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected