OpenCV
5.0.0alpha
Open Source Computer Vision
|
Video writer interface, see createVideoWriter(). More...
#include <opencv2/cudacodec.hpp>
Public Member Functions | |
virtual | ~VideoWriter () |
virtual EncoderParams | getEncoderParams () const =0 |
Retrieve the encoding parameters. | |
virtual void | release ()=0 |
Waits until the encoding process has finished before calling EncoderCallback::onEncodingFinished(). | |
virtual void | write (InputArray frame)=0 |
Writes the next video frame. | |
Video writer interface, see createVideoWriter().
Available if Nvidia's Video Codec SDK is installed.
Only Codec::H264 and Codec::HEVC are supported with encoding support 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.