[][src]Struct gstreamer_video::video_codec_state::VideoCodecState

pub struct VideoCodecState<'a, T: VideoCodecStateContext<'a>> { /* fields omitted */ }

Structure representing the state of an incoming or outgoing video stream for encoders and decoders.

Decoders and encoders will receive such a state through their respective set_format vmethods.

Decoders and encoders can set the downstream state, by using the VideoDecoder::set_output_state() or VideoEncoder::set_output_state() methods.

Methods

impl<'a, T: VideoCodecStateContext<'a>> VideoCodecState<'a, T>[src]

pub fn get_info(&self) -> VideoInfo[src]

pub fn get_caps(&self) -> Option<&CapsRef>[src]

pub fn get_codec_data(&self) -> Option<&BufferRef>[src]

pub fn get_allocation_caps(&self) -> Option<&CapsRef>[src]

impl<'a> VideoCodecState<'a, InNegotiation<'a>>[src]

pub fn set_info(&mut self, info: VideoInfo)[src]

pub fn set_caps(&mut self, caps: &Caps)[src]

pub fn set_codec_data(&mut self, codec_data: &Buffer)[src]

pub fn set_allocation_caps(&mut self, allocation_caps: &Caps)[src]

Trait Implementations

impl<'a> Clone for VideoCodecState<'a, Readable>[src]

impl<'a, T: VideoCodecStateContext<'a>> Debug for VideoCodecState<'a, T>[src]

impl<'a, T: VideoCodecStateContext<'a>> Drop for VideoCodecState<'a, T>[src]

impl<'a> Send for VideoCodecState<'a, Readable>[src]

impl<'a> Sync for VideoCodecState<'a, Readable>[src]

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for VideoCodecState<'a, T> where
    T: RefUnwindSafe

impl<'a, T> !Send for VideoCodecState<'a, T>

impl<'a, T> !Sync for VideoCodecState<'a, T>

impl<'a, T> Unpin for VideoCodecState<'a, T> where
    T: Unpin

impl<'a, T> UnwindSafe for VideoCodecState<'a, T> where
    T: RefUnwindSafe + UnwindSafe

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<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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.