Lines Matching refs:scanline
46 # 2006-06-15 Johann: Scanline iterator interface for large input files.
150 it is before PNG scanline filtering is applied. When the bit depth
794 # this filter type be used for every scanline as we do not
796 # could accidentally compute the wrong filtered scanline if
911 scanline = array('B', infile.read(row_bytes))
912 return scanline
934 generator yields each scanline of the reduced passes in turn, in
990 """Apply a scanline filter to a scanline. `type` specifies the
992 scanline as a sequence of bytes; `prev` specifies the previous
993 (unfiltered) scanline as a sequence of bytes. `fo` specifies the
1443 def undo_filter(self, filter_type, scanline, previous):
1444 """Undo the filter for a scanline. `scanline` is a sequence of
1446 `previous` is decoded previous scanline (for straightlaced
1448 images, it is the previous scanline in the reduced image, which
1450 When there is no previous scanline (the first row of a
1454 The scanline will have the effects of filtering removed, and the
1458 # :todo: Would it be better to update scanline in place?
1460 # updating scanline inplace makes the code 3 times faster
1462 result = scanline
1482 previous = array('B', [0]*len(scanline))
1490 # scanline.
1492 x = scanline[i]
1501 x = scanline[i]
1510 x = scanline[i]
1525 x = scanline[i]
1551 pngfilters.undo_filter_paeth)[filter_type](fu, scanline, previous, result)
1577 # The previous (reconstructed) scanline. None at the
1588 scanline = raw[source_offset:source_offset+row_size]
1590 recon = self.undo_filter(filter_type, scanline, recon)
1607 """Iterator that yields each scanline in boxed row flat pixel
1670 # The previous (reconstructed) scanline. None indicates first
1677 scanline = a[1:rb+1]
1679 recon = self.undo_filter(filter_type, scanline, recon)
2323 def undo_filter_sub(filter_unit, scanline, previous, result):
2329 # scanline.
2331 x = scanline[i]
2337 def undo_filter_up(filter_unit, scanline, previous, result):
2341 x = scanline[i]
2346 def undo_filter_average(filter_unit, scanline, previous, result):
2351 x = scanline[i]
2361 def undo_filter_paeth(filter_unit, scanline, previous, result):
2367 x = scanline[i]
2983 scanline = array('B', [30, 32, 34, 230, 233, 236])
2987 out = reader.undo_filter(0, cp(scanline), cp(scanprev))
2988 scanline)) # none
2989 out = reader.undo_filter(1, cp(scanline), cp(scanprev))
2991 out = reader.undo_filter(2, cp(scanline), cp(scanprev))
2993 out = reader.undo_filter(3, cp(scanline), cp(scanprev))
2995 out = reader.undo_filter(4, cp(scanline), cp(scanprev))
3002 scanline = array('B', [6, 10, 9, 100, 101, 102])
3004 out = reader.undo_filter(4, scanline, scanprev)