| Index: third_party/libwebp/enc/vp8li_enc.h
|
| diff --git a/third_party/libwebp/enc/vp8li.h b/third_party/libwebp/enc/vp8li_enc.h
|
| similarity index 78%
|
| rename from third_party/libwebp/enc/vp8li.h
|
| rename to third_party/libwebp/enc/vp8li_enc.h
|
| index 371e276ee091967a89cda0df01fdb108ffd21a17..8c5fbcbb2ea7aa445e2cdd98bbcacbd63039f75d 100644
|
| --- a/third_party/libwebp/enc/vp8li.h
|
| +++ b/third_party/libwebp/enc/vp8li_enc.h
|
| @@ -14,9 +14,9 @@
|
| #ifndef WEBP_ENC_VP8LI_H_
|
| #define WEBP_ENC_VP8LI_H_
|
|
|
| -#include "./backward_references.h"
|
| -#include "./histogram.h"
|
| -#include "../utils/bit_writer.h"
|
| +#include "./backward_references_enc.h"
|
| +#include "./histogram_enc.h"
|
| +#include "../utils/bit_writer_utils.h"
|
| #include "../webp/encode.h"
|
| #include "../webp/format_constants.h"
|
|
|
| @@ -24,6 +24,9 @@
|
| extern "C" {
|
| #endif
|
|
|
| +// maximum value of transform_bits_ in VP8LEncoder.
|
| +#define MAX_TRANSFORM_BITS 6
|
| +
|
| typedef struct {
|
| const WebPConfig* config_; // user configuration and parameters
|
| const WebPPicture* pic_; // input picture.
|
| @@ -39,7 +42,7 @@ typedef struct {
|
|
|
| // Encoding parameters derived from quality parameter.
|
| int histo_bits_;
|
| - int transform_bits_;
|
| + int transform_bits_; // <= MAX_TRANSFORM_BITS.
|
| int cache_bits_; // If equal to 0, don't use color cache.
|
|
|
| // Encoding parameters derived from image characteristics.
|
| @@ -73,6 +76,17 @@ WebPEncodingError VP8LEncodeStream(const WebPConfig* const config,
|
| VP8LBitWriter* const bw, int use_cache);
|
|
|
| //------------------------------------------------------------------------------
|
| +// Image transforms in predictor.c.
|
| +
|
| +void VP8LResidualImage(int width, int height, int bits, int low_effort,
|
| + uint32_t* const argb, uint32_t* const argb_scratch,
|
| + uint32_t* const image, int near_lossless, int exact,
|
| + int used_subtract_green);
|
| +
|
| +void VP8LColorSpaceTransform(int width, int height, int bits, int quality,
|
| + uint32_t* const argb, uint32_t* image);
|
| +
|
| +//------------------------------------------------------------------------------
|
|
|
| #ifdef __cplusplus
|
| } // extern "C"
|
|
|