Class cv::cudacodec::EncoderCallback#

Interface for encoder callbacks. View details

Collaboration diagram for cv::cudacodec::EncoderCallback:

Detailed Description#

Interface for encoder callbacks.

User can implement own multiplexing by implementing this interface.

Constructor & Destructor Documentation#

~EncoderCallback()#

cv::cudacodec::EncoderCallback::~EncoderCallback()

Member Function Documentation#

onEncoded()#

void cv::cudacodec::EncoderCallback::onEncoded(
const std::vector< std::vector< uint8_t > > & vPacket,
const std::vector< uint64_t > & pts )

Callback function to signal that the encoded bitstream for one or more frames is ready.

Parameters

  • vPacket — The raw bitstream for one or more frames.

  • pts — Presentation timestamps for each frame in vPacket using the FPS time base. e.g. fps = 25, pts = 3, presentation time = 3/25 seconds.

onEncodingFinished()#

void cv::cudacodec::EncoderCallback::onEncodingFinished()

Callback function to that the encoding has finished.

setFrameIntervalP()#

bool cv::cudacodec::EncoderCallback::setFrameIntervalP(const int frameIntervalP)

Set the GOP pattern used by the encoder.

Parameters

  • frameIntervalP — Specify the GOP pattern as follows : frameIntervalP = 0: I, 1 : IPP, 2 : IBP, 3 : IBBP.

Source file#

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