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 373 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 64 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 602 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 570 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 578 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 595 of file qvideoframeconversionhelper.cpp.
References InitFuncsAsmFlag, qInitFuncsAsm(), and qPixelsCopyFunc.
Referenced by qCopyPixelsWithAlphaMask().
|
static |
Definition at line 505 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 151 of file qvideoframeconversionhelper.cpp.
References EXPAND_UV, FETCH_INFO_PACKED, frame, i, j, MERGE_LOOPS, output, qYUVToARGB32(), and rgb.
|
static |
Definition at line 126 of file qvideoframeconversionhelper.cpp.
References EXPAND_UV, FETCH_INFO_PACKED, frame, i, j, MERGE_LOOPS, output, qPremultiply(), qYUVToARGB32(), and rgb.
|
static |
Definition at line 250 of file qvideoframeconversionhelper.cpp.
References FETCH_INFO_TRIPLANAR, frame, output, planarYUV420_to_ARGB32(), and Q_ASSERT.
|
static |
Definition at line 264 of file qvideoframeconversionhelper.cpp.
References FETCH_INFO_BIPLANAR, frame, output, planarYUV420_to_ARGB32(), and Q_ASSERT.
|
static |
Definition at line 277 of file qvideoframeconversionhelper.cpp.
References FETCH_INFO_TRIPLANAR, frame, output, planarYUV420_to_ARGB32(), and Q_ASSERT.
|
static |
Definition at line 291 of file qvideoframeconversionhelper.cpp.
References FETCH_INFO_BIPLANAR, frame, output, planarYUV420_to_ARGB32(), and Q_ASSERT.
|
static |
Definition at line 228 of file qvideoframeconversionhelper.cpp.
References FETCH_INFO_BIPLANAR, frame, output, and planarYUV420_to_ARGB32().
|
static |
Definition at line 239 of file qvideoframeconversionhelper.cpp.
References FETCH_INFO_BIPLANAR, frame, output, and planarYUV420_to_ARGB32().
|
static |
Definition at line 414 of file qvideoframeconversionhelper.cpp.
References FETCH_INFO_BIPLANAR, frame, output, and planarYUV420_16bit_to_ARGB32().
|
static |
Definition at line 340 of file qvideoframeconversionhelper.cpp.
References FETCH_INFO_PACKED, frame, MERGE_LOOPS, output, and Pixel.
|
static |
Definition at line 306 of file qvideoframeconversionhelper.cpp.
References convert(), FETCH_INFO_PACKED, frame, MERGE_LOOPS, output, Pixel, and qPremultiply().
|
static |
Definition at line 176 of file qvideoframeconversionhelper.cpp.
References EXPAND_UV, FETCH_INFO_PACKED, frame, i, j, MERGE_LOOPS, output, qYUVToARGB32(), and rgb.
|
static |
Definition at line 427 of file qvideoframeconversionhelper.cpp.
References FETCH_INFO_PACKED, frame, MERGE_LOOPS, output, and Pixel.
|
static |
Definition at line 92 of file qvideoframeconversionhelper.cpp.
References FETCH_INFO_TRIPLANAR, frame, output, and planarYUV420_to_ARGB32().
|
static |
Definition at line 103 of file qvideoframeconversionhelper.cpp.
References FETCH_INFO_TRIPLANAR, frame, output, and planarYUV422_to_ARGB32().
|
static |
Definition at line 202 of file qvideoframeconversionhelper.cpp.
References EXPAND_UV, FETCH_INFO_PACKED, frame, i, j, MERGE_LOOPS, output, qYUVToARGB32(), and rgb.
|
static |
Definition at line 115 of file qvideoframeconversionhelper.cpp.
References FETCH_INFO_TRIPLANAR, frame, output, and planarYUV420_to_ARGB32().
|
static |
Definition at line 462 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 503 of file qvideoframeconversionhelper.cpp.
Referenced by qConverterForFormat(), and qCopyPixelsWithMask().
|
static |
Definition at line 469 of file qvideoframeconversionhelper.cpp.
Referenced by qConverterForFormat(), and qInitFuncsAsm().
|
static |
Definition at line 501 of file qvideoframeconversionhelper.cpp.
Referenced by qCopyPixelsWithMask(), and qInitFuncsAsm().