| 300 | //============================================================================== |
| 301 | |
| 302 | inline std::string_view getBitDepthDescription (BitDepth b) |
| 303 | { |
| 304 | switch (b) |
| 305 | { |
| 306 | case BitDepth::int8: return "8-bit int"; |
| 307 | case BitDepth::int16: return "16-bit int"; |
| 308 | case BitDepth::int24: return "24-bit int"; |
| 309 | case BitDepth::int32: return "32-bit int"; |
| 310 | case BitDepth::float32: return "32-bit float"; |
| 311 | case BitDepth::float64: return "64-bit float"; |
| 312 | case BitDepth::unknown: |
| 313 | default: return "unknown"; |
| 314 | } |
| 315 | } |
| 316 | |
| 317 | inline constexpr bool isFloat (BitDepth b) |
| 318 | { |