Struct ffmpeg_sidecar::event::OutputVideoFrame
source · pub struct OutputVideoFrame {
pub width: u32,
pub height: u32,
pub pix_fmt: String,
pub output_index: u32,
pub data: Vec<u8>,
pub frame_num: u32,
pub timestamp: f32,
}Fields§
§width: u32The width of this video frame in pixels
height: u32The height of this video frame in pixels
pix_fmt: StringThe pixel format of the video frame, corresponding to the chosen
-pix_fmt FFmpeg parameter.
output_index: u32The index of the FFmpeg output stream that emitted this frame. In a typical case, there is only one output stream and this will be 0.
data: Vec<u8>Raw image frame data. The layout of the pixels in memory depends on
width, height, and pix_fmt.
frame_num: u32Index of current frame, starting at 0 and monotonically increasing by 1
timestamp: f32Output frame timestamp in seconds
Trait Implementations§
source§impl Clone for OutputVideoFrame
impl Clone for OutputVideoFrame
source§fn clone(&self) -> OutputVideoFrame
fn clone(&self) -> OutputVideoFrame
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 moresource§impl Debug for OutputVideoFrame
impl Debug for OutputVideoFrame
source§impl PartialEq for OutputVideoFrame
impl PartialEq for OutputVideoFrame
source§fn eq(&self, other: &OutputVideoFrame) -> bool
fn eq(&self, other: &OutputVideoFrame) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for OutputVideoFrame
Auto Trait Implementations§
impl RefUnwindSafe for OutputVideoFrame
impl Send for OutputVideoFrame
impl Sync for OutputVideoFrame
impl Unpin for OutputVideoFrame
impl UnwindSafe for OutputVideoFrame
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