aboutsummaryrefslogtreecommitdiff
path: root/sixel.c (follow)
Commit message (Collapse)AuthorAgeLines
...
* sixel: clean up state machineDaniel Eklöf2020-02-22-91/+97
| | | | | Use proper state names, and implement the state machine using switch statements.
* sixel: use a struct coord for current sixel positionDaniel Eklöf2020-02-22-24/+22
|
* sixel: rename state SIXEL_SIXEL -> SIXEL_GROUNDDaniel Eklöf2020-02-22-6/+6
|
* sixel: raster: only resize image buffer if necessaryDaniel Eklöf2020-02-22-1/+3
|
* sixel: resize image buffer after receiving a "raster" commandDaniel Eklöf2020-02-22-0/+1
|
* sixel: resize image buffer dynamicallyDaniel Eklöf2020-02-22-23/+80
|
* sixel: add sixel_destroy()Daniel Eklöf2020-02-21-4/+13
|
* sixel: always bump row on unhookDaniel Eklöf2020-02-21-6/+4
|
* sixel: ugly hack to remove over-written sixel imagesDaniel Eklöf2020-02-21-0/+8
|
* sixel: calculate image height in (cell) rowsDaniel Eklöf2020-02-21-0/+1
|
* sixel: wip: maintain a list of finished, and "active" sixel imagesDaniel Eklöf2020-02-21-24/+20
| | | | | | | | | | | | | | | | | | | In unhook, add the generated image to a list of finished sixel images, along with positioning and size information. When rendering, loop this list of images, and render the images (or parts of) that are visible. When scrolling, check if any part of the images cover the re-cycled lines, and if so, remove the *entire* image from the list. This means we have the following limitations: * The renderer always renders the whole (visible area of) the image(s). There are times when this isn't necessary - for example, when the image is scrolled inside the visible area. * It would be nice if we could crop the image when parts of it is scrolled out.
* sixel: initial supportDaniel Eklöf2020-02-21-0/+284
This implements basic parsing of sixel data. Lots of limitations and temporary solutions as this is still work-in-progress: * Maximum image size hardcoded to 800x800 * No HLS color format support * Image is always rendered at 0x0 in the terminal