OpenCV
4.7.0-dev
Open Source Computer Vision
|
Video writer interface. More...
#include <opencv2/cudacodec.hpp>
Public Member Functions | |
virtual | ~VideoWriter () |
virtual EncoderParams | getEncoderParams () const =0 |
Retrieve the encoding parameters. More... | |
virtual void | release ()=0 |
Waits until the encoding process has finished before calling EncoderCallback::onEncodingFinished(). More... | |
virtual void | write (InputArray frame)=0 |
Writes the next video frame. More... | |
Video writer interface.
Available when built with WITH_NVCUVENC=ON while Nvidia's Video Codec SDK is installed.
Encoding support is dependent on the GPU, refer to the Nvidia Video Codec SDK Video Encode and Decode GPU Support Matrix for details.
|
inlinevirtual |
|
pure virtual |
Retrieve the encoding parameters.
|
pure virtual |
Waits until the encoding process has finished before calling EncoderCallback::onEncodingFinished().
|
pure virtual |
Writes the next video frame.
frame | The framet to be written. |
The method encodes the specified image to a video stream. The image must have the same size and the same surface format as has been specified when opening the video writer.