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: u32
The width of this video frame in pixels
height: u32
The height of this video frame in pixels
pix_fmt: String
The pixel format of the video frame, corresponding to the chosen
-pix_fmt
FFmpeg parameter.
output_index: u32
The 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: u32
Index of current frame, starting at 0 and monotonically increasing by 1
timestamp: f32
Output 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
impl StructuralPartialEq for OutputVideoFrame
Auto Trait Implementations§
impl Freeze for OutputVideoFrame
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)