OpenCV
Open Source Computer Vision
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
cv::cudacodec::NVSurfaceToColorConverter Class Referenceabstract

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>

Collaboration diagram for cv::cudacodec::NVSurfaceToColorConverter:

Public Member Functions

virtual bool convert (InputArray yuv, OutputArray color, const SurfaceFormat surfaceFormat, const ColorFormat outputFormat, const BitDepth bitDepth=BitDepth::UNCHANGED, const bool planar=false, const bool videoFullRangeFlag=false, cuda::Stream &stream=cuda::Stream::Null())=0
 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.
 

Detailed Description

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.

Member Function Documentation

◆ convert()

virtual bool cv::cudacodec::NVSurfaceToColorConverter::convert ( InputArray yuv,
OutputArray color,
const SurfaceFormat surfaceFormat,
const ColorFormat outputFormat,
const BitDepth bitDepth = BitDepth::UNCHANGED,
const bool planar = false,
const bool videoFullRangeFlag = false,
cuda::Stream & stream = cuda::Stream::Null() )
pure virtual

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
yuvThe raw YUV Surface output from VideoReader see SurfaceFormat.
colorThe converted frame.
surfaceFormatThe surface format of the input YUV data.
outputFormatThe requested output color format.
bitDepthThe requested bit depth of the output frame.
planarRequest seperate planes for each color plane.
videoFullRangeFlagIndicates if the black level, luma and chroma of the source are represented using the full or limited range (AKA TV or "analogue" range) of values as defined in Annex E of the ITU-T Specification.
streamStream for the asynchronous version.

The documentation for this class was generated from the following file: