[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kimageshop
Subject:    Re: GMIC in Krita
From:       David Revoy <davidrevoy () gmail ! com>
Date:       2013-04-14 17:48:06
Message-ID: CAPX1LSBf1gO+f7W8nPyqDq+sP4TEvGhiQGpZeRcZSpF8VRu8QQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Lukas : super !

@Silvio : Recolorize / Poster edges / Repair  are a cool choice :-)



2013/4/14 Lukast dev <lukast.dev@gmail.com>

> >> So my approach will be:
> >> a) convert layer actual color-space to FLOAT32 RGB(A), relayout pixel
> >> format (Krita uses bgrbgrbgrbgr, GMIC rrrrbbbbgggg)
> >
> >
> > Hm, I don't think so. Specially for float32 I created KoRgbF32Traits --
> > this means that the f32 and f16 colorspaces layout the pixel as rgba:
> >
> >    addChannel(new KoChannelInfo(i18n("Red")  , 0 * sizeof(float), 0,
> > KoChannelInfo::COLOR, KoChannelInfo::FLOAT32, 4, QColor(255, 0, 0)));
> >     addChannel(new KoChannelInfo(i18n("Green"), 1 * sizeof(float), 1,
> > KoChannelInfo::COLOR, KoChannelInfo::FLOAT32, 4, QColor(0, 255, 0)));
> >     addChannel(new KoChannelInfo(i18n("Blue") , 2 * sizeof(float), 2,
> > KoChannelInfo::COLOR, KoChannelInfo::FLOAT32, 4, QColor(0, 0, 255)));
> >     addChannel(new KoChannelInfo(i18n("Alpha"), 3 * sizeof(float), 3,
> > KoChannelInfo::ALPHA, KoChannelInfo::FLOAT32, 4));
> >
> > So not much conversion needed, I think
>
> Well, it still layout pixels in 2x2 image like this:
>
> rgbargbargbargba
>
> but GMIC asks for
>
> rrrrggggbbbbaaaa
>
> Lukas
> _______________________________________________
> Krita mailing list
> kimageshop@kde.org
> https://mail.kde.org/mailman/listinfo/kimageshop
>

[Attachment #5 (text/html)]

Lukas : super !<br><br>@Silvio : Recolorize / Poster edges / Repair  are a cool \
choice :-)<br><br><br><br><div class="gmail_quote">2013/4/14 Lukast dev <span \
dir="ltr">&lt;<a href="mailto:lukast.dev@gmail.com" \
target="_blank">lukast.dev@gmail.com</a>&gt;</span><br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div class="im">&gt;&gt; So my approach will be:<br> &gt;&gt; \
a) convert layer actual color-space to FLOAT32 RGB(A), relayout pixel<br> &gt;&gt; \
format (Krita uses bgrbgrbgrbgr, GMIC rrrrbbbbgggg)<br> &gt;<br>
&gt;<br>
&gt; Hm, I don&#39;t think so. Specially for float32 I created KoRgbF32Traits --<br>
&gt; this means that the f32 and f16 colorspaces layout the pixel as rgba:<br>
&gt;<br>
&gt;    addChannel(new KoChannelInfo(i18n(&quot;Red&quot;)  , 0 * sizeof(float), \
0,<br> &gt; KoChannelInfo::COLOR, KoChannelInfo::FLOAT32, 4, QColor(255, 0, 0)));<br>
&gt;     addChannel(new KoChannelInfo(i18n(&quot;Green&quot;), 1 * sizeof(float), \
1,<br> &gt; KoChannelInfo::COLOR, KoChannelInfo::FLOAT32, 4, QColor(0, 255, 0)));<br>
&gt;     addChannel(new KoChannelInfo(i18n(&quot;Blue&quot;) , 2 * sizeof(float), \
2,<br> &gt; KoChannelInfo::COLOR, KoChannelInfo::FLOAT32, 4, QColor(0, 0, 255)));<br>
&gt;     addChannel(new KoChannelInfo(i18n(&quot;Alpha&quot;), 3 * sizeof(float), \
3,<br> &gt; KoChannelInfo::ALPHA, KoChannelInfo::FLOAT32, 4));<br>
&gt;<br>
&gt; So not much conversion needed, I think<br>
<br>
</div>Well, it still layout pixels in 2x2 image like this:<br>
<br>
rgbargbargbargba<br>
<br>
but GMIC asks for<br>
<br>
rrrrggggbbbbaaaa<br>
<br>
Lukas<br>
<div class="HOEnZb"><div \
class="h5">_______________________________________________<br> Krita mailing list<br>
<a href="mailto:kimageshop@kde.org">kimageshop@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kimageshop" \
target="_blank">https://mail.kde.org/mailman/listinfo/kimageshop</a><br> \
</div></div></blockquote></div><br>



_______________________________________________
Krita mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic