24 d->cropRect = cropRect;
60 const QRect imageBounds =
d->cropRect.isValid()?
d->cropRect: dev->
exactBounds();
85 const double rgbMax = qMax(channels[0], qMax(channels[1], channels[2]));
104 const KoXyzF32Traits::Pixel* pixel =
reinterpret_cast<const KoXyzF32Traits::Pixel*
> (srcIt.
rawDataConst());
const KoID Float32BitsColorDepthID("F32", ki18n("32-bit float/channel"))
const KoID XYZAColorModelID("XYZA", ki18n("XYZ/Alpha"))
const KoID RGBAColorModelID("RGBA", ki18n("RGB/Alpha"))
~KisContentLightLevelProcessingVistor() override
void visit(KisGroupLayer *layer, KisUndoAdapter *undoAdapter) override
KisRelativeContentLightLevelInformation calculateForDev(KisPaintDeviceSP dev)
KisContentLightLevelProcessingVistor(KisRelativeContentLightLevelInformation::CalculationType type=KisRelativeContentLightLevelInformation::XYZLuminance, const QRect &cropRect=QRect())
KisRelativeContentLightLevelInformation contentLightLevelInformation() const
QScopedPointer< Private > d
QRect exactBounds() const
const KoColorSpace * colorSpace() const
void convertTo(const KoColorSpace *dstColorSpace, KoColorConversionTransformation::Intent renderingIntent=KoColorConversionTransformation::internalRenderingIntent(), KoColorConversionTransformation::ConversionFlags conversionFlags=KoColorConversionTransformation::internalConversionFlags(), KUndo2Command *parentCommand=nullptr, KoUpdater *progressUpdater=nullptr)
void makeCloneFrom(KisPaintDeviceSP src, const QRect &rect)
ALWAYS_INLINE const quint8 * rawDataConst() const
virtual KoID colorModelId() const =0
virtual quint32 channelCount() const =0
virtual void normalisedChannelsValue(const quint8 *pixel, QVector< float > &channels) const =0
virtual const KoColorProfile * profile() const =0
KisRelativeContentLightLevelInformation::CalculationType type
QList< KisRelativeContentLightLevelInformation > clli
const KoColorSpace * colorSpace() const override
KisPaintDeviceSP projection() const override
@ Rec2020Component
Calculate luminance by converting to rec2020.
@ RGBComponent
Calculate luminance on the RGB components if possible.
double maxFrameAverageLightLevel
maxFrameAverage MaxFrameAverageLightLevel or MaxFALL is the average of average pixel brightnesses in ...
double maxContentLightLevel
The KoColorProfileQuery struct.
virtual ColorPrimaries getColorPrimaries() const
getColorPrimaries
const KoColorSpace * colorSpace(const QString &colorModelId, const QString &colorDepthId, const KoColorProfile *profile)
static KoColorSpaceRegistry * instance()
const KoColorProfile * profileFor(const KoColorProfileQuery &query, const bool generate=true) const
profileFor tries to find the profile that matches these characteristics, if no such profile is found,...
const KoColorProfile * p2020G10Profile() const