// Copyright 2014 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. // ----------------------------------------------------------------------------- // // Author: Skal ([email protected]) #include "src/dsp/dsp.h" #include "src/enc/cost_enc.h" //------------------------------------------------------------------------------ // Boolean-cost cost table const uint16_t VP8EntropyCost[256] = …; //------------------------------------------------------------------------------ // Level cost tables // fixed costs for coding levels, deduce from the coding tree. // This is only the part that doesn't depend on the probability state. const uint16_t VP8LevelFixedCosts[MAX_LEVEL + 1] = …; //------------------------------------------------------------------------------ // Tables for level coding const uint8_t VP8EncBands[16 + 1] = …; //------------------------------------------------------------------------------ // Mode costs static int GetResidualCost_C(int ctx0, const VP8Residual* const res) { … } static void SetResidualCoeffs_C(const int16_t* const coeffs, VP8Residual* const res) { … } //------------------------------------------------------------------------------ // init function VP8GetResidualCostFunc VP8GetResidualCost; VP8SetResidualCoeffsFunc VP8SetResidualCoeffs; extern VP8CPUInfo VP8GetCPUInfo; extern void VP8EncDspCostInitMIPS32(void); extern void VP8EncDspCostInitMIPSdspR2(void); extern void VP8EncDspCostInitSSE2(void); extern void VP8EncDspCostInitNEON(void); WEBP_DSP_INIT_FUNC(VP8EncDspCostInit) { … } //------------------------------------------------------------------------------