OpenCV
4.7.0
Open Source Computer Vision
|
Interface for video demultiplexing. : More...
#include <opencv2/cudacodec.hpp>
Public Member Functions | |
virtual | ~RawVideoSource () |
virtual FormatInfo | format () const =0 |
Returns information about video file format. More... | |
virtual bool | get (const int propertyId, double &propertyVal) const =0 |
Retrieves the specified property used by the VideoSource. More... | |
virtual void | getExtraData (cv::Mat &extraData) const =0 |
Returns any extra data associated with the video source. More... | |
virtual bool | getNextPacket (unsigned char **data, size_t *size)=0 |
Returns next packet with RAW video frame. More... | |
virtual bool | lastPacketContainsKeyFrame () const |
Returns true if the last packet contained a key frame. More... | |
virtual void | updateFormat (const FormatInfo &videoFormat)=0 |
Updates the coded width and height inside format. More... | |
Interface for video demultiplexing. :
User can implement own demultiplexing by implementing this interface.
|
inlinevirtual |
|
pure virtual |
Returns information about video file format.
|
pure virtual |
Retrieves the specified property used by the VideoSource.
propertyId | Property identifier from cv::VideoCaptureProperties (eg. cv::CAP_PROP_POS_MSEC, cv::CAP_PROP_POS_FRAMES, ...) or one from Additional flags for video I/O API backends. |
propertyVal | Value for the specified property. |
true
unless the property is unset set or not supported.
|
pure virtual |
Returns any extra data associated with the video source.
extraData | 1D cv::Mat containing the extra data if it exists. |
|
pure virtual |
Returns next packet with RAW video frame.
data | Pointer to frame data. |
size | Size in bytes of current frame. |
|
inlinevirtual |
Returns true if the last packet contained a key frame.
|
pure virtual |
Updates the coded width and height inside format.