Struct gstreamer_video::VideoFormatInfo
source · [−]pub struct VideoFormatInfo(_);
Implementations
sourceimpl VideoFormatInfo
impl VideoFormatInfo
pub unsafe fn from_ptr(format_info: *const GstVideoFormatInfo) -> Self
pub fn from_format(format: VideoFormat) -> Self
pub fn format(&self) -> VideoFormat
pub fn name<'a>(&self) -> &'a str
pub fn description<'a>(&self) -> &'a str
pub fn flags(&self) -> VideoFormatFlags
pub fn bits(&self) -> u32
pub fn n_components(&self) -> u32
pub fn shift(&self) -> &[u32]
pub fn depth(&self) -> &[u32]
pub fn pixel_stride(&self) -> &[i32]
pub fn n_planes(&self) -> u32
pub fn plane(&self) -> &[u32]
pub fn poffset(&self) -> &[u32]
pub fn w_sub(&self) -> &[u32]
pub fn h_sub(&self) -> &[u32]
pub fn tile_mode(&self) -> VideoTileMode
pub fn tile_ws(&self) -> u32
pub fn tile_hs(&self) -> u32
pub fn unpack_format(&self) -> VideoFormat
pub fn pack_lines(&self) -> i32
pub fn has_alpha(&self) -> bool
pub fn has_palette(&self) -> bool
pub fn is_complex(&self) -> bool
pub fn is_gray(&self) -> bool
pub fn is_le(&self) -> bool
pub fn is_rgb(&self) -> bool
pub fn is_tiled(&self) -> bool
pub fn is_yuv(&self) -> bool
pub fn scale_width(&self, component: u8, width: u32) -> u32
pub fn scale_height(&self, component: u8, height: u32) -> u32
pub fn unpack(
&self,
flags: VideoPackFlags,
dest: &mut [u8],
src: &[&[u8]],
stride: &[i32],
x: i32,
y: i32,
width: i32
)
pub fn pack(
&self,
flags: VideoPackFlags,
src: &[u8],
src_stride: i32,
dest: &mut [&mut [u8]],
dest_stride: &[i32],
chroma_site: VideoChromaSite,
y: i32,
width: i32
)
pub fn range_offsets(&self, range: VideoColorRange) -> ([i32; 4], [i32; 4])
Trait Implementations
sourceimpl Clone for VideoFormatInfo
impl Clone for VideoFormatInfo
sourcefn clone(&self) -> VideoFormatInfo
fn clone(&self) -> VideoFormatInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for VideoFormatInfo
impl Debug for VideoFormatInfo
sourceimpl Display for VideoFormatInfo
impl Display for VideoFormatInfo
sourceimpl From<VideoFormat> for VideoFormatInfo
impl From<VideoFormat> for VideoFormatInfo
sourcefn from(f: VideoFormat) -> Self
fn from(f: VideoFormat) -> Self
Converts to this type from the input type.
sourceimpl FromStr for VideoFormatInfo
impl FromStr for VideoFormatInfo
sourceimpl Ord for VideoFormatInfo
impl Ord for VideoFormatInfo
sourceimpl PartialEq<VideoFormatInfo> for VideoFormatInfo
impl PartialEq<VideoFormatInfo> for VideoFormatInfo
sourceimpl PartialOrd<VideoFormatInfo> for VideoFormatInfo
impl PartialOrd<VideoFormatInfo> for VideoFormatInfo
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for VideoFormatInfo
impl Eq for VideoFormatInfo
impl Send for VideoFormatInfo
impl Sync for VideoFormatInfo
Auto Trait Implementations
impl RefUnwindSafe for VideoFormatInfo
impl Unpin for VideoFormatInfo
impl UnwindSafe for VideoFormatInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more