Class for converting the raw YUV Surface output from VideoReader if output color format is set to ColorFormat::NV_YUV_SURFACE_FORMAT (VideoReader::set(ColorFormat::NV_YUV_SURFACE_FORMAT)) to the requested ColorFormat.
More...
#include <opencv2/cudacodec.hpp>
Class for converting the raw YUV Surface output from VideoReader if output color format is set to ColorFormat::NV_YUV_SURFACE_FORMAT (VideoReader::set(ColorFormat::NV_YUV_SURFACE_FORMAT)) to the requested ColorFormat.
◆ ~NVSurfaceToColorConverter()
| virtual cv::cudacodec::NVSurfaceToColorConverter::~NVSurfaceToColorConverter |
( |
| ) |
|
|
inlinevirtual |
◆ convert()
Performs the conversion from the raw YUV Surface output from VideoReader to the requested color format. Use this function when you want to convert the raw YUV Surface output from VideoReader to more than one color format or you want both the raw Surface output in addition to a color frame.
- Parameters
-
| yuv | The raw YUV Surface output from VideoReader see SurfaceFormat. |
| color | The converted frame. |
| surfaceFormat | The surface format of the input YUV data. |
| outputFormat | The requested output color format. |
| bitDepth | The requested bit depth of the output frame. |
| planar | Request seperate planes for each color plane. |
| stream | Stream for the asynchronous version. |
The documentation for this class was generated from the following file: