class cv::cudacodec::RawVideoSource

Overview

Interface for video demultiplexing. : Moreā€¦

#include <cudacodec.hpp>

class RawVideoSource
{
public:
    // methods

    virtual
    FormatInfo
    format() const = 0;

    virtual
    bool
    getNextPacket(
        unsigned char** data,
        int* size,
        bool* endOfFile
        ) = 0;
};

Detailed Documentation

Interface for video demultiplexing. :

User can implement own demultiplexing by implementing this interface.

Methods

virtual
FormatInfo
format() const = 0

Returns information about video file format.

virtual
bool
getNextPacket(
    unsigned char** data,
    int* size,
    bool* endOfFile
    ) = 0

Returns next packet with RAW video frame.

Parameters:

data Pointer to frame data.
size Size in bytes of current frame.
endOfFile Indicates that it is end of stream.