[vte/wip/sixels: 16/111] sixels: Increase max seq string length to accommodate raster graphics.
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/sixels: 16/111] sixels: Increase max seq string length to accommodate raster graphics.
- Date: Sat, 8 Aug 2020 18:42:59 +0000 (UTC)
commit 86479740e92698c1d53cdc1234632c33004c8927
Author: Hans Petter Jansson <hpj cl no>
Date: Sat Aug 8 20:42:48 2020 +0200
sixels: Increase max seq string length to accommodate raster graphics.
src/parser-string.hh | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/src/parser-string.hh b/src/parser-string.hh
index 7de37e45..d14375e0 100644
--- a/src/parser-string.hh
+++ b/src/parser-string.hh
@@ -34,7 +34,13 @@ typedef struct vte_seq_string_t {
} vte_seq_string_t;
#define VTE_SEQ_STRING_DEFAULT_CAPACITY (1 << 7) /* must be power of two */
-#define VTE_SEQ_STRING_MAX_CAPACITY (1 << 12)
+
+/* This needs to be somewhat large for the time being; it accommodates inline
+ * graphics formats (e.g. sixels), and there is no provision for parsing
+ * those incrementally yet. 8M characters is typically enough for an
+ * RLE-incompressible 256-color 1920x1080 image. Since VTE seqs store 32 bits
+ * per character, this corresponds to a 32MiB buffer. */
+#define VTE_SEQ_STRING_MAX_CAPACITY (1 << 23)
/*
* vte_seq_string_init:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]