<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/sixel.h, branch 1.14.0</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.14.0</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.14.0'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2022-10-10T15:19:18Z</updated>
<entry>
<title>sixel: add sixel_reflow_grid()</title>
<updated>2022-10-10T15:19:18Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-10-09T14:01:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f70c34c5a8c6e89f6591e08fe3e26b9f0f44e6d2'/>
<id>urn:sha1:f70c34c5a8c6e89f6591e08fe3e26b9f0f44e6d2</id>
<content type='text'>
This function reflows all sixels in the specified grid.

The pre-existing sixel_reflow() function is a shortcut for

  sixel_reflow_grid(term, &amp;term-&gt;normal)
  sixel_reflow_grid(term, &amp;term-&gt;alt);
</content>
</entry>
<entry>
<title>sixel: implement P2=1 - transparent pixels</title>
<updated>2021-03-11T16:34:19Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-09T16:23:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7d315d7bf9ab0376468929f0e41fbac98370e035'/>
<id>urn:sha1:7d315d7bf9ab0376468929f0e41fbac98370e035</id>
<content type='text'>
When P2=1, empty pixels are transparent.

This patch also changes the behavior of P2=0|2, from setting empty
pixels to the default background color, to instead use the *current*
background color.

To implement this, a couple of changes are needed:

* Sixel pixels always use alpha=1.0, except for *empty* cells when
  P2=1 (i.e. transparent pixels).
* The renderer draws sixels with the OVER operator, instead of the SRC
  operator.
* The renderer *must* now render the cells beneath the sixel. As an
  optimization, this is only done for sixels where P2=1. I.e. for
  fully opaque sixels, there’s no need to render the cells beneath.

The sixel renderer isn’t yet hooked into the multi-threaded
renderer. This means *rows* (not just the cells) beneath
maybe-transparent sixels are rendered single-threaded.

Closes #391.
</content>
</entry>
<entry>
<title>sixel: change default max size to 10000x10000</title>
<updated>2020-11-23T19:10:55Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-11-23T19:10:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ba8b15d67592c3dfde264ccd441699377948c4cf'/>
<id>urn:sha1:ba8b15d67592c3dfde264ccd441699377948c4cf</id>
<content type='text'>
It used to be the size of the window. This caused images to be cropped
when the application emitting them didn’t change the max size.
</content>
</entry>
<entry>
<title>sixel: implement reflow</title>
<updated>2020-10-09T05:44:16Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-10-04T11:12:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=dbfc636ade8bd59a4a5af4531c19af8a163e8c09'/>
<id>urn:sha1:dbfc636ade8bd59a4a5af4531c19af8a163e8c09</id>
<content type='text'>
Move sixel reflow from grid_reflow() to sixel_reflow(). This lets us
use internal sixel functions to update the sixels.

Note that grid_reflow() still needs to remap the sixelss coordinates.
</content>
</entry>
<entry>
<title>sixel: add sixel_cell_size_changed()</title>
<updated>2020-10-09T05:44:16Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-10-04T11:09:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=52a715589748b12f379b0d9b67dc57efd43f2589'/>
<id>urn:sha1:52a715589748b12f379b0d9b67dc57efd43f2589</id>
<content type='text'>
This function should be called *after* the cell dimensions have
changed, but *before* resizing/reflowing the grids.
</content>
</entry>
<entry>
<title>Merge branch 'master' into sixel-performance</title>
<updated>2020-06-29T20:03:26Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-29T20:03:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=fad5838dbaba327ea16496bbe768056b10041897'/>
<id>urn:sha1:fad5838dbaba327ea16496bbe768056b10041897</id>
<content type='text'>
</content>
</entry>
<entry>
<title>scroll: destroy scrolled out sixels before scroll is applied</title>
<updated>2020-06-29T20:01:02Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-29T20:01:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=62be729c45ade3759ab0084808bbea491ca5c587'/>
<id>urn:sha1:62be729c45ade3759ab0084808bbea491ca5c587</id>
<content type='text'>
The logic that breaks out of sixel loops does not work for rows that
has already wrapped around.

Thus, we need to destroy sixels that are about to be scrolled
out *before* we actually scroll.

