Struct gstreamer_video::VideoFormatInfo [−][src]
pub struct VideoFormatInfo(_);
Information for a video format.
Implementations
impl VideoFormatInfo
[src]
impl VideoFormatInfo
[src]pub fn from_format(format: VideoFormat) -> Self
[src]
pub fn format(&self) -> VideoFormat
[src]
pub fn name<'a>(&self) -> &'a str
[src]
pub fn description<'a>(&self) -> &'a str
[src]
pub fn flags(&self) -> VideoFormatFlags
[src]
pub fn bits(&self) -> u32
[src]
pub fn n_components(&self) -> u32
[src]
pub fn shift(&self) -> &[u32]
[src]
pub fn depth(&self) -> &[u32]
[src]
pub fn pixel_stride(&self) -> &[i32]
[src]
pub fn n_planes(&self) -> u32
[src]
pub fn plane(&self) -> &[u32]
[src]
pub fn poffset(&self) -> &[u32]
[src]
pub fn w_sub(&self) -> &[u32]
[src]
pub fn h_sub(&self) -> &[u32]
[src]
pub fn tile_mode(&self) -> VideoTileMode
[src]
pub fn tile_ws(&self) -> u32
[src]
pub fn tile_hs(&self) -> u32
[src]
pub fn unpack_format(&self) -> VideoFormat
[src]
pub fn pack_lines(&self) -> i32
[src]
pub fn has_alpha(&self) -> bool
[src]
pub fn has_palette(&self) -> bool
[src]
pub fn is_complex(&self) -> bool
[src]
pub fn is_gray(&self) -> bool
[src]
pub fn is_le(&self) -> bool
[src]
pub fn is_rgb(&self) -> bool
[src]
pub fn is_tiled(&self) -> bool
[src]
pub fn is_yuv(&self) -> bool
[src]
pub fn scale_width(&self, component: u8, width: u32) -> u32
[src]
pub fn scale_height(&self, component: u8, height: u32) -> u32
[src]
pub fn unpack(
&self,
flags: VideoPackFlags,
dest: &mut [u8],
src: &[&[u8]],
stride: &[i32],
x: i32,
y: i32,
width: i32
)
[src]
&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
)
[src]
&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])
[src]
Trait Implementations
impl Debug for VideoFormatInfo
[src]
impl Debug for VideoFormatInfo
[src]impl Display for VideoFormatInfo
[src]
impl Display for VideoFormatInfo
[src]impl From<VideoFormat> for VideoFormatInfo
[src]
impl From<VideoFormat> for VideoFormatInfo
[src]fn from(f: VideoFormat) -> Self
[src]
fn from(f: VideoFormat) -> Self
[src]Performs the conversion.
impl FromStr for VideoFormatInfo
[src]
impl FromStr for VideoFormatInfo
[src]impl Ord for VideoFormatInfo
[src]
impl Ord for VideoFormatInfo
[src]impl PartialEq<VideoFormatInfo> for VideoFormatInfo
[src]
impl PartialEq<VideoFormatInfo> for VideoFormatInfo
[src]impl PartialOrd<VideoFormatInfo> for VideoFormatInfo
[src]
impl PartialOrd<VideoFormatInfo> for VideoFormatInfo
[src]fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for VideoFormatInfo
[src]
impl Send for VideoFormatInfo
[src]
impl Sync for VideoFormatInfo
[src]
Auto Trait Implementations
impl RefUnwindSafe for VideoFormatInfo
impl Unpin for VideoFormatInfo
impl UnwindSafe for VideoFormatInfo
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more