[vte/wip/sixels: 6/82] sixels: Increase max seq string length to accommodate raster graphics.
- From: Hans Petter Jansson <hansp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/sixels: 6/82] sixels: Increase max seq string length to accommodate raster graphics.
- Date: Fri, 26 Jun 2020 00:43:35 +0000 (UTC)
commit e5d4948ce5b2e1a82f47310c7263ee12850f1b15
Author: Hans Petter Jansson <hpj cl no>
Date: Sun May 24 03:34:26 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]