Helper to find custom attribute by name
| 11065 | |
| 11066 | // Helper to find custom attribute by name |
| 11067 | static 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 |
| 11080 | int EXRGetSpectrumType(const EXRHeader *exr_header) { |
no outgoing calls
no test coverage detected