Trait Video Frame Ext
Source pub trait VideoFrameExt: IsVideoFrame {
Show 29 methods
// Provided methods
fn as_ptr(&self) -> *const GstVideoFrame { ... }
fn info(&self) -> &VideoInfo { ... }
fn flags(&self) -> VideoFrameFlags { ... }
fn id(&self) -> i32 { ... }
fn buffer(&self) -> &BufferRef { ... }
fn format(&self) -> VideoFormat { ... }
fn format_info(&self) -> VideoFormatInfo { ... }
fn width(&self) -> u32 { ... }
fn height(&self) -> u32 { ... }
fn size(&self) -> usize { ... }
fn is_interlaced(&self) -> bool { ... }
fn is_tff(&self) -> bool { ... }
fn is_rff(&self) -> bool { ... }
fn is_onefield(&self) -> bool { ... }
fn is_bottom_field(&self) -> bool { ... }
fn is_top_field(&self) -> bool { ... }
fn n_planes(&self) -> u32 { ... }
fn n_components(&self) -> u32 { ... }
fn plane_stride(&self) -> &[i32] { ... }
fn plane_offset(&self) -> &[usize] { ... }
fn plane_height(&self, plane: u32) -> u32 { ... }
fn comp_depth(&self, component: u32) -> u32 { ... }
fn comp_height(&self, component: u32) -> u32 { ... }
fn comp_width(&self, component: u32) -> u32 { ... }
fn comp_offset(&self, component: u32) -> usize { ... }
fn comp_poffset(&self, component: u32) -> u32 { ... }
fn comp_pstride(&self, component: u32) -> i32 { ... }
fn comp_stride(&self, component: u32) -> i32 { ... }
fn comp_plane(&self, component: u32) -> u32 { ... }
}Provided Methods§
fn as_ptr(&self) -> *const GstVideoFrame
fn info(&self) -> &VideoInfo
fn flags(&self) -> VideoFrameFlags
fn id(&self) -> i32
fn buffer(&self) -> &BufferRef
fn format(&self) -> VideoFormat
fn format_info(&self) -> VideoFormatInfo
fn width(&self) -> u32
fn height(&self) -> u32
fn size(&self) -> usize
fn is_interlaced(&self) -> bool
fn is_tff(&self) -> bool
fn is_rff(&self) -> bool
fn is_onefield(&self) -> bool
fn is_bottom_field(&self) -> bool
fn is_top_field(&self) -> bool
fn n_planes(&self) -> u32
fn n_components(&self) -> u32
fn plane_stride(&self) -> &[i32]
fn plane_offset(&self) -> &[usize]
fn plane_height(&self, plane: u32) -> u32
fn comp_depth(&self, component: u32) -> u32
fn comp_height(&self, component: u32) -> u32
fn comp_width(&self, component: u32) -> u32
fn comp_offset(&self, component: u32) -> usize
fn comp_poffset(&self, component: u32) -> u32
fn comp_pstride(&self, component: u32) -> i32
fn comp_stride(&self, component: u32) -> i32
fn comp_plane(&self, component: u32) -> u32
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".