Trait opencv::cudacodec::RawVideoSource[][src]

pub trait RawVideoSource: RawVideoSourceConst {
    fn as_raw_mut_RawVideoSource(&mut self) -> *mut c_void;

    fn get_next_packet(
        &mut self,
        data: &mut &mut u8,
        size: &mut size_t
    ) -> Result<bool> { ... }
fn update_format(
        &mut self,
        coded_width: i32,
        coded_height: i32
    ) -> Result<()> { ... } }

Required methods

Provided methods

Returns next packet with RAW video frame.

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

Updates the coded width and height inside format.

Implementors