pub struct DtsDescriptor<'a> {
pub sample_rate_code: u8,
pub bit_rate_code: u8,
pub nblks: u8,
pub fsize: u16,
pub surround_mode: u8,
pub lfe_flag: bool,
pub extended_surround_flag: u8,
pub additional_info: &'a [u8],
}Expand description
DTS Descriptor.
Fields§
§sample_rate_code: u84-bit sample_rate_code (SFREQ, Table G.2).
bit_rate_code: u86-bit bit_rate_code (Table G.3).
nblks: u87-bit nblks (NBLKS; valid range 5..=127).
fsize: u1614-bit fsize (FSIZE; valid range 95..=8192).
surround_mode: u86-bit surround_mode (AMODE, Table G.4).
lfe_flag: bool1-bit lfe_flag (LFE channel on/off).
extended_surround_flag: u82-bit extended_surround_flag (Table G.5).
additional_info: &'a [u8]Trailing additional_info bytes (TS 101 154 §6.3).
Trait Implementations§
Source§impl<'a> Clone for DtsDescriptor<'a>
impl<'a> Clone for DtsDescriptor<'a>
Source§fn clone(&self) -> DtsDescriptor<'a>
fn clone(&self) -> DtsDescriptor<'a>
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 moreSource§impl<'a> Debug for DtsDescriptor<'a>
impl<'a> Debug for DtsDescriptor<'a>
Source§impl<'a> Descriptor<'a> for DtsDescriptor<'a>
impl<'a> Descriptor<'a> for DtsDescriptor<'a>
Source§impl<'a> DescriptorDef<'a> for DtsDescriptor<'a>
impl<'a> DescriptorDef<'a> for DtsDescriptor<'a>
impl<'a> Eq for DtsDescriptor<'a>
Source§impl<'a> From<DtsDescriptor<'a>> for AnyDescriptor<'a>
impl<'a> From<DtsDescriptor<'a>> for AnyDescriptor<'a>
Source§fn from(d: DtsDescriptor<'a>) -> Self
fn from(d: DtsDescriptor<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Parse<'a> for DtsDescriptor<'a>
impl<'a> Parse<'a> for DtsDescriptor<'a>
Source§impl<'a> PartialEq for DtsDescriptor<'a>
impl<'a> PartialEq for DtsDescriptor<'a>
Source§fn eq(&self, other: &DtsDescriptor<'a>) -> bool
fn eq(&self, other: &DtsDescriptor<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DtsDescriptor<'_>
impl Serialize for DtsDescriptor<'_>
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.Source§impl<'a> Serialize for DtsDescriptor<'a>
impl<'a> Serialize for DtsDescriptor<'a>
impl<'a> StructuralPartialEq for DtsDescriptor<'a>
Source§impl<'a> Yokeable<'a> for DtsDescriptor<'static>
impl<'a> Yokeable<'a> for DtsDescriptor<'static>
Source§type Output = DtsDescriptor<'a>
type Output = DtsDescriptor<'a>
This type MUST be
Self with the 'static replaced with 'a, i.e. Self<'a>Source§fn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
Auto Trait Implementations§
impl<'a> Freeze for DtsDescriptor<'a>
impl<'a> RefUnwindSafe for DtsDescriptor<'a>
impl<'a> Send for DtsDescriptor<'a>
impl<'a> Sync for DtsDescriptor<'a>
impl<'a> Unpin for DtsDescriptor<'a>
impl<'a> UnsafeUnpin for DtsDescriptor<'a>
impl<'a> UnwindSafe for DtsDescriptor<'a>
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