Integrate a new LZ77 looking for matches in the neighborhood of a pixel only.

Change-Id: Ie2bbfee0a8d154b58f4a3068f3f634b7dad4c12d
This commit is contained in:
Vincent Rabaud
2017-06-07 19:06:28 +02:00
parent a1779a017b
commit 355c3d1bc7
4 changed files with 162 additions and 20 deletions

View File

@ -648,7 +648,7 @@ static int BackwardReferencesHashChainDistanceOnly(
// better than whatever we add.
int offset_j, len_j = 0;
int j;
assert(len == MAX_LENGTH);
assert(len == MAX_LENGTH || len == pix_count - i);
// Figure out the last consecutive pixel within [i, reach + 1] with
// the same offset.
for (j = i; j <= reach; ++j) {