diff tools/lib64fmts.c @ 1855:5e33f367bafe

Adjust the minimum byte run RLE counts from 3 to 4.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 23 Jun 2018 03:10:24 +0300
parents 31c9884321b1
children 37cac290ce8b
line wrap: on
line diff
--- a/tools/lib64fmts.c	Sat Jun 23 01:45:34 2018 +0300
+++ b/tools/lib64fmts.c	Sat Jun 23 03:10:24 2018 +0300
@@ -80,7 +80,7 @@
     cfg.type         = DM_COMP_RLE_MARKER;
     cfg.flags        = DM_RLE_BYTE_RUNS | DM_RLE_ORDER_2;
     cfg.rleMarkerB   = fmt->size;
-    cfg.rleMinCountB = 3;
+    cfg.rleMinCountB = 4;
     cfg.rleMaxCountB = 255;
     res = dmEncodeGenericRLE(buf, &tmp, &cfg);
 
@@ -144,7 +144,7 @@
     cfg.func         = fmt->name;
     cfg.type         = DM_COMP_RLE_MARKER;
     cfg.flags        = DM_RLE_BYTE_RUNS | DM_RLE_ORDER_1;
-    cfg.rleMinCountB = 3;
+    cfg.rleMinCountB = 4;
     cfg.rleMaxCountB = 255;
 
     dmGenericRLEAnalyze(&tmp, &cfg);
@@ -254,7 +254,7 @@
     cfg.func         = fmt->name;
     cfg.type         = DM_COMP_RLE_MARKER;
     cfg.flags        = DM_RLE_BYTE_RUNS | DM_RLE_WORD_RUNS | DM_RLE_ORDER_1;
-    cfg.rleMinCountB = 3;
+    cfg.rleMinCountB = 4;
     cfg.rleMaxCountB = 255;
     cfg.rleMinCountW = 256;
     cfg.rleMaxCountW = 1024;
@@ -379,7 +379,7 @@
     cfg.type         = DM_COMP_RLE_MARKER;
     cfg.flags        = DM_RLE_BYTE_RUNS | DM_RLE_ORDER_1;
     cfg.rleMarkerB   = 0xC2;
-    cfg.rleMinCountB = 3;
+    cfg.rleMinCountB = 4;
     cfg.rleMaxCountB = 255;
 
     res = dmEncodeGenericRLE(buf, &mem, &cfg);
@@ -466,7 +466,7 @@
     cfg.type         = DM_COMP_RLE_MARKER;
     cfg.flags        = DM_RLE_BYTE_RUNS | DM_RLE_ORDER_1 | DM_RLE_ZERO_COUNT_MAX |
                        DM_RLE_BACKWARDS_INPUT | DM_RLE_BACKWARDS_OUTPUT;
-    cfg.rleMinCountB = 3;
+    cfg.rleMinCountB = 4;
     cfg.rleMaxCountB = 256; // this format allows 256 byte runs with ZERO_COUNT_MAX
 
     dmGenericRLEAnalyze(&tmp1, &cfg);
@@ -795,7 +795,7 @@
     cfg.func         = fmt->name;
     cfg.type         = DM_COMP_RLE_MARKER;
     cfg.flags        = DM_RLE_BYTE_RUNS | DM_RLE_ORDER_1;
-    cfg.rleMinCountB = 3;
+    cfg.rleMinCountB = 4;
     cfg.rleMaxCountB = 255;
 
     dmGenericRLEAnalyze(&mem, &cfg);