[][src]Struct gstreamer_player::PlayerVideoInfo

pub struct PlayerVideoInfo(_, _);

PlayerStreamInfo specific to video streams.

Implements

PlayerStreamInfoExt, glib::object::ObjectExt

Implementations

impl PlayerVideoInfo[src]

pub fn get_bitrate(&self) -> i32[src]

Returns

the current bitrate of video in PlayerVideoInfo.

pub fn get_height(&self) -> i32[src]

Returns

the height of video in PlayerVideoInfo.

pub fn get_max_bitrate(&self) -> i32[src]

Returns

the maximum bitrate of video in PlayerVideoInfo.

pub fn get_width(&self) -> i32[src]

Returns

the width of video in PlayerVideoInfo.

impl PlayerVideoInfo[src]

pub fn get_framerate(&self) -> Fraction[src]

fps_n

Numerator of frame rate

fps_d

Denominator of frame rate

pub fn get_pixel_aspect_ratio(&self) -> Fraction[src]

Returns the pixel aspect ratio in par_n and par_d

par_n

numerator

par_d

denominator

Trait Implementations

impl Clone for PlayerVideoInfo[src]

impl Debug for PlayerVideoInfo[src]

impl Eq for PlayerVideoInfo[src]

impl Hash for PlayerVideoInfo[src]

impl IsA<PlayerStreamInfo> for PlayerVideoInfo[src]

impl Ord for PlayerVideoInfo[src]

impl<T: ObjectType> PartialEq<T> for PlayerVideoInfo[src]

impl<T: ObjectType> PartialOrd<T> for PlayerVideoInfo[src]

impl Send for PlayerVideoInfo[src]

impl StaticType for PlayerVideoInfo[src]

impl Sync for PlayerVideoInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for PlayerVideoInfo

impl Unpin for PlayerVideoInfo

impl UnwindSafe for PlayerVideoInfo

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

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

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 
[src]

impl<T> Cast for T where
    T: ObjectType
[src]

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

impl<O> GObjectExtManualGst for O where
    O: IsA<Object>, 
[src]

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

impl<T> ObjectExt for T where
    T: ObjectType
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

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.

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.