pub struct AdtsHeader {
pub object_type: u8,
pub sample_rate: u32,
pub channels: u8,
pub frame_length: usize,
pub header_len: usize,
}Available on crate features
codec-aac and codec only.Expand description
A decoded ADTS frame header (7-byte fixed + variable header).
Fields§
§object_type: u8AAC audio object type (profile + 1; 2 = AAC-LC).
sample_rate: u32Sampling rate in Hz (resolved from the frequency index).
channels: u8Channel configuration (1 = mono, 2 = stereo, …).
frame_length: usizeTotal frame length including the header, in bytes.
header_len: usizeHeader length in bytes (7 without CRC, 9 with).
Trait Implementations§
Source§impl Clone for AdtsHeader
impl Clone for AdtsHeader
Source§fn clone(&self) -> AdtsHeader
fn clone(&self) -> AdtsHeader
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 AdtsHeader
Source§impl Debug for AdtsHeader
impl Debug for AdtsHeader
impl Eq for AdtsHeader
Source§impl PartialEq for AdtsHeader
impl PartialEq for AdtsHeader
Source§fn eq(&self, other: &AdtsHeader) -> bool
fn eq(&self, other: &AdtsHeader) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AdtsHeader
Auto Trait Implementations§
impl Freeze for AdtsHeader
impl RefUnwindSafe for AdtsHeader
impl Send for AdtsHeader
impl Sync for AdtsHeader
impl Unpin for AdtsHeader
impl UnsafeUnpin for AdtsHeader
impl UnwindSafe for AdtsHeader
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