Commit Graph

180 Commits (fef33ad2aa9616041bc60a3e57d291473c1ecde4)

Author SHA1 Message Date
nick black e29701cac3
notcurses-tester: accept -l to enable all logging 3 years ago
nick black dc87bd7c79
ncvisual_blitset_geom: no pixel size checks for scale/stretch #1572 3 years ago
nick black 95072d0f5c
No glyph emission on sprixelated planes
Guard against attempts to output glyphs to a sprixelated
plane in ncplane_putc_yx(), the lowest-level common end
of all ncplane_put*() functions. Add unit test #1572.
3 years ago
nick black 5a72383cb0
reject sprixels larger than plane, add unit test #1572 3 years ago
Nick Black ba6088578d
Sixel unit tests #1580 (#1586)
Two unit tests on Sixel round trips, one with wipes #1580.
3 years ago
nick black 6dcb3229e4
unit test for sixel deepclean #1580 3 years ago
Nick Black c8680255be
palette256 -> ncpalette #1570 (#1573)
everything prefixed with palette256 is now prefixed with ncpalette
3 years ago
nick black 31dfa86725
clamp Sixel at a multiple of 6 #1560 4 years ago
nick black c3c5b397a3
run ncvisual_resize() in bitmap tests #1559 4 years ago
nick black 67bac13f67
kill off-by-one in pixel scaling #1558 4 years ago
nick black f19c6c88ff
add BitmapStretch unit test #1558 4 years ago
nick black 7d61457b37
ncvisual_inflate: call ncvisual_seed_details() #1546 4 years ago
nick black 1722714ee6 tighten up visual unit tests 4 years ago
nick black 2ebe209c7f implement ncvisual_inflate(), add unit test #1546 4 years ago
nick black 5a702512c5 [bitmaps] be less aggressive about third phase
When we scribble underneath a TRANSPARENT or ANNIHILATED
sprixcell, or even an OPAQUE or MIXED one in Kitty, we
needn't invalidate the sprixel. Perform these checks for
less aggressive invalidation, eliminating the flicker we
were seeing in xray using Kitty. Closes #1522.
4 years ago
nick black b070b69eb2
get last remaining cell_ functions -> nccell_ #1532 4 years ago
nick black 7ad5219fa2
convert another crop of cell_ to nccell_ #1532 4 years ago
nick black 76bcb8f0af
zaxis test: update to api3 4 years ago
nick black 96ac640733
cell->nccell 4 years ago
nick black 657ed15632
cell_on_styles -> nccell_on_styles() #1532 4 years ago
Nick Black e591ec2e98
cell -> nccell throughout much of remaining API (#1535)
cell -> nccell throughout much of the API #1532
4 years ago
nick black 0c566cd74a [ncvisual] pipe transcolor through #1518 4 years ago
nick black ff76dba6ed
cell_strdup -> nccell_strdup 4 years ago
nick black d504e972cc
cell_release -> nccell_release 4 years ago
nick black 1f67f540e6
[stacking] guard tests for quadrants 4 years ago
nick black 1720457467
[rotate] fix unit tests for odd number of columns 4 years ago
nick black 17a27427ec
[visual] guard quadblitter tests with check 4 years ago
nick black 80d93fdfb6
disable quadrants except where whitelisted #1517
Require a known-good TERM heuristic match to enable
quadrants (NCBLIT_2x2); they otherwise decay to halves
(NCBLIT_2x1). The only terminal that supports quadrants
but does not support sextants is the Linux console, where
we program quadrants directly into the font table,
like a beast. Closes #1517, and #1298 if we're lucky.
4 years ago
Nick Black 04b1ba8ed2
Dankamongmen/unify geom (#1514)
deprecate ncvisual_geom() in favor of new ncvisual_blitter_geom(), which allows caller to get the blitter used. replace the checks and calculations in ncvisual_render() with a call to ncvisual_blitter_geom(), unifying the two paths (and eliminating several bugs in the unloved ncvisual_geom()).
4 years ago
nick black d153ccb8f4
[ncvisual] properly size created plane
if we go into ncvisual_render() looking to render a number
of rows not evenly divisible by the scaling factor, we need
to get an extra row (duh). correct ncvisual_render_cell() to
reflect this. the blitters already know to fill this line in
with transparency wherever the image is not defined. fix up
rotation unit tests to reflect this. closes #1513.
4 years ago
nick black 05082fc277
ncplane_as_rgba(), returns pixel geometry along with bitmap #1508 4 years ago
nick black 8db054ede7
kill off get_controlling_tty in favor of get_tty_fd #1504 4 years ago
nick black 2f47d9adef
[bitmaps] new unit test LoadVideoPixelScaleDifferentPlanes 4 years ago
nick black d4883d30f2
[tests] add directmode bitmap test 4 years ago
nick black dd6d9392ec
[unittests] add PixelTAMSetup test #1445 4 years ago
nick black 259c5f5e3e
[tests] pixel test shouldn't check for wipe function 4 years ago
nick black cef16e77ce
disable PixelWipe test until we can keep it from OOMing ctest 4 years ago
nick black 913f06d59c
[PixelWipeImages] actually test image wiping 4 years ago
nick black 0434d75689
[unittests] correct checks for putchar 4 years ago
nick black c67981d668
[unittests] don't export sprite_wipe_cell() 4 years ago
nick black 57114c8005
[bitmaps] remove redundant PixelWipeBlocks test 4 years ago
nick black 85d0df491e
[bitmap] intensify unit tests 4 years ago
nick black 78c8e70933 [planes] add NCPLANE_OPTION_MARGINALIZED #1472 4 years ago
nick black a3a4f40fa0 [bitmaps] add a big unit test on wiping 4 years ago
nick black cd297ff4d2 [tests] add pixel video test, direct mode scale test 4 years ago
nick black 6f4a9e089c [tests] unit test for directmode image rendering 4 years ago
nick black 828cce634a [capabilites] remove redundant notcurses_canpixel() 4 years ago
nick black 32def3a600
[nctabbed] notcurses_stop() ending unit tests 4 years ago
nick black 978d872307
[nctabbed] get Add test working 4 years ago
MasFlam c677a4fd8a
Add the nctabbed widget (#1431)
Tabs for the people!

fixes #986
4 years ago
nick black ddac4706d8 [visual-tests] update media reference 4 years ago
nick black 92b2165b39
use fputs_unlocked() everywhere we can 4 years ago
nick black 3a3baae753 new unit test PixelCellWipePolychromatic 4 years ago
nick black 11108e4d95 [kitty] kitty_cell_wipe() now works perfectly 4 years ago
nick black 07594606fd [kitty] finish sprite_kitty_cell_wipe 4 years ago
nick black c067c2bfd9 [kitty] further work on kitty_cell_wipe() 4 years ago
nick black fc4c0a2d9c [kitty] most of sprite_kitty_cell_wipe() 4 years ago
nick black 9270a58b2d [pixel] unit test on sprixel_cell_wipe() 4 years ago
nick black 6ab325a36e [tinfo] zero out sixel_maxx/sixel_maxy 4 years ago
nick black 232e774c61 notcurses-tester: don't set LOGLEVEL_ERROR
this ends up just confusing people more often than it
gets us useful bug reports. indeed, one distribution
disabled our tests because "it says it can't run without
a real tty".
4 years ago
nick black b2ef9a074b add simple pixel-rendering unit test 4 years ago
nick black 08b65a8699 sprixels: introduce sprixel cache #1401 4 years ago
nick black 9b15854ef4 direct mode unit test fix for sgr0 #1344 4 years ago
nick black a8aec8d8d1 directmode tests: handle non-sgr case #1344 4 years ago
nick black d8d8251a0e
notcurses-tester: enforce minimum geometry 4 years ago
nick black aa4da3f335
nctree: drop bchannels from options 4 years ago
Nick Black e30b12a480
nctree (#1361)
The nctree widget, PoC, and unitt rs #1164.
4 years ago
nick black c014a2d55e
quadblitter: minimize total rgb distance
Previously, the quadblitter compared the external two pixels
against the two lerps, and if the closest was closer to the
primary lerp than the secondary, trilerped the closest with
the primary pair. Instead, calculate the total RGB distance,
and for whichever external pixel is closer to the primary
lerp, calculate the trilerp and the new candidate difference.
if the candidate difference is less than the total distance,
select it and perform the trilerp. This improves upon the
"twinkling problem" described in #1354, though it does not
entirely resolve it. Performance change is negligible. Add a
unit test for this change.
4 years ago
nick black 2741b049cb
don't expose nctree in 2.2.2 4 years ago
nick black 528c7f589f nctree: traversal unit tests #1644 4 years ago
nick black ad7936ccc3 nctree_prev(): implement it #1164 4 years ago
nick black 74079c4b65 nctree: test nctree_focused() #1164 4 years ago
nick black 3aa4311559 nctree: test NULL callback case for real #1164 4 years ago
nick black 85e3e1d79a implement nctree_offer_input() 4 years ago
nick black 41d056b8d6 nctree tests: render planes #1164 4 years ago
nick black bb14694000 add nctree movement api #1164 4 years ago
nick black 8de0453148 initial nctree unit tests #1164 4 years ago
nick black 1b1e0b88be
ncplane_qrcode: drop blitter argument, update docs 4 years ago
nick black 97a92cbbd7
notcurses-tester: always reset terminal on exit 4 years ago
nick black 38e9051888
move tests to src/tests 4 years ago