diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2024-03-04 15:40:16 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2024-03-06 15:37:54 +0000 |
| commit | 1568518ab3c30ce9d83d6e2c4a9d8e74bbe15051 (patch) | |
| tree | 3945648e3617d4d52f3024a7c38386f6a1ede5f5 /scripts | |
| parent | sixel: fix row height calculation in resize_vertically() (diff) | |
sixel: performance improvements
* Store pointer to current pixel (i.e. pixel we're about to write to),
instead of a row-byte-offset. This way, we don't have to calculate the
offset into the backing image every time we emit a sixel band.
* Pass data pointer directly to sixel_add_*(), to avoid having to
calculate an offset into the backing image.
* Special case adding a single 1:1 sixel. This removes a for loop, and
simplifies state (position) updates. It is likely LTO does this for
us, but this way, we get it optimized in non-LTO builds as well.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
