pub trait RawVideoSourceConst {
    fn as_raw_RawVideoSource(&self) -> *const c_void;

    fn last_packet_contains_key_frame(&self) -> Result<bool> { ... }
    fn format(&self) -> Result<FormatInfo> { ... }
    fn get_extra_data(&self, extra_data: &mut Mat) -> Result<()> { ... }
    fn get(&self, property_id: i32, property_val: &mut f64) -> Result<bool> { ... }
}
Expand description

Interface for video demultiplexing. :

User can implement own demultiplexing by implementing this interface.

Required Methods

Provided Methods

Returns true if the last packet contained a key frame.

Returns information about video file format.

Returns any extra data associated with the video source.

Parameters
  • extraData: 1D cv::Mat containing the extra data if it exists.

Retrieves the specified property used by the VideoSource.

Parameters
  • propertyId: Property identifier from cv::VideoCaptureProperties (eg. cv::CAP_PROP_POS_MSEC, cv::CAP_PROP_POS_FRAMES, …) or one from @ref videoio_flags_others.
  • propertyVal: Value for the specified property.
Returns

true unless the property is unset set or not supported.

Implementors