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

List:       kde-kimageshop
Subject:    Re: KisPainter::bitBlt using random accessor
From:       Dmitry Kazakov <dimula73 () gmail ! com>
Date:       2010-06-11 16:37:10
Message-ID: AANLkTinlD3QV_k3NBqjgH9zmiQxiGLi29l87IcXg4oZD () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Fri, Jun 11, 2010 at 1:24 PM, Boudewijn Rempt  wrote:

> On Friday 11 June 2010, Dmitry Kazakov wrote:
> > Hi, All!
> >
> > Why KisPainter uses KisRandomAccessor for accessing the pixels? Why
> doesn't
> > it use rect iterator? In many cases (at least for layer stack update)
> there
> > will be no shift between data managers, so the tiles will be copied at
> > once. So why?
>
> The rect iterator is not possible because tiles are not necessarily
> aligned.
>

why "not possible"? I always thought that "not aligned" == "less efficient",
but it should be surely possible! Don't i understand something?



> The random accessor at the point where it began to be used in KisPainter
> had
> caching; the hline iterators didn't have that. The hline iterator now does
> have caching, but we also have the even faster iterators NG, and one of the
> tasks for 2.3 is to replace all iterators with the new generation
> iterators.
>
>


-- 
Dmitry Kazakov

[Attachment #5 (text/html)]

<br><br><div class="gmail_quote">On Fri, Jun 11, 2010 at 1:24 PM, Boudewijn Rempt  \
<span dir="ltr"></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt \
0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> \
<div><div></div><div class="h5">On Friday 11 June 2010, Dmitry Kazakov wrote:<br> \
&gt; Hi, All!<br> &gt;<br>
&gt; Why KisPainter uses KisRandomAccessor for accessing the pixels? Why \
doesn&#39;t<br> &gt; it use rect iterator? In many cases (at least for layer stack \
update) there<br> &gt; will be no shift between data managers, so the tiles will be \
copied at<br> &gt; once. So why?<br>
<br>
</div></div>The rect iterator is not possible because tiles are not necessarily \
aligned.<br></blockquote><div><br>why &quot;not possible&quot;? I always thought that \
&quot;not aligned&quot; == &quot;less efficient&quot;, but it should be surely \
possible! Don&#39;t i understand something?<br> <br>  </div><blockquote \
class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, \
204, 204); padding-left: 1ex;"> The random accessor at the point where it began to be \
used in KisPainter had<br> caching; the hline iterators didn&#39;t have that. The \
hline iterator now does<br> have caching, but we also have the even faster iterators \
NG, and one of the<br> tasks for 2.3 is to replace all iterators with the new \
generation iterators.<br> <font color="#888888"><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Dmitry Kazakov<br>



_______________________________________________
kimageshop 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