[][src]Trait opencv::hub_prelude::RawVideoSource

pub trait RawVideoSource {
    pub fn as_raw_RawVideoSource(&self) -> *const c_void;
pub fn as_raw_mut_RawVideoSource(&mut self) -> *mut c_void; pub fn get_next_packet(
        &mut self,
        data: &mut &mut u8,
        size: &mut size_t
    ) -> Result<bool> { ... }
pub fn format(&self) -> Result<FormatInfo> { ... } }

Interface for video demultiplexing. :

User can implement own demultiplexing by implementing this interface.

Required methods

Loading content...

Provided methods

pub fn get_next_packet(
    &mut self,
    data: &mut &mut u8,
    size: &mut size_t
) -> Result<bool>
[src]

Returns next packet with RAW video frame.

Parameters

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

pub fn format(&self) -> Result<FormatInfo>[src]

Returns information about video file format.

Loading content...

Implementors

Loading content...