<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/sixel.c, branch 1.4.1</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.4.1</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.4.1'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2020-07-16T06:13:44Z</updated>
<entry>
<title>sixel: verify list order: fix assertion when two sixels are on the same row</title>
<updated>2020-07-16T06:13:44Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-16T06:10:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=674f0dd0fc56252d7c274eb9207f260a8e05ca2e'/>
<id>urn:sha1:674f0dd0fc56252d7c274eb9207f260a8e05ca2e</id>
<content type='text'>
Two sixel may in fact exist on the same row, assuming their columns
don't overlap.
</content>
</entry>
<entry>
<title>term: rename term_formfeed() -&gt; term_carriage_return()</title>
<updated>2020-07-14T07:29:10Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-14T07:29:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b9719673a17618654b09bf9631e0ab65cf0d9def'/>
<id>urn:sha1:b9719673a17618654b09bf9631e0ab65cf0d9def</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sixel: overwrite_by_row: handle case where 'width' goes past end of row</title>
<updated>2020-07-07T08:42:59Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-07T08:42:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3063204289b23203e35de946353585b367066fb0'/>
<id>urn:sha1:3063204289b23203e35de946353585b367066fb0</id>
<content type='text'>
Cap 'width' to maximum number of columns available.
</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-by-rectangle: optimize: break out of loop as soon as possible</title>
<updated>2020-06-28T17:22:23Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-28T17:22:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=1140dd37d3d50f9ef003957f877464005d1ede11'/>
<id>urn:sha1:1140dd37d3d50f9ef003957f877464005d1ede11</id>
<content type='text'>
Since the images are sorted, we can break out of the loop as soon as
we detect an image that *ends before* the rectangle's top starts.

In order for the row comparisons to work, the row numbers must be
re-based against the current scrollback offset, or the
scrollback *end*, to be precise.
</content>
</entry>
<entry>
<title>sixel: overwrite-by-row: optimize: break out of loop as soon as possible</title>
<updated>2020-06-28T12:24:30Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-28T12:24:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=aa1951a4d28789426aca2702f6dfce642e3b3d04'/>
<id>urn:sha1:aa1951a4d28789426aca2702f6dfce642e3b3d04</id>
<content type='text'>
Since the images are sorted, we can break out of the loop as soon as
we detect an image that *ends before* the row we're looking for.

In order for the row comparisons to work, the row numbers must be
re-based against the current scrollback offset, or the
scrollback *end*, to be precise.
</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: insert: calculate end rows in a single statement</title>
<updated>2020-06-28T08:45:05Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-28T08:45:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=0483466f68467694e960497e5f33cf0bf2f2cb90'/>
<id>urn:sha1:0483466f68467694e960497e5f33cf0bf2f2cb90</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sixel: insert: sort sixels such that those furthest up in the scrollback is at the back</title>
<updated>2020-06-28T07:16:43Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-28T07:16:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4a0042ba1563b8d2f0669c7650e997b6c1a9d95e'/>
<id>urn:sha1:4a0042ba1563b8d2f0669c7650e997b6c1a9d95e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sixel: add local function sixel_insert()</title>
<updated>2020-06-28T06:37:25Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-28T06:37:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=247e0c42d38ee79c36fc2104c9e93666a29b1b12'/>
<id>urn:sha1:247e0c42d38ee79c36fc2104c9e93666a29b1b12</id>
<content type='text'>
Replace all tll_push_*() calls with calls to this function.
</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: delete/split: early(ier) exit when there aren't in sixel images</title>
<updated>2020-06-27T12:43:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-27T12:43:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=0953ffd2d3aac63f5f88edc224ae4fc62a2da479'/>
<id>urn:sha1:0953ffd2d3aac63f5f88edc224ae4fc62a2da479</id>
<content type='text'>
Avoid unnecessary wrap checks if the sixel image list is empty.
</content>
</entry>
<entry>
<title>sixel: split: make pixman instantiation generic</title>
<updated>2020-06-27T12:26:13Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-27T12:26:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8cdfd03c4b0402c2b6314e5fcfc939ad6b01c4b2'/>
<id>urn:sha1:8cdfd03c4b0402c2b6314e5fcfc939ad6b01c4b2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sixel: never generate scrollback wrapping sixel images</title>
<updated>2020-06-27T12:19:08Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-27T12:19:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=cc65002539e8969ec78c2dbc8299a76ebca2715b'/>
<id>urn:sha1:cc65002539e8969ec78c2dbc8299a76ebca2715b</id>
<content type='text'>
Instead, split them up into two (or more...).

This makes the intersection detection logic *much* simpler.
</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: split_by_rectangle: bug: typo in boundary check</title>
<updated>2020-06-27T11:19:19Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-27T11:19:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3715a37be9078fb2ab755adfcfa010d687322333'/>
<id>urn:sha1:3715a37be9078fb2ab755adfcfa010d687322333</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sixel: split: make sure relative row/column values are bounded</title>
<updated>2020-06-27T11:18:54Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-27T11:18:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=37ceb65729beb221e92de8a8ae07c8f3d3e207b5'/>
<id>urn:sha1:37ceb65729beb221e92de8a8ae07c8f3d3e207b5</id>
<content type='text'>
</content>
</entry>
</feed>
