Abstract: When scanning with a depth of 1bits, unpack the color to 8bits immediately.
It will make reading the scan line by line easier

Signed-off-by: Jerome Flesch <jflesch@wyplay.com>
Abstract: Rearrange the scan API + in memory, store the scan being done splited pixel line by pixel line

Signed-off-by: Jerome Flesch <jflesch@wyplay.com>
Abstract: Make it possible to get chunk of the image being scanned

Signed-off-by: Jerome Flesch <jflesch@wyplay.com>
Abstract: Make the expected size of the image accessible

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
scan.py: don't run if the argument is -h or --help

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
abstract: Fix the code so it passes unit tests again

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Abstract_th: expose the new API

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Tests: Use the new API (+ Fix abstract_th ...)

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Abstract: Add tests on scan.expected_size, scan.available_lines, and scan.get_image()

Signed-off-by: Jerome Flesch <jflesch@gmail.com>