Obsolete Members for QVideoFrameFormat

QVideoFrameFormat 类的以下成员已被弃用。提供这些成员是为了确保旧源代码能够继续运行。我们强烈建议不要在新代码中使用它们。

公共类型

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

公共函数

(deprecated) void setYCbCrColorSpace(QVideoFrameFormat::YCbCrColorSpace space)
(deprecated) QVideoFrameFormat::YCbCrColorSpace yCbCrColorSpace() const

成员类型文档

[deprecated] enum QVideoFrameFormat::YCbCrColorSpace

此枚举已弃用。我们强烈建议不要在新代码中使用它。

请改用QVideoFrameFormat::ColorSpace 。

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

常量值描述
QVideoFrameFormat::YCbCr_Undefined0未指定色彩空间。
QVideoFrameFormat::YCbCr_BT6011由 ITU-R 建议书 BT.601 定义的 Y'CbCr 色彩空间,Y 值范围为 16 到 235,Cb/Cr 范围为 16 到 240。主要用于针对 CRT 显示器的旧视频。
QVideoFrameFormat::YCbCr_BT7092由 ITU-R BT.709 定义的 Y'CbCr 色彩空间,其数值范围与 YCbCr_BT601 相同。这是当今最常用的色彩空间。
QVideoFrameFormat::YCbCr_xvYCC6013此值已弃用。请改查ColorRange 。这是将值范围扩展至 0 至 255 的 BT.601 色彩空间。它与 BT.601 向后兼容,并利用 BT.601 范围之外的值来表示更广泛的颜色范围。
QVideoFrameFormat::YCbCr_xvYCC7094此值已弃用。请改查ColorRange 。这是将值范围扩展至 0 到 255 的 BT.709 色彩空间。
QVideoFrameFormat::YCbCr_JPEG5大多数 JPEG 文件中使用的全范围 Y'CbCr 色彩空间。
QVideoFrameFormat::YCbCr_BT20206由 ITU-R BT.2020 定义的色彩空间。主要用于 HDR 视频。

成员函数文档

[deprecated] void QVideoFrameFormat::setYCbCrColorSpace(QVideoFrameFormat::YCbCrColorSpace space)

此函数已弃用。我们强烈建议不要在新代码中使用它。

请改用setColorSpace()

设置视频流的 Y'CbCr 颜色space 。该函数仅适用于原始 YUV 帧类型。

另请参阅 yCbCrColorSpace()。

[deprecated] QVideoFrameFormat::YCbCrColorSpace QVideoFrameFormat::yCbCrColorSpace() const

此函数已弃用。我们强烈建议不要在新代码中使用它。

请改用colorSpace()

返回视频流的 Y'CbCr 色彩空间。

另请参阅 setYCbCrColorSpace()。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.