sixel: initial support

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
This commit is contained in:
Daniel Eklöf 2020-02-21 21:53:23 +01:00
parent e8197d22f7
commit 9e3bfb1eab
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
6 changed files with 350 additions and 3 deletions

7
sixel.h Normal file
View file

@ -0,0 +1,7 @@
#pragma once
#include "terminal.h"
void sixel_init(struct terminal *term);
void sixel_put(struct terminal *term, uint8_t c);
void sixel_unhook(struct terminal *term);