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

Function BitDepthToInt

src/OpenColorIO/ParseUtils.cpp:206–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206int BitDepthToInt(BitDepth bitDepth)
207{
208 if(bitDepth == BIT_DEPTH_UINT8) return 8;
209 else if(bitDepth == BIT_DEPTH_UINT10) return 10;
210 else if(bitDepth == BIT_DEPTH_UINT12) return 12;
211 else if(bitDepth == BIT_DEPTH_UINT14) return 14;
212 else if(bitDepth == BIT_DEPTH_UINT16) return 16;
213 else if(bitDepth == BIT_DEPTH_UINT32) return 32;
214
215 return 0;
216}
217
218const char * AllocationToString(Allocation alloc)
219{

Callers 2

OCIO_ADD_TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

OCIO_ADD_TESTFunction · 0.68