OpenCV
4.0.0-rc
Open Source Computer Vision
|
Callbacks for CUDA video encoder. More...
#include "cudacodec.hpp"
Public Types | |
enum | PicType { IFRAME = 1, PFRAME = 2, BFRAME = 3 } |
Public Member Functions | |
virtual | ~EncoderCallBack () |
virtual uchar * | acquireBitStream (int *bufferSize)=0 |
Callback function to signal the start of bitstream that is to be encoded. More... | |
virtual void | onBeginFrame (int frameNumber, EncoderCallBack::PicType picType)=0 |
Callback function to signal that the encoding operation on the frame has started. More... | |
virtual void | onEndFrame (int frameNumber, EncoderCallBack::PicType picType)=0 |
Callback function signals that the encoding operation on the frame has finished. More... | |
virtual void | releaseBitStream (unsigned char *data, int size)=0 |
Callback function to signal that the encoded bitstream is ready to be written to file. More... | |
Callbacks for CUDA video encoder.
|
inlinevirtual |
|
pure virtual |
Callback function to signal the start of bitstream that is to be encoded.
Callback must allocate buffer for CUDA encoder and return pointer to it and it's size.
|
pure virtual |
Callback function to signal that the encoding operation on the frame has started.
frameNumber | |
picType | Specify frame type (I-Frame, P-Frame or B-Frame). |
|
pure virtual |
Callback function signals that the encoding operation on the frame has finished.
frameNumber | |
picType | Specify frame type (I-Frame, P-Frame or B-Frame). |
|
pure virtual |
Callback function to signal that the encoded bitstream is ready to be written to file.