Struct symphonia_core::sample::i24
source · pub struct i24(pub i32);
Expand description
A signed 24-bit integer sample with an internal signed 32-bit integer representation.
There are no guarantees the sample is within the valid range 24-bit range. Use the
Sample::clamped
function to clamp the sample to the valid range.
Tuple Fields§
§0: i32
Implementations§
Trait Implementations§
source§impl FromSample<f32> for i24
impl FromSample<f32> for i24
fn from_sample(s: f32) -> Self
source§impl FromSample<f64> for i24
impl FromSample<f64> for i24
fn from_sample(s: f64) -> Self
source§impl FromSample<i16> for i24
impl FromSample<i16> for i24
fn from_sample(s: i16) -> Self
source§impl FromSample<i24> for f32
impl FromSample<i24> for f32
fn from_sample(s: i24) -> Self
source§impl FromSample<i24> for f64
impl FromSample<i24> for f64
fn from_sample(s: i24) -> Self
source§impl FromSample<i24> for i16
impl FromSample<i24> for i16
fn from_sample(s: i24) -> Self
source§impl FromSample<i24> for i24
impl FromSample<i24> for i24
fn from_sample(s: i24) -> Self
source§impl FromSample<i24> for i32
impl FromSample<i24> for i32
fn from_sample(s: i24) -> Self
source§impl FromSample<i24> for i8
impl FromSample<i24> for i8
fn from_sample(s: i24) -> Self
source§impl FromSample<i24> for u16
impl FromSample<i24> for u16
fn from_sample(s: i24) -> Self
source§impl FromSample<i24> for u24
impl FromSample<i24> for u24
fn from_sample(s: i24) -> Self
source§impl FromSample<i24> for u32
impl FromSample<i24> for u32
fn from_sample(s: i24) -> Self
source§impl FromSample<i24> for u8
impl FromSample<i24> for u8
fn from_sample(s: i24) -> Self
source§impl FromSample<i32> for i24
impl FromSample<i32> for i24
fn from_sample(s: i32) -> Self
source§impl FromSample<i8> for i24
impl FromSample<i8> for i24
fn from_sample(s: i8) -> Self
source§impl FromSample<u16> for i24
impl FromSample<u16> for i24
fn from_sample(s: u16) -> Self
source§impl FromSample<u24> for i24
impl FromSample<u24> for i24
fn from_sample(s: u24) -> Self
source§impl FromSample<u32> for i24
impl FromSample<u32> for i24
fn from_sample(s: u32) -> Self
source§impl FromSample<u8> for i24
impl FromSample<u8> for i24
fn from_sample(s: u8) -> Self
source§impl MaybeDither<f32> for i24
impl MaybeDither<f32> for i24
source§impl MaybeDither<f64> for i24
impl MaybeDither<f64> for i24
source§impl MaybeDither<i16> for i24
impl MaybeDither<i16> for i24
source§impl MaybeDither<i24> for f32
impl MaybeDither<i24> for f32
source§impl MaybeDither<i24> for f64
impl MaybeDither<i24> for f64
source§impl MaybeDither<i24> for i16
impl MaybeDither<i24> for i16
source§impl MaybeDither<i24> for i24
impl MaybeDither<i24> for i24
source§impl MaybeDither<i24> for i32
impl MaybeDither<i24> for i32
source§impl MaybeDither<i24> for i8
impl MaybeDither<i24> for i8
source§impl MaybeDither<i24> for u16
impl MaybeDither<i24> for u16
source§impl MaybeDither<i24> for u24
impl MaybeDither<i24> for u24
source§impl MaybeDither<i24> for u32
impl MaybeDither<i24> for u32
source§impl MaybeDither<i24> for u8
impl MaybeDither<i24> for u8
source§impl MaybeDither<i32> for i24
impl MaybeDither<i32> for i24
source§impl MaybeDither<i8> for i24
impl MaybeDither<i8> for i24
source§impl MaybeDither<u16> for i24
impl MaybeDither<u16> for i24
source§impl MaybeDither<u24> for i24
impl MaybeDither<u24> for i24
source§impl MaybeDither<u32> for i24
impl MaybeDither<u32> for i24
source§impl MaybeDither<u8> for i24
impl MaybeDither<u8> for i24
source§impl Ord for i24
impl Ord for i24
source§impl PartialOrd for i24
impl PartialOrd for i24
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Sample for i24
impl Sample for i24
source§const FORMAT: SampleFormat = SampleFormat::S24
const FORMAT: SampleFormat = SampleFormat::S24
A unique enum value representing the sample format. This constant may be used to dynamically
choose how to process the sample at runtime.
source§const EFF_BITS: u32 = 24u32
const EFF_BITS: u32 = 24u32
The effective number of bits of the valid (clamped) sample range. Quantifies the dynamic
range of the sample format in bits.
impl Copy for i24
impl Eq for i24
impl StructuralPartialEq for i24
Auto Trait Implementations§
impl RefUnwindSafe for i24
impl Send for i24
impl Sync for i24
impl Unpin for i24
impl UnwindSafe for i24
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more