Obsolete Members for QVideoFrameFormat

以下成员源于类 QVideoFrameFormat 被弃用。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

公共类型

(弃用) enum YCbCrColorSpace { YCbCr_Undefined, YCbCr_BT601, YCbCr_BT709, YCbCr_xvYCC601, YCbCr_xvYCC709, …, YCbCr_BT2020 }

公共函数

(弃用) void setYCbCrColorSpace (QVideoFrameFormat::YCbCrColorSpace space )
(弃用) QVideoFrameFormat::YCbCrColorSpace yCbCrColorSpace () const

成员类型文档编制

enum QVideoFrameFormat:: YCbCrColorSpace

This enum is deprecated. We strongly advise against using it in new code.

使用 QVideoFrameFormat::ColorSpace 代替。

枚举视频帧的 Y'CbCr 色彩空间。

常量 描述
QVideoFrameFormat::YCbCr_Undefined 0 No color space is specified.
QVideoFrameFormat::YCbCr_BT601 1 A Y'CbCr color space defined by ITU-R recommendation BT.601 with Y value range from 16 to 235, and Cb/Cr range from 16 to 240. Used mostly by older videos that were targeting CRT displays.
QVideoFrameFormat::YCbCr_BT709 2 A Y'CbCr color space defined by ITU-R BT.709 with the same values range as YCbCr_BT601. The most commonly used color space today.
QVideoFrameFormat::YCbCr_xvYCC601 3 This value is deprecated. Please check the ColorRange instead. The BT.601 color space with the value range extended to 0 to 255. It is backward compatible with BT.601 and uses values outside BT.601 range to represent a wider range of colors.
QVideoFrameFormat::YCbCr_xvYCC709 4 This value is deprecated. Please check the ColorRange instead. The BT.709 color space with the value range extended to 0 to 255.
QVideoFrameFormat::YCbCr_JPEG 5 The full range Y'CbCr color space used in most JPEG files.
QVideoFrameFormat::YCbCr_BT2020 6 The color space defined by ITU-R BT.2020. Used mainly for HDR videos.

成员函数文档编制

void QVideoFrameFormat:: setYCbCrColorSpace ( QVideoFrameFormat::YCbCrColorSpace space )

This function is deprecated. We strongly advise against using it in new code.

使用 setColorSpace () 代替

Sets the Y'CbCr color space of a video stream. It is only used with raw YUV frame types.

另请参阅 yCbCrColorSpace ().

QVideoFrameFormat::YCbCrColorSpace QVideoFrameFormat:: yCbCrColorSpace () const

This function is deprecated. We strongly advise against using it in new code.

使用 colorSpace () 代替

Returns the Y'CbCr color space of a video stream.

另请参阅 setYCbCrColorSpace ().