# HG changeset patch # User Matti Hamalainen # Date 1529712624 -10800 # Node ID 5e33f367bafea4f68dac0b38d38bfeda2e9f2b85 # Parent 31c9884321b18a09b9d785f55b238d252204f6e0 Adjust the minimum byte run RLE counts from 3 to 4. diff -r 31c9884321b1 -r 5e33f367bafe tools/lib64fmts.c --- 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);