pub struct FrameFormat {
pub h26x_framing: Framing,
pub parameter_set_insertion: ParameterSetInsertion,
pub aac_framing: Framing,
}Expand description
Configuration options controlling how depacketized frames are formatted.
Supplied via SetupOptions::frame_format.
This controls codec-specific framing (e.g. H.26x NAL unit framing, AAC framing) and parameter set insertion. Each codec picks out the knobs relevant to it and ignores the rest.
Preset constants are provided for common use cases:
FrameFormat::MP4— suitable for writing ISO BMFF /.mp4files.FrameFormat::SIMPLE— self-describing output (Annex B + inline parameter sets for H.26x, ADTS for AAC), suitable for piping to a decoder without needing to handle extra data separately.
Fields§
§h26x_framing: FramingHow to frame H.26x NAL units.
parameter_set_insertion: ParameterSetInsertionWhen to insert parameter sets (SPS/PPS/VPS) into frame data.
aac_framing: FramingHow to frame AAC audio.
Implementations§
Source§impl FrameFormat
impl FrameFormat
Trait Implementations§
Source§impl Clone for FrameFormat
impl Clone for FrameFormat
Source§fn clone(&self) -> FrameFormat
fn clone(&self) -> FrameFormat
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 FrameFormat
Source§impl Debug for FrameFormat
impl Debug for FrameFormat
Source§impl Default for FrameFormat
impl Default for FrameFormat
Source§fn default() -> FrameFormat
fn default() -> FrameFormat
Returns the “default value” for a type. Read more
impl Eq for FrameFormat
Source§impl PartialEq for FrameFormat
impl PartialEq for FrameFormat
impl StructuralPartialEq for FrameFormat
Auto Trait Implementations§
impl Freeze for FrameFormat
impl RefUnwindSafe for FrameFormat
impl Send for FrameFormat
impl Sync for FrameFormat
impl Unpin for FrameFormat
impl UnsafeUnpin for FrameFormat
impl UnwindSafe for FrameFormat
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