#ifndef WEBP_ENC_COST_ENC_H_
#define WEBP_ENC_COST_ENC_H_
#include <assert.h>
#include <stdlib.h>
#include "src/enc/vp8i_enc.h"
#ifdef __cplusplus
extern "C" {
#endif
VP8Residual;
struct VP8Residual { … };
void VP8InitResidual(int first, int coeff_type,
VP8Encoder* const enc, VP8Residual* const res);
int VP8RecordCoeffs(int ctx, const VP8Residual* const res);
static WEBP_INLINE int VP8RecordStats(int bit, proba_t* const stats) { … }
static WEBP_INLINE int VP8BitCost(int bit, uint8_t proba) { … }
extern const uint16_t VP8LevelCodes[MAX_VARIABLE_LEVEL][2];
void VP8CalculateLevelCosts(VP8EncProba* const proba);
static WEBP_INLINE int VP8LevelCost(const uint16_t* const table, int level) { … }
extern const uint16_t VP8FixedCostsUV[4];
extern const uint16_t VP8FixedCostsI16[4];
extern const uint16_t VP8FixedCostsI4[NUM_BMODES][NUM_BMODES][NUM_BMODES];
#ifdef __cplusplus
}
#endif
#endif