Skip to main content

VideoFrame

Type Alias VideoFrame 

Source
pub type VideoFrame<S = Shared> = MediaFrame<Video, S>;
Expand description

A video frame. The default shared state allows reads and reference-counted cloning.

Aliased Type§

pub struct VideoFrame<S = Shared> { /* private fields */ }

Implementations§

Source§

impl<S> VideoFrame<S>

Source

pub fn stride(&self, plane: i32) -> isize

Source

pub fn plane(&self, plane: i32) -> *const u8

Source

pub fn get_video_format(&self) -> &VideoFormat

Source

pub fn get_type(&self) -> MediaType

Source

pub fn frame_width(&self, plane: i32) -> i32

Source

pub fn frame_height(&self, plane: i32) -> i32