Callbacks for CUDA video encoder.  
 More...
#include <opencv2/cudacodec.hpp>
Callbacks for CUDA video encoder. 
◆ PicType
| Enumerator | 
|---|
| IFRAME |  | 
| PFRAME |  | 
| BFRAME |  | 
 
 
◆ ~EncoderCallBack()
  
  | 
        
          | virtual cv::cudacodec::EncoderCallBack::~EncoderCallBack | ( |  | ) |  |  | inlinevirtual | 
 
 
◆ acquireBitStream()
  
  | 
        
          | virtual uchar* cv::cudacodec::EncoderCallBack::acquireBitStream | ( | int * | bufferSize | ) |  |  | 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. 
 
 
◆ onBeginFrame()
Callback function to signal that the encoding operation on the frame has started. 
- Parameters
- 
  
    | frameNumber |  |  | picType | Specify frame type (I-Frame, P-Frame or B-Frame). |  
 
 
 
◆ onEndFrame()
Callback function signals that the encoding operation on the frame has finished. 
- Parameters
- 
  
    | frameNumber |  |  | picType | Specify frame type (I-Frame, P-Frame or B-Frame). |  
 
 
 
◆ releaseBitStream()
  
  | 
        
          | virtual void cv::cudacodec::EncoderCallBack::releaseBitStream | ( | unsigned char * | data, |  
          |  |  | int | size |  
          |  | ) |  |  |  | pure virtual | 
 
Callback function to signal that the encoded bitstream is ready to be written to file. 
 
 
The documentation for this class was generated from the following file: