| 204 | } |
| 205 | |
| 206 | int 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 | |
| 218 | const char * AllocationToString(Allocation alloc) |
| 219 | { |
no outgoing calls