Since this is the *only* time we destroy sixels (instead of
overwriting it), rename the sixel functions. And, since they now do a
very specific thing, they can be greatly simplified (and thus faster).
</content>
</entry>
<entry>
<title>sixel: destroy all sixels when font size is decreased</title>
<updated>2020-06-29T19:53:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-29T19:53:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8f5e6e85e0401a0071814c6dac7f16adb3b0b6e4'/>
<id>urn:sha1:8f5e6e85e0401a0071814c6dac7f16adb3b0b6e4</id>
<content type='text'>
If changing the font size causes the cell size to decrease, either
horizontally or vertically (or both), then delete all sixels since the
grid space they allocated no longer is enough to hold the images.
</content>
</entry>
<entry>
<title>sixel: overwrite: pass 'width' to sixel_overwrite_at_cursor()</title>
<updated>2020-06-28T09:01:19Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-28T09:01:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4006fc86e4af90bb302e0da98dbbcc8152950f12'/>
<id>urn:sha1:4006fc86e4af90bb302e0da98dbbcc8152950f12</id>
<content type='text'>
This is necessary to handle multi-column characters correctly.
</content>
</entry>
<entry>
<title>sixel: improve descriptions of sixel_delete_* and sixel_overwrite_*</title>
<updated>2020-06-27T13:32:33Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-27T13:32:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=1915e53629f93184e3b82d73dea2bd22cc5a780c'/>
<id>urn:sha1:1915e53629f93184e3b82d73dea2bd22cc5a780c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sixel: split -&gt; overwrite</title>
<updated>2020-06-27T13:29:47Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-27T13:29:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=186a07c364536dd482938ba9a0ce0a4d7e6d74c6'/>
<id>urn:sha1:186a07c364536dd482938ba9a0ce0a4d7e6d74c6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: erasing characters now splits sixels instead of deleting them</title>
<updated>2020-06-27T13:22:31Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-27T13:22:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ae727e372abfb5cd516f1fbab0fff28499f7d02b'/>
<id>urn:sha1:ae727e372abfb5cd516f1fbab0fff28499f7d02b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sixel: refactor handling of wrap-around delete- and split regions</title>
<updated>2020-06-27T11:56:13Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-27T11:56:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e896c2fa5575120469e7571d590bf03e4f5c803c'/>
<id>urn:sha1:e896c2fa5575120469e7571d590bf03e4f5c803c</id>
<content type='text'>
Handle these on a higher abstraction level. The low level functions
that detect sixel intersections now assume the specified rectangle (or
line region) does *not* cross the wrap-around.

This is ensured by detecting a wrap-around region before hand, and
splitting it up into two, non wrapping regions.
</content>
</entry>
<entry>
<title>sixel: add sixel_split_by_rectangle()</title>
<updated>2020-06-27T10:45:22Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-27T10:45:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=dfc205e706ef261edcbae0e04e8ba5e1d225a886'/>
<id>urn:sha1:dfc205e706ef261edcbae0e04e8ba5e1d225a886</id>
<content type='text'>
This function splits a sixel image into up to four pieces. The four
pieces correspond to the relative complement (set difference) of the
sixel image and the specified rectangle.

Use this function when (possibly) overwriting existing sixel images
when generating a new one, i.e. in sixel_unhook().
</content>
</entry>
<entry>
<title>sixel: wip: split up image being overwritten, rather than erasing it</title>
<updated>2020-06-23T19:07:12Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-23T19:07:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=bc82d4ee28b0ca0e86b096069b7a61cbb082a93b'/>
<id>urn:sha1:bc82d4ee28b0ca0e86b096069b7a61cbb082a93b</id>
<content type='text'>
Instead of completely erasing a sixel image when it is being
"overwritten" (text is printed somewhere within the image, or another
sixel image is emitted within the first image), split it up into up to
four pieces: 'above', 'below', 'to-the-left' and 'to-the-right'.

This is currently very un-optimized, but seems to produce correct
results.
</content>
</entry>
<entry>
<title>sixel: do not reset palette after each image</title>
<updated>2020-06-10T16:38:46Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-10T16:36:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=cc5dedc259c4157516915e109b77ac88b9943a55'/>
<id>urn:sha1:cc5dedc259c4157516915e109b77ac88b9943a55</id>
<content type='text'>
A client can re-use the palette between images. Resetting the palette
breaks this.

Now we initialize the palette on demand, and resets it when the
palette size is changed (by the client).
</content>
</entry>
<entry>
<title>sixel: add sixel_delete_at_row and sixel_delete_in_range</title>
<updated>2020-02-24T17:42:32Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-24T17:39:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=95f7c5586c7f8d647ed38645599ace39fb82c989'/>
<id>urn:sha1:95f7c5586c7f8d647ed38645599ace39fb82c989</id>
<content type='text'>
These are utility functions to erase sixel images that are at the
specified row, or in a row range.
</content>
</entry>
<entry>
<title>sixel: rename: purge_at_cursor() -&gt; delete_at_cursor()</title>
<updated>2020-02-22T22:06:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-22T22:06:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=86d640ef71938a621e08461701b20203d37ae2a9'/>
<id>urn:sha1:86d640ef71938a621e08461701b20203d37ae2a9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sixel: purge images at current cursor row</title>
<updated>2020-02-22T20:35:45Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-22T20:35:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=80361ca04e12b65396d27fa1d981f6739861e453'/>
<id>urn:sha1:80361ca04e12b65396d27fa1d981f6739861e453</id>
<content type='text'>
When printing a character, or starting a new sixel image, purge all
images that cover the cursor's current row.
</content>
</entry>
<entry>
<title>sixel: application configurable image max width/height</title>
<updated>2020-02-22T20:03:24Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-22T20:03:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=25b09b909ca39cee6432ffd10e179336dbc178e1'/>
<id>urn:sha1:25b09b909ca39cee6432ffd10e179336dbc178e1</id>
<content type='text'>
</content>
</entry>
</feed>
