Struct AVPacketSideData
#[repr(C)]pub struct AVPacketSideData {
pub data: *mut u8,
pub size: usize,
pub type_: u32,
}
Expand description
This structure stores auxiliary information for decoding, presenting, or otherwise processing the coded stream. It is typically exported by demuxers and encoders and can be fed to decoders and muxers either in a per packet basis, or as global side data (applying to the entire coded stream).
Global side data is handled as follows:
- During demuxing, it may be exported through @ref AVStream.codecpar.side_data “AVStream’s codec parameters”, which can then be passed as input to decoders through the @ref AVCodecContext.coded_side_data “decoder context’s side data”, for initialization.
- For muxing, it can be fed through @ref AVStream.codecpar.side_data “AVStream’s codec parameters”, typically the output of encoders through the @ref AVCodecContext.coded_side_data “encoder context’s side data”, for initialization.
Packet specific side data is handled as follows:
- During demuxing, it may be exported through @ref AVPacket.side_data “AVPacket’s side data”, which can then be passed as input to decoders.
- For muxing, it can be fed through @ref AVPacket.side_data “AVPacket’s side data”, typically the output of encoders.
Different modules may accept or export different types of side data depending on media type and codec. Refer to @ref AVPacketSideDataType for a list of defined types and where they may be found or used.
Fields§
§data: *mut u8
§size: usize
§type_: u32
Trait Implementations§
§impl Clone for AVPacketSideData
impl Clone for AVPacketSideData
§fn clone(&self) -> AVPacketSideData
fn clone(&self) -> AVPacketSideData
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for AVPacketSideData
impl Debug for AVPacketSideData
impl Copy for AVPacketSideData
Auto Trait Implementations§
impl Freeze for AVPacketSideData
impl RefUnwindSafe for AVPacketSideData
impl !Send for AVPacketSideData
impl !Sync for AVPacketSideData
impl Unpin for AVPacketSideData
impl UnwindSafe for AVPacketSideData
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