code-moving and clean-up

* removed use_lz77_ field, and added cache_bits_ one.
* use more BackwardRefs params
* move code around to organize more logically
* reduce memory use on histo
...

Change-Id: I833217a1b950189cf486704049e3fe28382ce335
This commit is contained in:
Pascal Massimino
2012-04-26 07:19:24 +00:00
committed by James Zern
parent 31035f3b49
commit 01f50663dc
2 changed files with 187 additions and 156 deletions

View File

@ -7,7 +7,7 @@
//
// Lossless encoder: internal header.
//
// Author: Vikas Arora(vikaas.arora@gmail.com)
// Author: Vikas Arora (vikaas.arora@gmail.com)
#ifndef WEBP_ENC_VP8LI_H_
#define WEBP_ENC_VP8LI_H_
@ -44,9 +44,9 @@ typedef struct {
int current_width_; // Corresponds to packed image width.
// Encoding parameters derived from quality parameter.
int use_lz77_;
int histo_bits_;
int transform_bits_;
int cache_bits_; // If equal to 0, don't use color cache.
// Encoding parameters derived from image characteristics.
int use_cross_color_;