Changeset View
Changeset View
Standalone View
Standalone View
libs/image/kis_sequential_iterator.h
Show First 20 Lines • Show All 131 Lines • ▼ Show 20 Line(s) | |||||
132 | * pixel-by-pixel processing it is about twice faster(!) than a usual | 132 | * pixel-by-pixel processing it is about twice faster(!) than a usual | ||
133 | * hline iterator. | 133 | * hline iterator. | ||
134 | * | 134 | * | ||
135 | * The follows the "java-style" iterators rules. Before requesting the | 135 | * The follows the "java-style" iterators rules. Before requesting the | ||
136 | * first pixel from the iterator you should call nextPixel() to "jump over" | 136 | * first pixel from the iterator you should call nextPixel() to "jump over" | ||
137 | * this first pixel. After the jump is accomplished, you can easily request | 137 | * this first pixel. After the jump is accomplished, you can easily request | ||
138 | * the "jumped over" pixel data. | 138 | * the "jumped over" pixel data. | ||
139 | * | 139 | * | ||
140 | * The modified rules apply when the user wants accesses censequent pixels | 140 | * The modified rules apply when the user wants accesses consequent pixels | ||
141 | * in one go. The user first asks the iterator for the number of available | 141 | * in one go. The user first asks the iterator for the number of available | ||
142 | * consequent pixels, and then calls nextPixels(numConseqPixels). In this | 142 | * consequent pixels, and then calls nextPixels(numConseqPixels). In this | ||
143 | * case, iterator inserts a "virtual" pixel that one should jump over before | 143 | * case, iterator inserts a "virtual" pixel that one should jump over before | ||
144 | * doing any real iteration. | 144 | * doing any real iteration. | ||
145 | * | 145 | * | ||
146 | * Iteration in pixel-by-pixel manner: | 146 | * Iteration in pixel-by-pixel manner: | ||
147 | * | 147 | * | ||
148 | * \code{.cpp} | 148 | * \code{.cpp} | ||
▲ Show 20 Lines • Show All 161 Lines • Show Last 20 Lines |