aboutsummaryrefslogtreecommitdiff
path: root/sixel.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2023-06-29 13:40:21 +0000
committerDaniel Eklöf <daniel@ekloef.se>2023-06-29 13:40:21 +0000
commitdf71d9c6dea5cb87f76debcf149438fa2fe2d43a (patch)
tree8c003da289af1e820a76872e873be9d9b49aec95 /sixel.h
parentMerge branch 'fractional-scaling' (diff)
parentsixel: add_ar_11(): manually unroll loop (diff)
Merge branch 'sixel-performance'
Closes #1385
Diffstat (limited to 'sixel.h')
-rw-r--r--sixel.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sixel.h b/sixel.h
index f72b4dc4..efd64908 100644
--- a/sixel.h
+++ b/sixel.h
@@ -6,10 +6,11 @@
#define SIXEL_MAX_WIDTH 10000u
#define SIXEL_MAX_HEIGHT 10000u
+typedef void (*sixel_put)(struct terminal *term, uint8_t c);
+
void sixel_fini(struct terminal *term);
-void sixel_init(struct terminal *term, int p1, int p2, int p3);
-void sixel_put(struct terminal *term, uint8_t c);
+sixel_put sixel_init(struct terminal *term, int p1, int p2, int p3);
void sixel_unhook(struct terminal *term);
void sixel_destroy(struct sixel *sixel);