pub struct VideoPacketExtra { /* private fields */ }Expand description
Per-VideoPacket extras.
Implementations§
Source§impl VideoPacketExtra
impl VideoPacketExtra
Sourcepub const fn new(stream_index: i32) -> Self
pub const fn new(stream_index: i32) -> Self
Constructs a VideoPacketExtra with the given stream index.
byte_pos defaults to None and side_data to empty.
Sourcepub const fn stream_index(&self) -> i32
pub const fn stream_index(&self) -> i32
Returns the source AVStream.index.
Sourcepub const fn byte_pos(&self) -> Option<i64>
pub const fn byte_pos(&self) -> Option<i64>
Returns the byte position of the packet in the input file, or
None if unknown.
Sourcepub fn side_data(&self) -> &[SideDataEntry]
pub fn side_data(&self) -> &[SideDataEntry]
Returns the raw side-data entries from AVPacket.side_data.
Sourcepub const fn with_stream_index(self, value: i32) -> Self
pub const fn with_stream_index(self, value: i32) -> Self
Sets the stream index (consuming builder).
Sourcepub const fn with_byte_pos(self, value: Option<i64>) -> Self
pub const fn with_byte_pos(self, value: Option<i64>) -> Self
Sets the byte position (consuming builder).
Sourcepub fn with_side_data(self, value: Vec<SideDataEntry>) -> Self
pub fn with_side_data(self, value: Vec<SideDataEntry>) -> Self
Sets the side-data list (consuming builder).
Sourcepub const fn set_stream_index(&mut self, value: i32) -> &mut Self
pub const fn set_stream_index(&mut self, value: i32) -> &mut Self
Sets the stream index in place.
Sourcepub const fn set_byte_pos(&mut self, value: Option<i64>) -> &mut Self
pub const fn set_byte_pos(&mut self, value: Option<i64>) -> &mut Self
Sets the byte position in place.
Sourcepub fn set_side_data(&mut self, value: Vec<SideDataEntry>) -> &mut Self
pub fn set_side_data(&mut self, value: Vec<SideDataEntry>) -> &mut Self
Sets the side-data list in place.
Trait Implementations§
Source§impl Clone for VideoPacketExtra
impl Clone for VideoPacketExtra
Source§fn clone(&self) -> VideoPacketExtra
fn clone(&self) -> VideoPacketExtra
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 moreSource§impl Debug for VideoPacketExtra
impl Debug for VideoPacketExtra
Source§impl Default for VideoPacketExtra
impl Default for VideoPacketExtra
Source§fn default() -> VideoPacketExtra
fn default() -> VideoPacketExtra
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VideoPacketExtra
impl RefUnwindSafe for VideoPacketExtra
impl Send for VideoPacketExtra
impl Sync for VideoPacketExtra
impl Unpin for VideoPacketExtra
impl UnsafeUnpin for VideoPacketExtra
impl UnwindSafe for VideoPacketExtra
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