MCPcopy Create free account
hub / github.com/bluescan/tacentview / GetMemSizeBytes

Method GetMemSizeBytes

Src/Image.cpp:944–952  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

942
943
944int Image::GetMemSizeBytes() const
945{
946 int numBytes = 0;
947 for (tPicture* pic = Pictures.First(); pic; pic = pic->Next())
948 numBytes += pic->GetNumPixels() * sizeof(tPixel4b);
949
950 numBytes += AltPicture.IsValid() ? AltPicture.GetNumPixels()*sizeof(tPixel4b) : 0;
951 return numBytes;
952}
953
954
955void Image::MultiSurfacePopulatePictures(const tBaseImage& img)

Callers

nothing calls this directly

Calls 1

IsValidMethod · 0.45

Tested by

no test coverage detected