#[non_exhaustive]pub struct Ac3ComponentType {
pub enhanced_ac3: bool,
pub full_service: bool,
pub service_type: Ac3ServiceType,
pub channels: Ac3ChannelMode,
}Expand description
Decoded AC-3 component_type — ETSI EN 300 468 Annex D Table D.1.
The component_type byte packs bit-fields describing the audio service type, number of channels, and whether the stream is AC-3 or Enhanced AC-3:
[7]— Enhanced AC-3 flag (Table D.2)[6]— Full service flag (Table D.3)[5:3]— Service type flags (Table D.4)[2:0]— Number of channels flags (Table D.5)
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.enhanced_ac3: boolfalse = AC-3, true = Enhanced AC-3 ([7]).
full_service: booltrue if this is a full service (suitable for solo presentation) ([6]).
service_type: Ac3ServiceTypeDecoded service type ([5:3]).
channels: Ac3ChannelModeNumber of audio channels ([2:0]).
Implementations§
Trait Implementations§
Source§impl Clone for Ac3ComponentType
impl Clone for Ac3ComponentType
Source§fn clone(&self) -> Ac3ComponentType
fn clone(&self) -> Ac3ComponentType
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 Ac3ComponentType
Source§impl Debug for Ac3ComponentType
impl Debug for Ac3ComponentType
impl Eq for Ac3ComponentType
Source§impl PartialEq for Ac3ComponentType
impl PartialEq for Ac3ComponentType
Source§fn eq(&self, other: &Ac3ComponentType) -> bool
fn eq(&self, other: &Ac3ComponentType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Ac3ComponentType
impl Serialize for Ac3ComponentType
impl StructuralPartialEq for Ac3ComponentType
Auto Trait Implementations§
impl Freeze for Ac3ComponentType
impl RefUnwindSafe for Ac3ComponentType
impl Send for Ac3ComponentType
impl Sync for Ac3ComponentType
impl Unpin for Ac3ComponentType
impl UnsafeUnpin for Ac3ComponentType
impl UnwindSafe for Ac3ComponentType
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