Struct nvidia_video_codec_sdk::safe::BitstreamLock
source · pub struct BitstreamLock<'a, 'b> { /* private fields */ }
Expand description
An RAII lock on the output bitstream buffer.
This type is created via Bitstream::lock
or Bitstream::try_lock
.
The purpose of this type is similar to std::sync::MutexGuard
-
it automatically unlocks the buffer then the lock goes out of scope.
Implementations§
source§impl BitstreamLock<'_, '_>
impl BitstreamLock<'_, '_>
sourcepub fn frame_index(&self) -> u32
pub fn frame_index(&self) -> u32
Getter for the frame index.
sourcepub fn picture_type(&self) -> NV_ENC_PIC_TYPE
pub fn picture_type(&self) -> NV_ENC_PIC_TYPE
Getter for the picture type.
Trait Implementations§
source§impl<'a, 'b> Debug for BitstreamLock<'a, 'b>
impl<'a, 'b> Debug for BitstreamLock<'a, 'b>
Auto Trait Implementations§
impl<'a, 'b> RefUnwindSafe for BitstreamLock<'a, 'b>
impl<'a, 'b> !Send for BitstreamLock<'a, 'b>
impl<'a, 'b> !Sync for BitstreamLock<'a, 'b>
impl<'a, 'b> Unpin for BitstreamLock<'a, 'b>
impl<'a, 'b> UnwindSafe for BitstreamLock<'a, 'b>
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