pub struct VideoCodecState<'a, T: VideoCodecStateContext<'a>> {
state: *mut GstVideoCodecState,
pub(crate) context: T,
phantom: PhantomData<&'a T>,
}
Fields§
§state: *mut GstVideoCodecState
§context: T
§phantom: PhantomData<&'a T>
Implementations§
source§impl<'a> VideoCodecState<'a, Readable>
impl<'a> VideoCodecState<'a, Readable>
pub(crate) unsafe fn new(state: *mut GstVideoCodecState) -> Self
source§impl<'a> VideoCodecState<'a, InNegotiation<'a>>
impl<'a> VideoCodecState<'a, InNegotiation<'a>>
pub(crate) unsafe fn new<T: HasStreamLock>( state: *mut GstVideoCodecState, element: &'a T, ) -> Self
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