pub struct CUDA_RawVideoSource { /* private fields */ }Expand description
Interface for video demultiplexing. :
User can implement own demultiplexing by implementing this interface.
Trait Implementations§
Source§impl Boxed for CUDA_RawVideoSource
impl Boxed for CUDA_RawVideoSource
Source§unsafe fn from_raw(
ptr: <CUDA_RawVideoSource as OpenCVFromExtern>::ExternReceive,
) -> Self
unsafe fn from_raw( ptr: <CUDA_RawVideoSource as OpenCVFromExtern>::ExternReceive, ) -> Self
Wrap the specified raw pointer Read more
Source§fn into_raw(
self,
) -> <CUDA_RawVideoSource as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw( self, ) -> <CUDA_RawVideoSource as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
Source§fn as_raw(
&self,
) -> <CUDA_RawVideoSource as OpenCVTypeExternContainer>::ExternSend
fn as_raw( &self, ) -> <CUDA_RawVideoSource as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
Source§fn as_raw_mut(
&mut self,
) -> <CUDA_RawVideoSource as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut( &mut self, ) -> <CUDA_RawVideoSource as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
Source§impl CUDA_RawVideoSourceTrait for CUDA_RawVideoSource
impl CUDA_RawVideoSourceTrait for CUDA_RawVideoSource
fn as_raw_mut_CUDA_RawVideoSource(&mut self) -> *mut c_void
Source§unsafe fn get_next_packet(
&mut self,
data: *mut *mut u8,
size: &mut size_t,
) -> Result<bool>
unsafe fn get_next_packet( &mut self, data: *mut *mut u8, size: &mut size_t, ) -> Result<bool>
Returns next packet with RAW video frame. Read more
Source§fn update_format(&mut self, video_format: CUDA_FormatInfo) -> Result<()>
fn update_format(&mut self, video_format: CUDA_FormatInfo) -> Result<()>
Updates the coded width and height inside format.
Source§impl CUDA_RawVideoSourceTraitConst for CUDA_RawVideoSource
impl CUDA_RawVideoSourceTraitConst for CUDA_RawVideoSource
fn as_raw_CUDA_RawVideoSource(&self) -> *const c_void
Source§fn last_packet_contains_key_frame(&self) -> Result<bool>
fn last_packet_contains_key_frame(&self) -> Result<bool>
Returns true if the last packet contained a key frame.
Source§fn format(&self) -> Result<CUDA_FormatInfo>
fn format(&self) -> Result<CUDA_FormatInfo>
Returns information about video file format.
Source§fn get_extra_data(&self, extra_data: &mut impl MatTrait) -> Result<()>
fn get_extra_data(&self, extra_data: &mut impl MatTrait) -> Result<()>
Returns any extra data associated with the video source. Read more
Source§impl Debug for CUDA_RawVideoSource
impl Debug for CUDA_RawVideoSource
Source§impl Drop for CUDA_RawVideoSource
impl Drop for CUDA_RawVideoSource
impl Send for CUDA_RawVideoSource
Auto Trait Implementations§
impl Freeze for CUDA_RawVideoSource
impl RefUnwindSafe for CUDA_RawVideoSource
impl !Sync for CUDA_RawVideoSource
impl Unpin for CUDA_RawVideoSource
impl UnwindSafe for CUDA_RawVideoSource
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<Mat> ModifyInplace for Matwhere
Mat: Boxed,
impl<Mat> ModifyInplace for Matwhere
Mat: Boxed,
Source§unsafe fn modify_inplace<Res>(
&mut self,
f: impl FnOnce(&Mat, &mut Mat) -> Res,
) -> Res
unsafe fn modify_inplace<Res>( &mut self, f: impl FnOnce(&Mat, &mut Mat) -> Res, ) -> Res
Helper function to call OpenCV functions that allow in-place modification of a
Mat or another similar object. By passing
a mutable reference to the Mat to this function your closure will get called with the read reference and a write references
to the same Mat. This is unsafe in a general case as it leads to having non-exclusive mutable access to the internal data,
but it can be useful for some performance sensitive operations. One example of an OpenCV function that allows such in-place
modification is imgproc::threshold. Read more