Add VP8L prefix to backward ref & histogram methods.

Change-Id: I8c14fb219a1d7830d3244aa780c91c9964867330
This commit is contained in:
Vikas Arora
2012-04-10 03:56:07 +00:00
committed by James Zern
parent fcba7be2d3
commit 32714ce3be
4 changed files with 147 additions and 154 deletions

View File

@ -173,7 +173,7 @@ static WEBP_INLINE void PixOrCopyLengthCodeAndBits(
// Ridiculously simple backward references for images where it is unlikely
// that there are large backward references (photos).
void BackwardReferencesRle(
void VP8LBackwardReferencesRle(
int xsize,
int ysize,
const uint32_t *argb,
@ -182,7 +182,7 @@ void BackwardReferencesRle(
// This is a simple fast function for obtaining backward references
// based on simple heuristics. Returns 1 on success.
int BackwardReferencesHashChain(
int VP8LBackwardReferencesHashChain(
int xsize,
int ysize,
int use_palette,
@ -195,7 +195,7 @@ int BackwardReferencesHashChain(
// This method looks for a shortest path through the backward reference
// network based on a cost model generated by a first round of compression.
// Returns 1 on success.
int BackwardReferencesTraceBackwards(
int VP8LBackwardReferencesTraceBackwards(
int xsize,
int ysize,
int recursive_cost_model,
@ -208,24 +208,24 @@ int BackwardReferencesTraceBackwards(
// Convert backward references that are of linear distance along
// the image scan lines to have a 2d locality indexing where
// smaller values are used for backward references that are close by.
void BackwardReferences2DLocality(int xsize, int data_size,
PixOrCopy *data);
void VP8LBackwardReferences2DLocality(int xsize, int data_size,
PixOrCopy *data);
// Internals of locality transform exposed for testing use.
int DistanceToPlaneCode(int xsize, int distance);
int VP8LDistanceToPlaneCode(int xsize, int distance);
// Returns true if the given backward references actually produce
// the image given in tuple (argb, xsize, ysize).
int VerifyBackwardReferences(const uint32_t* argb,
int xsize, int ysize,
int palette_bits,
const PixOrCopy *lit,
int lit_size);
int VP8LVerifyBackwardReferences(const uint32_t* argb,
int xsize, int ysize,
int palette_bits,
const PixOrCopy *lit,
int lit_size);
// Produce an estimate for a good emerging palette size for the image.
int CalculateEstimateForPaletteSize(const uint32_t *argb,
int xsize, int ysize,
int *best_palette_bits);
int VP8LCalculateEstimateForPaletteSize(const uint32_t *argb,
int xsize, int ysize,
int *best_palette_bits);
#if defined(__cplusplus) || defined(c_plusplus)
}