autotest/colorspaces: test identity transformations with bpc
This commit is contained in:
parent
8233bb9de5
commit
e2c7cf2bb3
1 changed files with 3 additions and 1 deletions
|
@ -113,12 +113,14 @@ void TestColorspaces::testIdentityTransformation()
|
||||||
{
|
{
|
||||||
QFETCH(NamedColorimetry, colorimetry);
|
QFETCH(NamedColorimetry, colorimetry);
|
||||||
QFETCH(TransferFunction::Type, transferFunction);
|
QFETCH(TransferFunction::Type, transferFunction);
|
||||||
const ColorDescription color(colorimetry, TransferFunction(transferFunction), 100, 0, 100, 100);
|
const TransferFunction tf(transferFunction);
|
||||||
|
const ColorDescription color(colorimetry, tf, 100, tf.minLuminance, tf.maxLuminance, tf.maxLuminance);
|
||||||
|
|
||||||
constexpr std::array renderingIntents = {
|
constexpr std::array renderingIntents = {
|
||||||
RenderingIntent::Perceptual,
|
RenderingIntent::Perceptual,
|
||||||
RenderingIntent::RelativeColorimetric,
|
RenderingIntent::RelativeColorimetric,
|
||||||
RenderingIntent::AbsoluteColorimetric,
|
RenderingIntent::AbsoluteColorimetric,
|
||||||
|
RenderingIntent::RelativeColorimetricWithBPC,
|
||||||
};
|
};
|
||||||
for (const RenderingIntent intent : renderingIntents) {
|
for (const RenderingIntent intent : renderingIntents) {
|
||||||
const auto pipeline = ColorPipeline::create(color, color, intent);
|
const auto pipeline = ColorPipeline::create(color, color, intent);
|
||||||
|
|
Loading…
Reference in a new issue