pub struct SideDataEntry { /* private fields */ }Expand description
Raw side-data entry carrying the FFmpeg type id and the unparsed
byte buffer. Type ids correspond to FFmpeg’s
AV_FRAME_DATA_* / AV_PKT_DATA_* constants — see
libavutil/frame.h and libavcodec/packet.h.
The payload is an FfmpegBytes — see the module docs for the
reason it is not a Vec<u8>.
Implementations§
Source§impl SideDataEntry
impl SideDataEntry
Sourcepub const fn new(kind: i32, data: FfmpegBytes) -> Self
pub const fn new(kind: i32, data: FfmpegBytes) -> Self
Constructs a SideDataEntry.
Sourcepub const fn data_ref(&self) -> &FfmpegBytes
pub const fn data_ref(&self) -> &FfmpegBytes
The payload’s carrier, for a consumer that wants to keep the bytes without copying them again.
Sourcepub fn with_data(self, value: FfmpegBytes) -> Self
pub fn with_data(self, value: FfmpegBytes) -> Self
Sets the payload (consuming builder).
Sourcepub fn set_data(&mut self, value: FfmpegBytes) -> &mut Self
pub fn set_data(&mut self, value: FfmpegBytes) -> &mut Self
Sets the payload in place.
Trait Implementations§
Source§impl Clone for SideDataEntry
impl Clone for SideDataEntry
Source§fn clone(&self) -> SideDataEntry
fn clone(&self) -> SideDataEntry
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 moreAuto Trait Implementations§
impl Freeze for SideDataEntry
impl RefUnwindSafe for SideDataEntry
impl Send for SideDataEntry
impl Sync for SideDataEntry
impl Unpin for SideDataEntry
impl UnsafeUnpin for SideDataEntry
impl UnwindSafe for SideDataEntry
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