Struct gstreamer_video::VideoFormatInfo[][src]

pub struct VideoFormatInfo(_);

Information for a video format.

Implementations

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]

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]

pub fn range_offsets(&self, range: VideoColorRange) -> ([i32; 4], [i32; 4])[src]

Trait Implementations

impl Debug for VideoFormatInfo[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Display for VideoFormatInfo[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl From<VideoFormat> for VideoFormatInfo[src]

fn from(f: VideoFormat) -> Self[src]

Performs the conversion.

impl FromStr for VideoFormatInfo[src]

type Err = BoolError

The associated error which can be returned from parsing.

fn from_str(s: &str) -> Result<Self, Self::Err>[src]

Parses a string s to return a value of this type. Read more

impl Ord for VideoFormatInfo[src]

fn cmp(&self, other: &Self) -> Ordering[src]

This method returns an Ordering between self and other. Read more

#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]

Compares and returns the maximum of two values. Read more

#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]

Compares and returns the minimum of two values. Read more

#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]

Restrict a value to a certain interval. Read more

impl PartialEq<VideoFormatInfo> for VideoFormatInfo[src]

fn eq(&self, other: &Self) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialOrd<VideoFormatInfo> for VideoFormatInfo[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]

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]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests greater 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> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

pub default fn to_string(&self) -> String[src]

Converts the given value to a String. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.