pub enum SoundEncoding {
Raw,
Signed,
MuLaw,
ALaw,
}Expand description
/E encoding selector for AnnotationKind::Sound sample data
(ISO 32000-1 §13.3 Table 294). Table 294 lists four values; the
default is Self::Raw (unsigned in the range 0..=2^B − 1).
Variants§
Raw
/E /Raw — unsigned values in the range 0..=2^B − 1
(default per Table 294). The writer omits the /E entry on
this variant so a write-then-read cycle through the round-209
reader yields the same “absent → Raw” branch.
Signed
/E /Signed — two’s-complement signed values.
MuLaw
/E /muLaw — μ-law encoded samples (§13.3 portability
guidance pairs this with R=8000, C=1, B=8).
ALaw
/E /ALaw — A-law encoded samples.
Trait Implementations§
Source§impl Clone for SoundEncoding
impl Clone for SoundEncoding
Source§fn clone(&self) -> SoundEncoding
fn clone(&self) -> SoundEncoding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SoundEncoding
Source§impl Debug for SoundEncoding
impl Debug for SoundEncoding
Source§impl Default for SoundEncoding
impl Default for SoundEncoding
Source§fn default() -> SoundEncoding
fn default() -> SoundEncoding
Returns the “default value” for a type. Read more
impl Eq for SoundEncoding
Source§impl PartialEq for SoundEncoding
impl PartialEq for SoundEncoding
Source§fn eq(&self, other: &SoundEncoding) -> bool
fn eq(&self, other: &SoundEncoding) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SoundEncoding
Auto Trait Implementations§
impl Freeze for SoundEncoding
impl RefUnwindSafe for SoundEncoding
impl Send for SoundEncoding
impl Sync for SoundEncoding
impl Unpin for SoundEncoding
impl UnsafeUnpin for SoundEncoding
impl UnwindSafe for SoundEncoding
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