Trait opencv::cudacodec::RawVideoSource
source · pub trait RawVideoSource: RawVideoSourceConst {
// Required method
fn as_raw_mut_RawVideoSource(&mut self) -> *mut c_void;
// Provided methods
fn get_next_packet(
&mut self,
data: &mut &mut u8,
size: &mut size_t
) -> Result<bool> { ... }
fn update_format(&mut self, video_format: FormatInfo) -> Result<()> { ... }
}
Expand description
Interface for video demultiplexing. :
User can implement own demultiplexing by implementing this interface.
Required Methods§
fn as_raw_mut_RawVideoSource(&mut self) -> *mut c_void
Provided Methods§
sourcefn get_next_packet(
&mut self,
data: &mut &mut u8,
size: &mut size_t
) -> Result<bool>
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.
sourcefn update_format(&mut self, video_format: FormatInfo) -> Result<()>
fn update_format(&mut self, video_format: FormatInfo) -> Result<()>
Updates the coded width and height inside format.