pub struct ShortAudioDescriptor {
pub format_code: u8,
pub max_channels: u8,
pub sample_rate_mask: u8,
pub detail: u8,
}Expand description
CEA Short Audio Descriptor (SAD)
3-byte structure from CEA-861-D defining audio format support.
Fields§
§format_code: u8Audio format code (matches HdmiAudioCoding values)
max_channels: u8Maximum number of channels supported
sample_rate_mask: u8Supported sample rate bitmask: bit 0: 32 kHz, bit 1: 44.1 kHz, bit 2: 48 kHz, bit 3: 88.2 kHz, bit 4: 96 kHz, bit 5: 176.4 kHz, bit 6: 192 kHz
detail: u8For PCM: bit depth mask (bit 0: 16-bit, bit 1: 20-bit, bit 2: 24-bit) For compressed: max bitrate / 8000
Trait Implementations§
Source§impl Clone for ShortAudioDescriptor
impl Clone for ShortAudioDescriptor
Source§fn clone(&self) -> ShortAudioDescriptor
fn clone(&self) -> ShortAudioDescriptor
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShortAudioDescriptor
impl Debug for ShortAudioDescriptor
Source§impl PartialEq for ShortAudioDescriptor
impl PartialEq for ShortAudioDescriptor
impl Copy for ShortAudioDescriptor
impl Eq for ShortAudioDescriptor
impl StructuralPartialEq for ShortAudioDescriptor
Auto Trait Implementations§
impl Freeze for ShortAudioDescriptor
impl RefUnwindSafe for ShortAudioDescriptor
impl Send for ShortAudioDescriptor
impl Sync for ShortAudioDescriptor
impl Unpin for ShortAudioDescriptor
impl UnwindSafe for ShortAudioDescriptor
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)