OpenCV  4.5.5
Open Source Computer Vision
Public Member Functions | List of all members
cv::cudacodec::RawVideoSource Class Referenceabstract

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

Detailed Description

Interface for video demultiplexing. :

User can implement own demultiplexing by implementing this interface.

Constructor & Destructor Documentation

◆ ~RawVideoSource()

virtual cv::cudacodec::RawVideoSource::~RawVideoSource ( )
inlinevirtual

Member Function Documentation

◆ format()

virtual FormatInfo cv::cudacodec::RawVideoSource::format ( ) const
pure virtual

Returns information about video file format.

◆ getExtraData()

virtual void cv::cudacodec::RawVideoSource::getExtraData ( cv::Mat extraData) const
pure virtual

Returns any extra data associated with the video source.

Parameters
extraData1D cv::Mat containing the extra data if it exists.

◆ getNextPacket()

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

Returns next packet with RAW video frame.

Parameters
dataPointer to frame data.
sizeSize 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: