Commit d18d2c75 authored by Wolthera van Hövell's avatar Wolthera van Hövell 🔤 Committed by Wolthera van Hövell
Browse files

Fix assert caused by incorrect colorspace comparison.

Proly a copy-paste error.
This more or less shows that noone in 10+ years has used our YCbCr support.
parent 45c00935
......@@ -17,7 +17,7 @@
#include <kis_dom_utils.h>
YCbCrF32ColorSpace::YCbCrF32ColorSpace(const QString &name, KoColorProfile *p)
: LcmsColorSpace<KoYCbCrF32Traits>(colorSpaceId(), name, TYPE_YCbCrA_FLT, cmsSigXYZData, p)
: LcmsColorSpace<KoYCbCrF32Traits>(colorSpaceId(), name, TYPE_YCbCrA_FLT, cmsSigYCbCrData, p)
{
const IccColorProfile *icc_p = dynamic_cast<const IccColorProfile *>(p);
Q_ASSERT(icc_p);
......
......@@ -17,7 +17,7 @@
#include <kis_dom_utils.h>
YCbCrU16ColorSpace::YCbCrU16ColorSpace(const QString &name, KoColorProfile *p)
: LcmsColorSpace<KoYCbCrU16Traits>(colorSpaceId(), name, TYPE_YCbCrA_16, cmsSigXYZData, p)
: LcmsColorSpace<KoYCbCrU16Traits>(colorSpaceId(), name, TYPE_YCbCrA_16, cmsSigYCbCrData, p)
{
addChannel(new KoChannelInfo(i18n("Y"), KoYCbCrU16Traits::Y_pos * sizeof(quint16), KoYCbCrU16Traits::Y_pos, KoChannelInfo::COLOR, KoChannelInfo::UINT16, sizeof(quint16), Qt::cyan));
addChannel(new KoChannelInfo(i18n("Cb"), KoYCbCrU16Traits::Cb_pos * sizeof(quint16), KoYCbCrU16Traits::Cb_pos, KoChannelInfo::COLOR, KoChannelInfo::UINT16, sizeof(quint16), Qt::magenta));
......
......@@ -18,7 +18,7 @@
#include <kis_dom_utils.h>
YCbCrU8ColorSpace::YCbCrU8ColorSpace(const QString &name, KoColorProfile *p)
: LcmsColorSpace<KoYCbCrU8Traits>(colorSpaceId(), name, TYPE_YCbCrA_8, cmsSigXYZData, p)
: LcmsColorSpace<KoYCbCrU8Traits>(colorSpaceId(), name, TYPE_YCbCrA_8, cmsSigYCbCrData, p)
{
addChannel(new KoChannelInfo(i18n("Y"), KoYCbCrU8Traits::Y_pos * sizeof(quint8), KoYCbCrU8Traits::Y_pos, KoChannelInfo::COLOR, KoChannelInfo::UINT8, sizeof(quint8), Qt::cyan));
addChannel(new KoChannelInfo(i18n("Cb"), KoYCbCrU8Traits::Cb_pos * sizeof(quint8), KoYCbCrU8Traits::Cb_pos, KoChannelInfo::COLOR, KoChannelInfo::UINT8, sizeof(quint8), Qt::magenta));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment