Trait CUDA_RawVideoSourceTrait

Source
pub trait CUDA_RawVideoSourceTrait: CUDA_RawVideoSourceTraitConst {
    // Required method
    fn as_raw_mut_CUDA_RawVideoSource(&mut self) -> *mut c_void;

    // Provided methods
    unsafe fn get_next_packet(
        &mut self,
        data: *mut *mut u8,
        size: &mut size_t,
    ) -> Result<bool> { ... }
    fn update_format(&mut self, video_format: CUDA_FormatInfo) -> Result<()> { ... }
}
Expand description

Required Methods§

Provided Methods§

Source

unsafe fn get_next_packet( &mut self, data: *mut *mut u8, size: &mut size_t, ) -> Result<bool>

Returns next packet with RAW video frame.

§Parameters
  • data: Pointer to frame data.
  • size: Size in bytes of current frame.
Source

fn update_format(&mut self, video_format: CUDA_FormatInfo) -> Result<()>

Updates the coded width and height inside format.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§