Class cv::cudacodec::RawVideoSource#

Interface for video demultiplexing. : View details

Collaboration diagram for cv::cudacodec::RawVideoSource:

Detailed Description#

Interface for video demultiplexing. :

User can implement own demultiplexing by implementing this interface.

Constructor & Destructor Documentation#

~RawVideoSource()#

cv::cudacodec::RawVideoSource::~RawVideoSource()

Member Function Documentation#

format()#

FormatInfo cv::cudacodec::RawVideoSource::format()

Returns information about video file format.

get()#

bool cv::cudacodec::RawVideoSource::get(
const int propertyId,
double & propertyVal )

Retrieves the specified property used by the VideoSource.

Parameters

Returns

true unless the property is unset set or not supported.

getExtraData()#

void cv::cudacodec::RawVideoSource::getExtraData(cv::Mat & extraData)

Returns any extra data associated with the video source.

Parameters

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

getFirstFrameIdx()#

int cv::cudacodec::RawVideoSource::getFirstFrameIdx()

Retrieve 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.

Returns

index of the index of the first frame that will returned after construction.

getNextPacket()#

bool cv::cudacodec::RawVideoSource::getNextPacket(
unsigned char ** data,
size_t * size )

Returns next packet with RAW video frame.

Parameters

  • data — Pointer to frame data.

  • size — Size in bytes of current frame.

lastPacketContainsKeyFrame()#

bool cv::cudacodec::RawVideoSource::lastPacketContainsKeyFrame()

Returns true if the last packet contained a key frame.

updateFormat()#

void cv::cudacodec::RawVideoSource::updateFormat(const FormatInfo & videoFormat)

Updates the coded width and height inside format.

Source file#

The documentation for this class was generated from the following file: