devela::_dep::symphonia::core::util

Module clamp

Available on crate feature dep_symphonia only.
Expand description

Utilities for clamping numeric values to a defined range.

Functionsยง

  • Clamps the given value to the [-1.0, 1.0] range.
  • Clamps the given value to the [-1.0, 1.0] range.
  • Clamps the given value to the [-128, 127] range.
  • Clamps the given value to the [-32_767, 32_768] range.
  • Clamps the given value to the [-8_388_608, 8_388_607] range.
  • Clamps the given value to the [-2_147_483_648, 2_147_483_647] range.
  • Clamps the given value to the [0, 255] range.
  • Clamps the given value to the [0, 65_535] range.
  • Clamps the given value to the [0, 16_777_215] range.
  • Clamps the given value to the [0, 4_294_967_295] range.