![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qcolortransform_p.h>
Public Types | |
enum | TransformFlag { Unpremultiplied = 0 , InputOpaque = 1 , InputPremultiplied = 2 , OutputPremultiplied = 4 , Premultiplied = (InputPremultiplied | OutputPremultiplied) } |
Public Member Functions | |
void | updateLutsIn () const |
void | updateLutsOut () const |
bool | isIdentity () const |
Q_GUI_EXPORT void | prepare () |
QColorVector | map (QColorVector color) const |
QColorVector | mapExtended (QColorVector color) const |
template<typename D, typename S> | |
void | apply (D *dst, const S *src, qsizetype count, TransformFlags flags) const |
![]() | |
QSharedData () noexcept | |
Constructs a QSharedData object with a reference count of 0. | |
QSharedData (const QSharedData &) noexcept | |
Constructs a QSharedData object with reference count 0. | |
QSharedData & | operator= (const QSharedData &)=delete |
~QSharedData ()=default | |
Static Public Member Functions | |
static QColorTransformPrivate * | get (const QColorTransform &q) |
Public Attributes | |
QColorMatrix | colorMatrix |
QExplicitlySharedDataPointer< const QColorSpacePrivate > | colorSpaceIn |
QExplicitlySharedDataPointer< const QColorSpacePrivate > | colorSpaceOut |
![]() | |
QAtomicInt | ref |
Definition at line 27 of file qcolortransform_p.h.
Defines how the transform should handle alpha values.
\value Unpremultiplied The input and output should both be unpremultiplied. \value InputOpaque The input is guaranteed to be opaque. \value InputPremultiplied The input is premultiplied. \value OutputPremultiplied The output should be premultiplied. \value Premultiplied Both input and output should both be premultiplied.
Enumerator | |
---|---|
Unpremultiplied | |
InputOpaque | |
InputPremultiplied | |
OutputPremultiplied | |
Premultiplied |
Definition at line 42 of file qcolortransform_p.h.
template void QColorTransformPrivate::apply< QRgbaFloat32, QRgbaFloat32 > | ( | D * | dst, |
const S * | src, | ||
qsizetype | count, | ||
TransformFlags | flags ) const |
Applies the color transformation on count S pixels starting from src and stores the result in dst as D pixels .
Assumes unpremultiplied data by default. Set flags to change defaults.
Definition at line 1971 of file qcolortransform.cpp.
References updateLutsIn(), and updateLutsOut().
|
inlinestatic |
Definition at line 34 of file qcolortransform_p.h.
bool QColorTransformPrivate::isIdentity | ( | ) | const |
Definition at line 2050 of file qcolortransform.cpp.
Referenced by QColorSpacePrivate::transformationToColorSpace().
QColorVector QColorTransformPrivate::map | ( | QColorVector | c | ) | const |
Definition at line 1723 of file qcolortransform.cpp.
QColorVector QColorTransformPrivate::mapExtended | ( | QColorVector | c | ) | const |
Definition at line 1781 of file qcolortransform.cpp.
void QColorTransformPrivate::prepare | ( | ) |
Prepares a color transformation for fast application. You do not need to call this explicitly as it will be called implicitly on the first transforms, but if you want predictable performance on the first transforms, you can perform it in advance.
Definition at line 2015 of file qcolortransform.cpp.
References updateLutsIn(), and updateLutsOut().
QT_BEGIN_NAMESPACE void QColorTransformPrivate::updateLutsIn | ( | ) | const |
Definition at line 25 of file qcolortransform.cpp.
Referenced by apply(), and prepare().
void QColorTransformPrivate::updateLutsOut | ( | ) | const |
Definition at line 50 of file qcolortransform.cpp.
Referenced by apply(), and prepare().
QColorMatrix QColorTransformPrivate::colorMatrix |
Definition at line 30 of file qcolortransform_p.h.
QExplicitlySharedDataPointer<const QColorSpacePrivate> QColorTransformPrivate::colorSpaceIn |
Definition at line 31 of file qcolortransform_p.h.
QExplicitlySharedDataPointer<const QColorSpacePrivate> QColorTransformPrivate::colorSpaceOut |
Definition at line 32 of file qcolortransform_p.h.