// Copyright 2011 Google Inc. All Rights Reserved. // // 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. // ----------------------------------------------------------------------------- // // filter estimation // // Author: Urvang ([email protected]) #include "src/utils/filters_utils.h" #include <stdlib.h> #include <string.h> // ----------------------------------------------------------------------------- // Quick estimate of a potentially interesting filter mode to try. #define SMAX … #define SDIFF … static WEBP_INLINE int GradientPredictor(uint8_t a, uint8_t b, uint8_t c) { … } WEBP_FILTER_TYPE WebPEstimateBestFilter(const uint8_t* data, int width, int height, int stride) { … } #undef SMAX #undef SDIFF //------------------------------------------------------------------------------