MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / BitDepthToString

Function BitDepthToString

src/OpenColorIO/ParseUtils.cpp:171–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171const char * BitDepthToString(BitDepth bitDepth)
172{
173 if(bitDepth == BIT_DEPTH_UINT8) return "8ui";
174 else if(bitDepth == BIT_DEPTH_UINT10) return "10ui";
175 else if(bitDepth == BIT_DEPTH_UINT12) return "12ui";
176 else if(bitDepth == BIT_DEPTH_UINT14) return "14ui";
177 else if(bitDepth == BIT_DEPTH_UINT16) return "16ui";
178 else if(bitDepth == BIT_DEPTH_UINT32) return "32ui";
179 else if(bitDepth == BIT_DEPTH_F16) return "16f";
180 else if(bitDepth == BIT_DEPTH_F32) return "32f";
181 return "unknown";
182}
183
184BitDepth BitDepthFromString(const char * s)
185{

Callers 15

bitDepthToDtypeFunction · 0.85
bitDepthToBytesFunction · 0.85
GetBitDepthMaxValueFunction · 0.85
IsFloatBitDepthFunction · 0.85
GetChannelSizeInBytesFunction · 0.85
saveFunction · 0.85
ColorSpace.cppFile · 0.85
isRGBAPackedMethod · 0.85
finalizeMethod · 0.85
GetLutIdealSizeMethod · 0.85

Calls

no outgoing calls

Tested by 1

OCIO_ADD_TESTFunction · 0.68