![]() |
OpenCV
Open Source Computer Vision
|
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>
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. | |
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.
|
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.
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. |
videoFullRangeFlag | Indicates 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. |
stream | Stream for the asynchronous version. |