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 。BT.601 色彩空间,数值范围扩展至 0 至 255。它向后兼容 BT.601,并使用 BT.601 范围之外的值来表示更广泛的颜色。
QVideoFrameFormat::YCbCr_xvYCC7094该值已被弃用。请查看ColorRange 。BT.709 色彩空间的数值范围扩展到 0 至 255。
QVideoFrameFormat::YCbCr_JPEG5大多数 JPEG 文件中使用的全范围 Y'CbCr 色彩空间。
QVideoFrameFormat::YCbCr_BT20206ITU-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()。

© 2025 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.