Commit Graph

5202 Commits (1a7c5172f476c07fb607997b8168b808da7b2a5b)
 

Author SHA1 Message Date
nick black 8eafcaee5b textplay: add video border 3 years ago
nick black 2978a5194d textplay: better colorization 3 years ago
nick black 2695addd5f textplay: colorize 3 years ago
nick black 0d81fb25c7 textplay: read stdin, play to plane with ncplane_puttext() 3 years ago
Nick Black 2c5d938cbd
Paint sprixels bottom-to-top (#1589)
* Paint sprixels in order, bottom-to-top

We don't want to have to track sprixel order whenever someone
moves an ncplane, so just keep a list growing backwards as we
pass top-to-bottom in notcurses_render_internal(). Each time
we hit a sprixel plane, splice it out of the sprixel list, and
add it to the front of our temporary list. When we hit the
bottom, stick this temporary list on the end of our existing
list (any such planes are to be deleted, which comes before
drawing). Closes #1575.

* reorder collected sprixellist; solves kitty but breaks sixel =/ #1575

* remove debugging cruft

* [rust] fix up mergedown mutability
3 years ago
nick black 0c2749707c
sprixel stacking unit test #1575 3 years ago
nick black 787b180fa9
ncvisual_blitset_geom: deliver on y/x contract #1588 3 years ago
nick black da2db080c9
[yield] work for all blitters/geometries #1588 3 years ago
nick black 375a51b55b
keller: check ncvisual_blitter_geom() return value #1588 3 years ago
nick black 1a16d34b5c
view: move pic-in-pic to row 1 from top #1577 3 years ago
nick black 5fd6177c17
ncplane_resize_internal(): no work necessary when old pos+size are the same #1588 3 years ago
nick black 96981c8e75
extract paint_sprixel() as single loop #1587 3 years ago
nick black d8e94429c2
rename sixel/kitty_delete -> destroy to match sprixel_destroy() 3 years ago
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 311fbfa8e8
ncblit_pixel plane size checks: scale geom #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 cc73811dd4
sprixelated planes may be resized after all #1572 3 years ago
nick black dc347c99d7
no resizing of sprixelated planes #1572 3 years ago
nick black a926fe70f8
intro: render the orce only after our first frame 3 years ago
nick black d3877cbe44
NCBLIT_PIXEL restrictions for planes
Go ahead and allow the standard plane to be used with
NCBLIT_PIXEL, but enforce placement at the origin with
any provided plane. Implement this in ncvisual_blitter_geom()
so that it applies everywhere #1572.
3 years ago
nick black ea809345e3
kill tacachey/tacachex in ncplane #1572 3 years ago
nick black cc657bbe35
notcurses_plane(3): document sprixelated effects #1585 3 years ago
nick black 23ef5313e3
document pixel blitting vis-a-vis planes #1585 #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 4cceb01acf
fix inputs to sws_getCachedContext for ffmpeg #1559 3 years ago
nick black b58919f145
[sixel] correct deepclean #1580 3 years ago
nick black 68db5d5df6
notcurses(3) add paragraph on visuals #1585 3 years ago
nick black b54ab84b5b yield: properly size legend plane for final 100% 3 years ago
nick black 6dcb3229e4
unit test for sixel deepclean #1580 3 years ago
nick black 445bf4b58f
Merge branch 'master' of github.com:dankamongmen/notcurses 3 years ago
nick black c84b1cb778
drone: use new 2021-04-22a autobuilders 3 years ago
joseLuís bb669965c2 [rust] #1339 1st fix attempt multiple architecture bugs
# List of architectures per type of bug

>  `__va_list_tag` not found
> (differentiate between x86_64|s390x and the rest)
i686:
aarch64:
armv7l: (a similar name exists in the module: `__va_list`)
ppc64le:

- [x] bindings.rs:24

> (expected u32, found u64)
> (differentiate between i686|armv7l and the rest)
i686:
armv7l:

- [x] src/notcurses/methods.rs:531:75 `notcurses_render_to_buffer`
- [x] src/plane/reimplemented.rs:167:55 `ncplane_putnstr_yx`

> expected [0;32]
> (differentiate between i686|armv7l and the rest)
i686:
armv7l:

- [x] src/signal.rs:15:23 `__val: [0; 16]`

> (expected `u8`, found `i8`)
> (differentiate between x86_64|i686 and the rest)
aarch64:
armv7l:
ppc64le:
s390x:

- [x] src/direct/methods.rs:663:60 `ncdirect_hline_interp`
- [x] src/direct/methods.rs:685:60 `ncdirect_vline_interp`
- [x] src/notcurses/methods.rs:531:65 `notcurses_render_to_buffer`
- [x] src/plane/methods.rs:1901:17
- [x] src/plane/reimplemented.rs:697:13
3 years ago
joseLuís 9e2add4e46 [rust] update capabilities, support new functions.
- add new Notcurses methods: `canhalfblock()` and `canquadrant()`.
- add doc links to NCBLIT_* flags from the capabilities methods.
- update the full-capabilites example to include `canhalfblock`, `canquadrant`,
  `canchangecolor` and `canfade` functions.
- rustfmt
3 years ago
joseLuís 97d8c91a1a [rust] palette256 -> ncpalette #1573 3 years ago
Nick Black c8680255be
palette256 -> ncpalette #1570 (#1573)
everything prefixed with palette256 is now prefixed with ncpalette
3 years ago
nick black 5e6862f34c
per-ncpile sprixel list #1462 3 years ago
nick black d1a01e8fe8
bitmaps: never allow the last row to be used #1571 3 years ago
nick black 41d129c1d2
[view] name all planes for debug 3 years ago
nick black c7d284a9af
demo: make debug plane 81 wide, with transparent last column 3 years ago
nick black f4aa419a31
add notcurses_canhalfblock()/notcurses_canquadrant() #1575 3 years ago
nick black 9b38fe515c
ncdirect_stream: need to call new pixel_remove #1537 3 years ago
joseLuís 5c216c2f9b [rust] blitter related updates
- move blitter type, NCBLIT_* constants and NcPixelGeometry from the plane module to the visual module.
- add information about blitter graceful degradation the NcBlitter type.
- add cross linking from/to the NCVISUAL_OPTION_NODEGRADE flag.
- update the full-capabilites example to include braille.
3 years ago
joseLuís a3017033a6 [rust] new example issue-1573 #1573 3 years ago
nick black f665828712
sixel: deepclean on any draw
Whether a draw is due to a move or a simple invalidation,
we need to go ahead and apply any outstanding deepclean to
the sixel beforehand. This eliminates the last bit of
flicker in the intro demo, at the orca's first location.
Also, never emit a '-$' sequence when deepcleaning a sixel.
Closes #1574. Closes #1568.
3 years ago
joseLuís c57a7b33cf [rust] derive Debug for Nc & NcD 3 years ago
nick black 1b7ea2037a
kitty_delete: always damage if s->n link is broken on hide #1562 3 years ago
nick black 0cddfdde7b
sprixel_debug: print plane location 3 years ago
nick black d8004ef508
kitty: return -1 on failed fprintf in kitty_delete 3 years ago