MCPcopy Create free account
hub / github.com/OpenPathGuidingLibrary/openpgl / EXRNumLevels

Function EXRNumLevels

third-party/tinyexr/tinyexr.h:8567–8574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8565}
8566
8567int EXRNumLevels(const EXRImage* exr_image) {
8568 if (exr_image == NULL) return 0;
8569 if(exr_image->images) return 1; // scanlines
8570 int levels = 1;
8571 const EXRImage* level_image = exr_image;
8572 while((level_image = level_image->next_level)) ++levels;
8573 return levels;
8574}
8575
8576int FreeEXRImage(EXRImage *exr_image) {
8577 if (exr_image == NULL) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected