| 335 | } |
| 336 | |
| 337 | inline constexpr BitDepth getIntegerBitDepth (uint16_t numBits) |
| 338 | { |
| 339 | switch (numBits) |
| 340 | { |
| 341 | case 8: return BitDepth::int8; |
| 342 | case 16: return BitDepth::int16; |
| 343 | case 24: return BitDepth::int24; |
| 344 | case 32: return BitDepth::int32; |
| 345 | default: return BitDepth::unknown; |
| 346 | } |
| 347 | } |
| 348 | |
| 349 | inline constexpr BitDepth getFloatBitDepth (uint16_t numBits) |
| 350 | { |
no outgoing calls
no test coverage detected