Interface for video demultiplexing. :
More...
#include <opencv2/cudacodec.hpp>
|
virtual | ~RawVideoSource () |
|
virtual FormatInfo | format () const =0 |
| Returns information about video file format.
|
|
virtual bool | get (const int propertyId, double &propertyVal) const =0 |
| Retrieves the specified property used by the VideoSource.
|
|
virtual void | getExtraData (cv::Mat &extraData) const =0 |
| Returns any extra data associated with the video source.
|
|
virtual int | getFirstFrameIdx () const =0 |
| Retrieve the index of the first frame that will returned after construction.
|
|
virtual bool | getNextPacket (unsigned char **data, size_t *size)=0 |
| Returns next packet with RAW video frame.
|
|
virtual bool | lastPacketContainsKeyFrame () const |
| Returns true if the last packet contained a key frame.
|
|
virtual void | updateFormat (const FormatInfo &videoFormat)=0 |
| Updates the coded width and height inside format.
|
|
Interface for video demultiplexing. :
User can implement own demultiplexing by implementing this interface.
◆ ~RawVideoSource()
virtual cv::cudacodec::RawVideoSource::~RawVideoSource |
( |
| ) |
|
|
inlinevirtual |
◆ format()
virtual FormatInfo cv::cudacodec::RawVideoSource::format |
( |
| ) |
const |
|
pure virtual |
Returns information about video file format.
◆ get()
virtual bool cv::cudacodec::RawVideoSource::get |
( |
const int |
propertyId, |
|
|
double & |
propertyVal |
|
) |
| const |
|
pure virtual |
Retrieves the specified property used by the VideoSource.
- Parameters
-
- Returns
true
unless the property is unset set or not supported.
◆ getExtraData()
virtual void cv::cudacodec::RawVideoSource::getExtraData |
( |
cv::Mat & |
extraData | ) |
const |
|
pure virtual |
Returns any extra data associated with the video source.
- Parameters
-
extraData | 1D cv::Mat containing the extra data if it exists. |
◆ getFirstFrameIdx()
virtual int cv::cudacodec::RawVideoSource::getFirstFrameIdx |
( |
| ) |
const |
|
pure virtual |
Retrieve the index of the first frame that will returned after construction.
- Returns
- index of the index of the first frame that will returned after construction.
- Note
- To reduce the decoding overhead when initializing VideoReader to start its decoding from frame N, RawVideoSource should seek to the first valid key frame less than or equal to N and return that index here.
◆ getNextPacket()
virtual bool cv::cudacodec::RawVideoSource::getNextPacket |
( |
unsigned char ** |
data, |
|
|
size_t * |
size |
|
) |
| |
|
pure virtual |
Returns next packet with RAW video frame.
- Parameters
-
data | Pointer to frame data. |
size | Size in bytes of current frame. |
◆ lastPacketContainsKeyFrame()
virtual bool cv::cudacodec::RawVideoSource::lastPacketContainsKeyFrame |
( |
| ) |
const |
|
inlinevirtual |
Returns true if the last packet contained a key frame.
◆ updateFormat()
virtual void cv::cudacodec::RawVideoSource::updateFormat |
( |
const FormatInfo & |
videoFormat | ) |
|
|
pure virtual |
Updates the coded width and height inside format.
The documentation for this class was generated from the following file: