notcurses/tests
Nick Black ebcba82d4b
Fully general ncvisual layer (#647)
This represents an essentially complete rewrite of ncvisual and associated code. It had two major goals:

Improve the ncvisual API based off lessons learned, pursuant to the upcoming API freeze. In particular, I wanted to:

decouple ncvisuals from ncplanes. It should be possible to render a ncvisual to multiple planes, with different scaling each time. It should be possible to create an ncvisual without a plane, etc.
normalize the various ways of constructing an ncvisual -- file, memory, plane, etc.
Support multiple blitters, from 7-bit ASCII to Sixel. This required writing the blitters in several cases, and they're not yet in their final implementations (but the API is fine)
I have not yet unified Plots and Visuals, and might not, given that the Plot code works fine. We could at this point implement Plots in terms of Visuals, though -- the blitter backend range has been unified. Sixel is not yet implemented, though it is listed.

There is a new POC tool, blitter. It renders its arguments using all possible blitter+scaling combinations. Another new POC, resize, displays its argument, then resizes it to the screen size and displays that, explicitly making use of ncvisual_resize() rather than a scaling parameter to ncvisual_render().

This also eliminates some memory leaks and bugs we were seeing in trunk, and brings in Sixel scaffolding.

The C++ wrapper will also need patching back up; I cut most of it down while wrestling with this crap, urk.

Closes #638, #562, and #622.
2020-05-28 21:16:58 -04:00
..
cell.cpp streamline unit test common initialization 2020-05-17 07:57:21 -04:00
channel.cpp Prep for serious rusting #101 (#354) 2020-02-18 12:36:16 -05:00
direct.cpp direct mode unit tests: allow init failure 2020-05-17 08:07:25 -04:00
egcpool.cpp notcurses-tester: run passing tests in C locale #325 2020-05-11 05:59:55 -04:00
Exceptions.cpp ncpp: stop() resets _instance, add unit test #538 2020-05-24 03:34:46 -04:00
fade.cpp ncpp: stop() resets _instance, add unit test #538 2020-05-24 03:34:46 -04:00
fds.cpp Fully general ncvisual layer (#647) 2020-05-28 21:16:58 -04:00
fills.cpp ncpp unit tests: check get_instance exception #538 2020-05-20 18:36:25 -04:00
geom.cpp streamline unit test common initialization 2020-05-17 07:57:21 -04:00
input.cpp streamline unit test common initialization 2020-05-17 07:57:21 -04:00
internal.cpp tests: collapse RGB conversions into one TEST_CASE 2020-05-20 18:35:47 -04:00
main.cpp ncpp: stop() resets _instance, add unit test #538 2020-05-24 03:34:46 -04:00
main.h ncpp: stop() resets _instance, add unit test #538 2020-05-24 03:34:46 -04:00
menu.cpp streamline unit test common initialization 2020-05-17 07:57:21 -04:00
metric.cpp metric: don't allow scales that cause overflow #611 2020-05-17 04:16:02 -04:00
ncplane.cpp streamline unit test common initialization 2020-05-17 07:57:21 -04:00
Ncpp.cpp ncpp: stop() resets _instance, add unit test #538 2020-05-24 03:34:46 -04:00
notcurses.cpp streamline unit test common initialization 2020-05-17 07:57:21 -04:00
palette.cpp streamline unit test common initialization 2020-05-17 07:57:21 -04:00
plot.cpp streamline unit test common initialization 2020-05-17 07:57:21 -04:00
reader.cpp streamline unit test common initialization 2020-05-17 07:57:21 -04:00
reel.cpp streamline unit test common initialization 2020-05-17 07:57:21 -04:00
resize.cpp streamline unit test common initialization 2020-05-17 07:57:21 -04:00
rotate.cpp Fully general ncvisual layer (#647) 2020-05-28 21:16:58 -04:00
scrolling.cpp streamline unit test common initialization 2020-05-17 07:57:21 -04:00
selector.cpp streamline unit test common initialization 2020-05-17 07:57:21 -04:00
visual.cpp Fully general ncvisual layer (#647) 2020-05-28 21:16:58 -04:00
wide.cpp streamline unit test common initialization 2020-05-17 07:57:21 -04:00
zaxis.cpp O(1) z-axis moves #623 2020-05-20 15:32:27 -04:00