Iterator that yields each scanline; each scanline being a sequence of values. `byte_rows` should be an iterator that yields the bytes of each row in turn.
(self, byte_rows)
| 1521 | return a |
| 1522 | |
| 1523 | def _iter_bytes_to_values(self, byte_rows): |
| 1524 | """ |
| 1525 | Iterator that yields each scanline; |
| 1526 | each scanline being a sequence of values. |
| 1527 | `byte_rows` should be an iterator that yields |
| 1528 | the bytes of each row in turn. |
| 1529 | """ |
| 1530 | |
| 1531 | for row in byte_rows: |
| 1532 | yield self._bytes_to_values(row) |
| 1533 | |
| 1534 | def _bytes_to_values(self, bs, width=None): |
| 1535 | """Convert a packed row of bytes into a row of values. |