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 VideoCodecState<'_, Readable>
impl VideoCodecState<'_, 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 Clone for VideoCodecState<'_, Readable>
impl Clone for VideoCodecState<'_, 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 Send for VideoCodecState<'_, Readable>
impl Sync for VideoCodecState<'_, 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§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