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

Function EXRGetStokesComponent

Source/ThirdParty/tinyexr.h:11035–11045  ·  view source on GitHub ↗

Get Stokes component from channel name

Source from the content-addressed store, hash-verified

11033
11034// Get Stokes component from channel name
11035int EXRGetStokesComponent(const char *channel_name) {
11036 if (!channel_name) return -1;
11037
11038 if (channel_name[0] == 'S' &&
11039 channel_name[1] >= '0' && channel_name[1] <= '3' &&
11040 channel_name[2] == '.') {
11041 return channel_name[1] - '0';
11042 }
11043
11044 return -1;
11045}
11046
11047// Check if channel name is a spectral channel
11048int EXRIsSpectralChannel(const char *channel_name) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected