pub struct VideoInfo(/* private fields */);

Implementations§

source§

impl VideoInfo

source

pub fn builder<'a>( format: VideoFormat, width: u32, height: u32 ) -> VideoInfoBuilder<'a>

source

pub fn is_valid(&self) -> bool

source

pub fn from_caps(caps: &CapsRef) -> Result<Self, BoolError>

source

pub fn to_caps(&self) -> Result<Caps, BoolError>

source

pub fn format(&self) -> VideoFormat

source

pub fn format_info(&self) -> VideoFormatInfo

source

pub fn name<'a>(&self) -> &'a str

source

pub fn width(&self) -> u32

source

pub fn height(&self) -> u32

source

pub fn field_height(&self) -> u32

Available on crate feature v1_16 only.
source

pub fn interlace_mode(&self) -> VideoInterlaceMode

source

pub fn flags(&self) -> VideoFlags

source

pub fn size(&self) -> usize

source

pub fn views(&self) -> u32

source

pub fn chroma_site(&self) -> VideoChromaSite

source

pub fn colorimetry(&self) -> VideoColorimetry

source

pub fn comp_depth(&self, component: u8) -> u32

source

pub fn comp_height(&self, component: u8) -> u32

source

pub fn comp_width(&self, component: u8) -> u32

source

pub fn comp_offset(&self, component: u8) -> usize

source

pub fn comp_plane(&self, component: u8) -> u32

source

pub fn comp_poffset(&self, component: u8) -> u32

source

pub fn comp_pstride(&self, component: u8) -> i32

source

pub fn comp_stride(&self, component: u8) -> i32

source

pub fn par(&self) -> Fraction

source

pub fn fps(&self) -> Fraction

source

pub fn field_rate(&self) -> Fraction

Available on crate feature v1_16 only.
source

pub fn offset(&self) -> &[usize]

source

pub fn stride(&self) -> &[i32]

source

pub fn multiview_mode(&self) -> VideoMultiviewMode

source

pub fn multiview_flags(&self) -> VideoMultiviewFlags

source

pub fn field_order(&self) -> VideoFieldOrder

source

pub fn has_alpha(&self) -> bool

source

pub fn is_gray(&self) -> bool

source

pub fn is_rgb(&self) -> bool

source

pub fn is_yuv(&self) -> bool

source

pub fn is_interlaced(&self) -> bool

source

pub fn n_planes(&self) -> u32

source

pub fn n_components(&self) -> u32

source

pub fn convert<U: SpecificFormattedValueFullRange>( &self, src_val: impl FormattedValue ) -> Option<U>

source

pub fn convert_generic( &self, src_val: impl FormattedValue, dest_fmt: Format ) -> Option<GenericFormattedValue>

source

pub fn align(&mut self, align: &mut VideoAlignment) -> Result<(), BoolError>

source

pub fn align_full( &mut self, align: &mut VideoAlignment ) -> Result<[usize; 4], BoolError>

Available on crate feature v1_18 only.
source

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

Trait Implementations§

source§

impl Clone for VideoInfo

source§

fn clone(&self) -> VideoInfo

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for VideoInfo

source§

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

Formats the value using the given formatter. Read more
source§

impl PartialEq for VideoInfo

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StaticType for VideoInfo

source§

fn static_type() -> Type

Returns the type identifier of Self.
source§

impl<'a> TryFrom<&'a VideoInfo> for VideoVBIEncoder

Available on crate feature v1_16 only.
§

type Error = VideoVBIError

The type returned in the event of a conversion error.
source§

fn try_from(info: &'a VideoInfo) -> Result<VideoVBIEncoder, VideoVBIError>

Performs the conversion.
source§

impl<'a> TryFrom<&'a VideoInfo> for VideoVBIParser

Available on crate feature v1_16 only.
§

type Error = VideoVBIError

The type returned in the event of a conversion error.
source§

fn try_from(info: &'a VideoInfo) -> Result<VideoVBIParser, VideoVBIError>

Performs the conversion.
source§

impl ValueType for VideoInfo

§

type Type = VideoInfo

Type to get the Type from. Read more
source§

impl Eq for VideoInfo

source§

impl Send for VideoInfo

source§

impl Sync for VideoInfo

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for T

source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for T

source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for T

source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for T

source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for T

source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for T

source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for T

source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for T

source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for T

source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for T

source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for T

source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for T

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoClosureReturnValue for T
where T: Into<Value>,

source§

impl<T> StaticTypeExt for T
where T: StaticType,

source§

fn ensure_type()

Ensures that the type has been registered with the type system.
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToSendValue for T
where T: Send + ToValue + ?Sized,

source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

impl<T> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

impl<'a, T, C, E> FromValueOptional<'a> for T
where T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static,