Mercurial > hg > dmlib
comparison tools/lib64fmts.c @ 1760:c944844e437f
Improve fmtProbeECIPacked() probing.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 11 Jun 2018 19:52:10 +0300 |
parents | 027fb7313d85 |
children | b69f3d97db9e |
comparison
equal
deleted
inserted
replaced
1759:027fb7313d85 | 1760:c944844e437f |
---|---|
778 | 778 |
779 // XXX TODO: Perhaps count statistics about used byte values | 779 // XXX TODO: Perhaps count statistics about used byte values |
780 // and compare to value in buf[2] which is the RLE marker | 780 // and compare to value in buf[2] which is the RLE marker |
781 if (len < 128 || | 781 if (len < 128 || |
782 !dmCompareAddr16(buf, 0, fmt->addr) || | 782 !dmCompareAddr16(buf, 0, fmt->addr) || |
783 len == 16386) // Crest Hires FLI Designer | 783 // Try to avoid misprobe of Crest Hires FLI Designer and Cosmos Design format |
784 len == 16386 || len == 16385) | |
784 return DM_PROBE_SCORE_FALSE; | 785 return DM_PROBE_SCORE_FALSE; |
785 | 786 |
786 for (n = 0, i = 3; i < len; i++) | 787 for (n = 0, i = 3; i < len; i++) |
787 if (buf[i] == buf[2]) n++; | 788 if (buf[i] == buf[2]) n++; |
788 | 789 |