4#ifndef QVIDEOFRAMECONVERSIONHELPER_P_H
5#define QVIDEOFRAMECONVERSIONHELPER_P_H
19#include <private/qsimd_p.h>
39template<
int a,
int r,
int g,
int b>
45#if Q_BYTE_ORDER == Q_LITTLE_ENDIAN
46 return (((
data >> (8*
a)) & 0xff) << 24)
47 | (((
data >> (8*
r)) & 0xff) << 16)
48 | (((
data >> (8*
g)) & 0xff) << 8)
49 | ((
data >> (8*
b)) & 0xff);
51 return (((
data >> (32-8*
a)) & 0xff) << 24)
52 | (((
data >> (32-8*
r)) & 0xff) << 16)
53 | (((
data >> (32-8*
g)) & 0xff) << 8)
54 | ((
data >> (32-8*
b)) & 0xff);
59template<
int r,
int g,
int b>
65#if Q_BYTE_ORDER == Q_LITTLE_ENDIAN
67 | (((
data >> (8*
r)) & 0xff) << 16)
68 | (((
data >> (8*
g)) & 0xff) << 8)
69 | ((
data >> (8*
b)) & 0xff);
72 | (((
data >> (32-8*
r)) & 0xff) << 16)
73 | (((
data >> (32-8*
g)) & 0xff) << 8)
74 | ((
data >> (32-8*
b)) & 0xff);
105#define FETCH_INFO_PACKED(frame) \
106 const uchar *src = frame.bits(0); \
107 int stride = frame.bytesPerLine(0); \
108 int width = frame.width(); \
109 int height = frame.height();
111#define FETCH_INFO_BIPLANAR(frame) \
112 const uchar *plane1 = frame.bits(0); \
113 const uchar *plane2 = frame.bits(1); \
114 int plane1Stride = frame.bytesPerLine(0); \
115 int plane2Stride = frame.bytesPerLine(1); \
116 int width = frame.width(); \
117 int height = frame.height();
119#define FETCH_INFO_TRIPLANAR(frame) \
120 const uchar *plane1 = frame.bits(0); \
121 const uchar *plane2 = frame.bits(1); \
122 const uchar *plane3 = frame.bits(2); \
123 int plane1Stride = frame.bytesPerLine(0); \
124 int plane2Stride = frame.bytesPerLine(1); \
125 int plane3Stride = frame.bytesPerLine(2); \
126 int width = frame.width(); \
127 int height = frame.height(); \
129#define MERGE_LOOPS(width, height, stride, bpp) \
130 if (stride == width * bpp) { \
136#define QT_MEDIA_ALIGN(boundary, ptr, x, length) \
137 for (; ((reinterpret_cast<qintptr>(ptr) & (boundary - 1)) != 0) && x < length; ++x)
The QVideoFrame class represents a frame of video data.
Combined button and popup list for selecting options.
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char const char return DBusMessage return DBusMessage const char return DBusMessage dbus_bool_t return DBusMessage dbus_uint32_t return DBusMessage void
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
[7]
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLint GLint GLint GLint GLint GLint GLint GLbitfield mask
GLint GLsizei GLsizei GLenum format
ArgbPixel< 3, 0, 1, 2 > RGBA8888
ArgbPixel< 0, 1, 2, 3 > ARGB8888
VideoFrameConvertFunc qConverterForFormat(QVideoFrameFormat::PixelFormat format)
RgbPixel< 1, 2, 3 > XRGB8888
ArgbPixel< 3, 2, 1, 0 > BGRA8888
void Q_MULTIMEDIA_EXPORT qCopyPixelsWithMask(uint32_t *dst, const uint32_t *src, size_t size, uint32_t mask)
void Q_MULTIMEDIA_EXPORT qCopyPixelsWithAlphaMask(uint32_t *dst, const uint32_t *src, size_t size, QVideoFrameFormat::PixelFormat format, bool srcAlphaVaries)
RgbPixel< 0, 1, 2 > RGBX8888
RgbPixel< 3, 2, 1 > XBGR8888
ArgbPixel< 0, 3, 2, 1 > ABGR8888
QT_BEGIN_NAMESPACE typedef uchar * output
void(QT_FASTCALL * PixelsCopyFunc)(uint32_t *dst, const uint32_t *src, size_t size, uint32_t mask)
RgbPixel< 2, 1, 0 > BGRX8888
uint32_t Q_MULTIMEDIA_EXPORT qAlphaMask(QVideoFrameFormat::PixelFormat format)
static constexpr uint shift