pub const VALID_BITS_PER_SAMPLE: [u32; 8];Expand description
Sample widths /BitsPerSample may take (§7.10.2 Table 39).
“Valid values shall be 1, 2, 4, 8, 12, 16, 24, and 32.” Note what is
not in the list: 3, 5, 6, 10, 64. The set is closed, so
FunctionError::BadBitsPerSample is a refusal with spec backing rather
than an implementation gap.