MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / EXRNumLevels

Function EXRNumLevels

Source/ThirdParty/tinyexr.h:10173–10180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10171}
10172
10173int EXRNumLevels(const EXRImage* exr_image) {
10174 if (exr_image == NULL) return 0;
10175 if(exr_image->images) return 1; // scanlines
10176 int levels = 1;
10177 const EXRImage* level_image = exr_image;
10178 while((level_image = level_image->next_level)) ++levels;
10179 return levels;
10180}
10181
10182int FreeEXRImage(EXRImage *exr_image) {
10183 if (exr_image == NULL) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected