pub struct VideoCodecState<'a, T: VideoCodecStateContext<'a>> { /* private fields */ }
Expand description
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
VideoDecoderExtManual::set_output_state()
or
VideoEncoderExtManual::set_output_state()
methods.
Implementations§
source§impl<'a, T: VideoCodecStateContext<'a>> VideoCodecState<'a, T>
impl<'a, T: VideoCodecStateContext<'a>> VideoCodecState<'a, T>
pub fn info(&self) -> VideoInfo
pub fn caps(&self) -> Option<&CapsRef>
pub fn caps_owned(&self) -> Option<Caps>
pub fn codec_data(&self) -> Option<&BufferRef>
pub fn codec_data_owned(&self) -> Option<Buffer>
pub fn allocation_caps(&self) -> Option<&CapsRef>
pub fn allocation_caps_owned(&self) -> Option<Caps>
source§impl<'a> VideoCodecState<'a, InNegotiation<'a>>
impl<'a> VideoCodecState<'a, InNegotiation<'a>>
Trait Implementations§
source§impl<'a> Clone for VideoCodecState<'a, Readable>
impl<'a> Clone for VideoCodecState<'a, Readable>
source§impl<'a, T: VideoCodecStateContext<'a>> Debug for VideoCodecState<'a, T>
impl<'a, T: VideoCodecStateContext<'a>> Debug for VideoCodecState<'a, T>
source§impl<'a, T: VideoCodecStateContext<'a>> Drop for VideoCodecState<'a, T>
impl<'a, T: VideoCodecStateContext<'a>> Drop for VideoCodecState<'a, T>
impl<'a> Send for VideoCodecState<'a, Readable>
impl<'a> Sync for VideoCodecState<'a, Readable>
Auto Trait Implementations§
impl<'a, T> Freeze for VideoCodecState<'a, T>where
T: Freeze,
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: UnwindSafe + RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more