#[non_exhaustive]pub struct FrameMeta {
pub layout: Layout,
pub core_rate: u32,
pub output_rate: u32,
pub channels: [Option<Channel>; 8],
}Expand description
Copy metadata for one decoded frame or a finished stream.
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.layout: Layout§core_rate: u32AAC core rate (before SBR upsample). 0 if nothing was decoded.
output_rate: u32Presentation rate (2× core for HE). Matches super::Frame::sample_rate.
channels: [Option<Channel>; 8]Per-plane labels; unused slots are None.
Implementations§
Source§impl FrameMeta
impl FrameMeta
pub const EMPTY: Self
pub fn from_labels( layout: Layout, core_rate: u32, output_rate: u32, labels: &[Channel], ) -> Self
pub fn speech_mono(core_rate: u32, output_rate: u32) -> Self
Trait Implementations§
impl Copy for FrameMeta
impl Eq for FrameMeta
impl StructuralPartialEq for FrameMeta
Auto Trait Implementations§
impl Freeze for FrameMeta
impl RefUnwindSafe for FrameMeta
impl Send for FrameMeta
impl Sync for FrameMeta
impl Unpin for FrameMeta
impl UnsafeUnpin for FrameMeta
impl UnwindSafe for FrameMeta
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