| Index: third_party/libwebp/utils/filters.c
|
| diff --git a/third_party/libwebp/utils/filters.c b/third_party/libwebp/utils/filters.c
|
| index 9486355abcf62204a73af386401a3373f88aa170..eb5bb34f410b653c0ea5e23514ff90c6173e0462 100644
|
| --- a/third_party/libwebp/utils/filters.c
|
| +++ b/third_party/libwebp/utils/filters.c
|
| @@ -1,8 +1,10 @@
|
| // Copyright 2011 Google Inc. All Rights Reserved.
|
| //
|
| -// This code is licensed under the same terms as WebM:
|
| -// Software License Agreement: http://www.webmproject.org/license/software/
|
| -// Additional IP Rights Grant: http://www.webmproject.org/license/additional/
|
| +// Use of this source code is governed by a BSD-style license
|
| +// that can be found in the COPYING file in the root of the source
|
| +// tree. An additional intellectual property rights grant can be found
|
| +// in the file PATENTS. All contributing project authors may
|
| +// be found in the AUTHORS file in the root of the source tree.
|
| // -----------------------------------------------------------------------------
|
| //
|
| // Spatial prediction using various filters
|
| @@ -154,8 +156,7 @@ static void GradientUnfilter(int width, int height, int stride, uint8_t* data) {
|
| #undef SANITY_CHECK
|
|
|
| // -----------------------------------------------------------------------------
|
| -// Quick estimate of a potentially interesting filter mode to try, in addition
|
| -// to the default NONE.
|
| +// Quick estimate of a potentially interesting filter mode to try.
|
|
|
| #define SMAX 16
|
| #define SDIFF(a, b) (abs((a) - (b)) >> 4) // Scoring diff, in [0..SMAX)
|
| @@ -165,6 +166,7 @@ WEBP_FILTER_TYPE EstimateBestFilter(const uint8_t* data,
|
| int i, j;
|
| int bins[WEBP_FILTER_LAST][SMAX];
|
| memset(bins, 0, sizeof(bins));
|
| +
|
| // We only sample every other pixels. That's enough.
|
| for (j = 2; j < height - 1; j += 2) {
|
| const uint8_t* const p = data + j * stride;
|
|
|