// 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. // ----------------------------------------------------------------------------- // // Coding tools configuration // // Author: Skal ([email protected]) #ifdef HAVE_CONFIG_H #include "src/webp/config.h" #endif #include "src/webp/encode.h" //------------------------------------------------------------------------------ // WebPConfig //------------------------------------------------------------------------------ int WebPConfigInitInternal(WebPConfig* config, WebPPreset preset, float quality, int version) { … } int WebPValidateConfig(const WebPConfig* config) { … } //------------------------------------------------------------------------------ #define MAX_LEVEL … // Mapping between -z level and -m / -q parameter settings. static const struct { … } kLosslessPresets[MAX_LEVEL + 1] = …; int WebPConfigLosslessPreset(WebPConfig* config, int level) { … } //------------------------------------------------------------------------------