pub struct HdmiAudioInfoframe {
pub coding_type: HdmiAudioCoding,
pub channel_count: u8,
pub sample_rate: HdmiSampleRate,
pub sample_size: HdmiSampleSize,
pub channel_allocation: HdmiChannelAllocation,
pub level_shift: u8,
pub downmix_inhibit: bool,
}Expand description
HDMI Audio InfoFrame packet (CEA-861)
Transmitted over HDMI to inform the sink (TV/receiver) about the audio stream format. The infoframe is 10 bytes of payload after the header.
Fields§
§coding_type: HdmiAudioCodingAudio coding type
channel_count: u8Channel count (actual count - 1, as stored in CEA)
sample_rate: HdmiSampleRateSample rate
sample_size: HdmiSampleSizeSample size (for PCM)
channel_allocation: HdmiChannelAllocationChannel allocation (speaker mapping)
level_shift: u8Level shift value (0-15, in 1 dB steps)
downmix_inhibit: boolDownmix inhibit flag
Trait Implementations§
Source§impl Clone for HdmiAudioInfoframe
impl Clone for HdmiAudioInfoframe
Source§fn clone(&self) -> HdmiAudioInfoframe
fn clone(&self) -> HdmiAudioInfoframe
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 HdmiAudioInfoframe
impl Debug for HdmiAudioInfoframe
Source§impl PartialEq for HdmiAudioInfoframe
impl PartialEq for HdmiAudioInfoframe
impl Eq for HdmiAudioInfoframe
impl StructuralPartialEq for HdmiAudioInfoframe
Auto Trait Implementations§
impl Freeze for HdmiAudioInfoframe
impl RefUnwindSafe for HdmiAudioInfoframe
impl Send for HdmiAudioInfoframe
impl Sync for HdmiAudioInfoframe
impl Unpin for HdmiAudioInfoframe
impl UnwindSafe for HdmiAudioInfoframe
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)