[−][src]Struct gstreamer_video::VideoFormatInfo
Information for a video format.
Methods
impl VideoFormatInfo
[src]
pub fn from_format(format: VideoFormat) -> VideoFormatInfo
[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
)
Trait Implementations
impl Debug for VideoFormatInfo
[src]
impl Display for VideoFormatInfo
[src]
impl Eq for VideoFormatInfo
[src]
impl From<VideoFormat> for VideoFormatInfo
[src]
fn from(f: VideoFormat) -> Self
[src]
impl FromStr for VideoFormatInfo
[src]
type Err = BoolError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, BoolError>
[src]
impl PartialEq<VideoFormatInfo> 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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,