Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qcolortransform_p.h
Go to the documentation of this file.
1// Copyright (C) 2019 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QCOLORTRANSFORM_P_H
5#define QCOLORTRANSFORM_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include "qcolormatrix_p.h"
19#include "qcolorspace_p.h"
20
21#include <QtCore/qshareddata.h>
22#include <QtGui/qrgbafloat.h>
23
25
27{
28public:
32
34 { return q.d.data(); }
35
36 void updateLutsIn() const;
37 void updateLutsOut() const;
38 bool isIdentity() const;
39
40 Q_GUI_EXPORT void prepare();
47 };
48 Q_DECLARE_FLAGS(TransformFlags, TransformFlag)
49
50 void apply(QRgb *dst, const QRgb *src, qsizetype count, TransformFlags flags = Unpremultiplied) const;
51 void apply(QRgba64 *dst, const QRgba64 *src, qsizetype count, TransformFlags flags = Unpremultiplied) const;
53 TransformFlags flags = Unpremultiplied) const;
54 void apply(quint8 *dst, const QRgb *src, qsizetype count, TransformFlags flags = Unpremultiplied) const;
55 void apply(quint16 *dst, const QRgba64 *src, qsizetype count, TransformFlags flags = Unpremultiplied) const;
56
57 template<typename T>
58 void apply(T *dst, const T *src, qsizetype count, TransformFlags flags) const;
59
60 template<typename D, typename S>
61 void applyReturnGray(D *dst, const S *src, qsizetype count, TransformFlags flags) const;
62
63};
64
66
67#endif // QCOLORTRANSFORM_P_H
Q_GUI_EXPORT void prepare()
void apply(QRgb *dst, const QRgb *src, qsizetype count, TransformFlags flags=Unpremultiplied) const
QExplicitlySharedDataPointer< const QColorSpacePrivate > colorSpaceOut
QExplicitlySharedDataPointer< const QColorSpacePrivate > colorSpaceIn
static QColorTransformPrivate * get(const QColorTransform &q)
void applyReturnGray(D *dst, const S *src, qsizetype count, TransformFlags flags) const
The QColorTransform class is a transformation between color spaces.
\inmodule QtCore
Definition qshareddata.h:19
Combined button and popup list for selecting options.
#define Q_DECLARE_FLAGS(Flags, Enum)
Definition qflags.h:174
GLenum GLenum GLsizei count
GLenum src
GLenum GLenum dst
GLbitfield flags
GLdouble GLdouble GLdouble GLdouble q
Definition qopenglext.h:259
QT_BEGIN_NAMESPACE typedef unsigned int QRgb
Definition qrgb.h:13
unsigned short quint16
Definition qtypes.h:43
ptrdiff_t qsizetype
Definition qtypes.h:70
unsigned char quint8
Definition qtypes.h:41