#[repr(C)]pub struct VideoFrame {
pub format: VideoFormat,
pub sub_format: VideoSubFormat,
pub width: u32,
pub height: u32,
pub data: [*const c_void; 3],
pub linesize: [usize; 3],
}
Expand description
A frame in a video stream.
Fields§
§format: VideoFormat
§sub_format: VideoSubFormat
§width: u32
§height: u32
§data: [*const c_void; 3]
If the subformat is SW, the data layout is determined according to the
format and the data corresponds to the plane of the corresponding
format, All other sub formats use data[0]
.
linesize: [usize; 3]
Trait Implementations§
Source§impl Debug for VideoFrame
impl Debug for VideoFrame
Source§impl Default for VideoFrame
impl Default for VideoFrame
impl Send for VideoFrame
impl Sync for VideoFrame
Auto Trait Implementations§
impl Freeze for VideoFrame
impl RefUnwindSafe for VideoFrame
impl Unpin for VideoFrame
impl UnwindSafe for VideoFrame
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