OpenCV 4.12.0
開源計算機視覺
載入中...
搜尋中...
無匹配項
cv::cudacodec::NVSurfaceToColorConverter 類參考抽象

此類用於將 VideoReader 輸出的原始 YUV Surface(如果輸出顏色格式設定為 ColorFormat::NV_YUV_SURFACE_FORMAT (VideoReader::set(ColorFormat::NV_YUV_SURFACE_FORMAT)))轉換為請求的 ColorFormat 格式。 更多...

#include <opencv2/cudacodec.hpp>

cv::cudacodec::NVSurfaceToColorConverter 的協作圖

公共成員函式

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
 執行將 VideoReader 輸出的原始 YUV Surface 轉換為請求的顏色格式。當您想將 VideoReader 輸出的原始 YUV Surface 轉換為多種顏色格式,或者您既需要原始 Surface 輸出又需要彩色幀時,請使用此函式。
 

詳細描述

此類用於將 VideoReader 輸出的原始 YUV Surface(如果輸出顏色格式設定為 ColorFormat::NV_YUV_SURFACE_FORMAT (VideoReader::set(ColorFormat::NV_YUV_SURFACE_FORMAT)))轉換為請求的 ColorFormat 格式。

成員函式文件

◆ 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() )
純虛擬函式

執行將 VideoReader 輸出的原始 YUV Surface 轉換為請求的顏色格式。當您想將 VideoReader 輸出的原始 YUV Surface 轉換為多種顏色格式,或者您既需要原始 Surface 輸出又需要彩色幀時,請使用此函式。

引數
yuv來自 VideoReader 的原始 YUV Surface 輸出,參見 SurfaceFormat
color轉換後的幀。
surfaceFormat輸入 YUV 資料的 Surface 格式。
outputFormat請求的輸出顏色格式。
bitDepth輸出幀的請求位深度。
planar請求每個顏色平面的獨立平面。
videoFullRangeFlag指示源的黑電平、亮度和色度是否使用 ITU-T 規範附件 E 中定義的全範圍或有限範圍(又稱電視或“模擬”範圍)值來表示。
用於非同步版本的流。

此類的文件生成自以下檔案