KisPainter::bitBlt using random accessor

Dmitry Kazakov dimula73 at gmail.com
Fri Jun 11 18:37:10 CEST 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kimageshop/attachments/20100611/fceb516f/attachment.htm 


More information about the kimageshop mailing list