Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
Go to the source code of this file.
Macros | |
#define | CLAMP(n) (n > 255 ? 255 : (n < 0 ? 0 : n)) |
#define | EXPAND_UV(u, v) |
Variables | |
static VideoFrameConvertFunc | qConvertFuncs [QVideoFrameFormat::NPixelFormats] |
static PixelsCopyFunc | qPixelsCopyFunc = qt_copy_pixels_with_mask<uint32_t> |
static std::once_flag | InitFuncsAsmFlag |
Definition at line 11 of file qvideoframeconversionhelper.cpp.
Referenced by qYUVToARGB32().
#define EXPAND_UV | ( | u, | |
v ) |
Definition at line 13 of file qvideoframeconversionhelper.cpp.
Referenced by planarYUV420_16bit_to_ARGB32(), planarYUV420_to_ARGB32(), planarYUV422_to_ARGB32(), qt_convert_AYUV_Premultiplied_to_ARGB32(), qt_convert_AYUV_to_ARGB32(), qt_convert_UYVY_to_ARGB32(), and qt_convert_YUYV_to_ARGB32().
|
inlinestatic |
Definition at line 378 of file qvideoframeconversionhelper.cpp.
References EXPAND_UV, i, j, qYUVToARGB32(), and rgb.
Referenced by qt_convert_P016_to_ARGB32().
|
inlinestatic |
Definition at line 29 of file qvideoframeconversionhelper.cpp.
References EXPAND_UV, i, j, qYUVToARGB32(), and rgb.
Referenced by qt_convert_IMC1_to_ARGB32(), qt_convert_IMC2_to_ARGB32(), qt_convert_IMC3_to_ARGB32(), qt_convert_IMC4_to_ARGB32(), qt_convert_NV12_to_ARGB32(), qt_convert_NV21_to_ARGB32(), qt_convert_YUV420P_to_ARGB32(), and qt_convert_YV12_to_ARGB32().
|
inlinestatic |
Definition at line 65 of file qvideoframeconversionhelper.cpp.
References EXPAND_UV, i, j, qYUVToARGB32(), and rgb.
Referenced by qt_convert_YUV422P_to_ARGB32().
uint32_t qAlphaMask | ( | QVideoFrameFormat::PixelFormat | format | ) |
Definition at line 606 of file qvideoframeconversionhelper.cpp.
References QVideoFrameFormat::Format_ABGR8888, QVideoFrameFormat::Format_ARGB8888, QVideoFrameFormat::Format_ARGB8888_Premultiplied, QVideoFrameFormat::Format_BGRA8888, QVideoFrameFormat::Format_BGRA8888_Premultiplied, QVideoFrameFormat::Format_BGRX8888, QVideoFrameFormat::Format_RGBA8888, QVideoFrameFormat::Format_RGBX8888, QVideoFrameFormat::Format_XBGR8888, and QVideoFrameFormat::Format_XRGB8888.
Referenced by qCopyPixelsWithAlphaMask().
VideoFrameConvertFunc qConverterForFormat | ( | QVideoFrameFormat::PixelFormat | format | ) |
Definition at line 574 of file qvideoframeconversionhelper.cpp.
References convert(), InitFuncsAsmFlag, qConvertFuncs, and qInitFuncsAsm().
Referenced by convertCPU().
void Q_MULTIMEDIA_EXPORT qCopyPixelsWithAlphaMask | ( | uint32_t * | dst, |
const uint32_t * | src, | ||
size_t | pixCount, | ||
QVideoFrameFormat::PixelFormat | format, | ||
bool | srcAlphaVaries ) |
Definition at line 582 of file qvideoframeconversionhelper.cpp.
References qAlphaMask(), and qCopyPixelsWithMask().
Referenced by QX11SurfaceCapture::Grabber::grabFrame().
void qCopyPixelsWithMask | ( | uint32_t * | dst, |
const uint32_t * | src, | ||
size_t | size, | ||
uint32_t | mask ) |
Definition at line 599 of file qvideoframeconversionhelper.cpp.
References InitFuncsAsmFlag, qInitFuncsAsm(), and qPixelsCopyFunc.
Referenced by qCopyPixelsWithAlphaMask().
|
static |
Definition at line 509 of file qvideoframeconversionhelper.cpp.
References QVideoFrameFormat::Format_ABGR8888, QVideoFrameFormat::Format_ARGB8888, QVideoFrameFormat::Format_ARGB8888_Premultiplied, QVideoFrameFormat::Format_BGRA8888, QVideoFrameFormat::Format_BGRA8888_Premultiplied, QVideoFrameFormat::Format_BGRX8888, QVideoFrameFormat::Format_RGBA8888, QVideoFrameFormat::Format_RGBX8888, QVideoFrameFormat::Format_XBGR8888, QVideoFrameFormat::Format_XRGB8888, frame, output, qConvertFuncs, qCpuHasFeature, qPixelsCopyFunc, and QT_FASTCALL.
Referenced by qConverterForFormat(), and qCopyPixelsWithMask().
|
static |
Definition at line 156 of file qvideoframeconversionhelper.cpp.
References EXPAND_UV, FETCH_INFO_PACKED, frame, i, j, MERGE_LOOPS, output, qYUVToARGB32(), and rgb.
|
static |
Definition at line 131 of file qvideoframeconversionhelper.cpp.
References EXPAND_UV, FETCH_INFO_PACKED, frame, i, j, MERGE_LOOPS, output, qPremultiply(), qYUVToARGB32(), and rgb.
|
static |
Definition at line 255 of file qvideoframeconversionhelper.cpp.
References FETCH_INFO_TRIPLANAR, frame, output, planarYUV420_to_ARGB32(), and Q_ASSERT.
|
static |
Definition at line 269 of file qvideoframeconversionhelper.cpp.
References FETCH_INFO_BIPLANAR, frame, output, planarYUV420_to_ARGB32(), and Q_ASSERT.
|
static |
Definition at line 282 of file qvideoframeconversionhelper.cpp.
References FETCH_INFO_TRIPLANAR, frame, output, planarYUV420_to_ARGB32(), and Q_ASSERT.
|
static |
Definition at line 296 of file qvideoframeconversionhelper.cpp.
References FETCH_INFO_BIPLANAR, frame, output, planarYUV420_to_ARGB32(), and Q_ASSERT.
|
static |
Definition at line 233 of file qvideoframeconversionhelper.cpp.
References FETCH_INFO_BIPLANAR, frame, output, and planarYUV420_to_ARGB32().
|
static |
Definition at line 244 of file qvideoframeconversionhelper.cpp.
References FETCH_INFO_BIPLANAR, frame, output, and planarYUV420_to_ARGB32().
|
static |
Definition at line 418 of file qvideoframeconversionhelper.cpp.
References FETCH_INFO_BIPLANAR, frame, output, and planarYUV420_16bit_to_ARGB32().
|
static |
Definition at line 345 of file qvideoframeconversionhelper.cpp.
References FETCH_INFO_PACKED, frame, MERGE_LOOPS, output, and Pixel.
|
static |
Definition at line 311 of file qvideoframeconversionhelper.cpp.
References convert(), FETCH_INFO_PACKED, frame, MERGE_LOOPS, output, Pixel, and qPremultiply().
|
static |
Definition at line 181 of file qvideoframeconversionhelper.cpp.
References EXPAND_UV, FETCH_INFO_PACKED, frame, i, j, MERGE_LOOPS, output, qYUVToARGB32(), and rgb.
|
static |
Definition at line 431 of file qvideoframeconversionhelper.cpp.
References FETCH_INFO_PACKED, frame, MERGE_LOOPS, output, and Pixel.
|
static |
Definition at line 97 of file qvideoframeconversionhelper.cpp.
References FETCH_INFO_TRIPLANAR, frame, output, and planarYUV420_to_ARGB32().
|
static |
Definition at line 108 of file qvideoframeconversionhelper.cpp.
References FETCH_INFO_TRIPLANAR, frame, output, and planarYUV422_to_ARGB32().
|
static |
Definition at line 207 of file qvideoframeconversionhelper.cpp.
References EXPAND_UV, FETCH_INFO_PACKED, frame, i, j, MERGE_LOOPS, output, qYUVToARGB32(), and rgb.
|
static |
Definition at line 120 of file qvideoframeconversionhelper.cpp.
References FETCH_INFO_TRIPLANAR, frame, output, and planarYUV420_to_ARGB32().
|
static |
Definition at line 466 of file qvideoframeconversionhelper.cpp.
|
inlinestatic |
Definition at line 20 of file qvideoframeconversionhelper.cpp.
References CLAMP.
Referenced by planarYUV420_16bit_to_ARGB32(), planarYUV420_to_ARGB32(), planarYUV422_to_ARGB32(), qt_convert_AYUV_Premultiplied_to_ARGB32(), qt_convert_AYUV_to_ARGB32(), qt_convert_UYVY_to_ARGB32(), and qt_convert_YUYV_to_ARGB32().
|
static |
Definition at line 507 of file qvideoframeconversionhelper.cpp.
Referenced by qConverterForFormat(), and qCopyPixelsWithMask().
|
static |
Definition at line 473 of file qvideoframeconversionhelper.cpp.
Referenced by qConverterForFormat(), and qInitFuncsAsm().
|
static |
Definition at line 505 of file qvideoframeconversionhelper.cpp.
Referenced by qCopyPixelsWithMask(), and qInitFuncsAsm().