Loading...
Searching...
No Matches
cv::cudacodec::VideoWriter Class Referenceabstract
Video writer interface. 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. | |
Detailed Description
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.
- Note
- An example on how to use the videoWriter class can be found at opencv_source_code/samples/gpu/video_writer.cpp
Constructor & Destructor Documentation
◆ ~VideoWriter()
|
inlinevirtual |
Member Function Documentation
◆ getEncoderParams()
|
pure virtual |
Retrieve the encoding parameters.
◆ release()
|
pure virtual |
Waits until the encoding process has finished before calling EncoderCallback::onEncodingFinished().
◆ write()
|
pure virtual |
Writes the next video frame.
- Parameters
-
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.
The documentation for this class was generated from the following file:
- opencv2/cudacodec.hpp