Interface for encoder callbacks.
More...
#include <opencv2/cudacodec.hpp>
|
| virtual | ~EncoderCallback () |
| |
| virtual void | onEncoded (const std::vector< std::vector< uint8_t > > &vPacket, const std::vector< uint64_t > &pts)=0 |
| | Callback function to signal that the encoded bitstream for one or more frames is ready.
|
| |
| virtual void | onEncodingFinished ()=0 |
| | Callback function to that the encoding has finished.
|
| |
| virtual bool | setFrameIntervalP (const int frameIntervalP)=0 |
| | Set the GOP pattern used by the encoder.
|
| |
Interface for encoder callbacks.
User can implement own multiplexing by implementing this interface.
◆ ~EncoderCallback()
| virtual cv::cudacodec::EncoderCallback::~EncoderCallback |
( |
| ) |
|
|
inlinevirtual |
◆ onEncoded()
| virtual void cv::cudacodec::EncoderCallback::onEncoded |
( |
const std::vector< std::vector< uint8_t > > & | vPacket, |
|
|
const std::vector< uint64_t > & | pts ) |
|
pure virtual |
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()
| virtual void cv::cudacodec::EncoderCallback::onEncodingFinished |
( |
| ) |
|
|
pure virtual |
Callback function to that the encoding has finished.
◆ setFrameIntervalP()
| virtual bool cv::cudacodec::EncoderCallback::setFrameIntervalP |
( |
const int | frameIntervalP | ) |
|
|
pure virtual |
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. |
The documentation for this class was generated from the following file: