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

Function FindCustomAttribute

Source/ThirdParty/tinyexr.h:11067–11077  ·  view source on GitHub ↗

Helper to find custom attribute by name

Source from the content-addressed store, hash-verified

11065
11066// Helper to find custom attribute by name
11067static const EXRAttribute* FindCustomAttribute(const EXRHeader *exr_header,
11068 const char *name) {
11069 if (!exr_header || !name) return NULL;
11070
11071 for (int i = 0; i < exr_header->num_custom_attributes; i++) {
11072 if (strcmp(exr_header->custom_attributes[i].name, name) == 0) {
11073 return &exr_header->custom_attributes[i];
11074 }
11075 }
11076 return NULL;
11077}
11078
11079// Get spectrum type from EXR header
11080int EXRGetSpectrumType(const EXRHeader *exr_header) {

Callers 4

EXRGetSpectrumTypeFunction · 0.85
EXRGetSpectralUnitsFunction · 0.85
IsSpectralEXRFunction · 0.85
IsSpectralEXRFromMemoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected