mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-13 14:34:33 +02:00
Added implementation for various lossless functions
- VP8LEncAnalyze, EvalAndApplySubtractGreen, ApplyPredictFilter, ApplyCrossColorFilter - Added palette handling and transform buffer management in VP8LEncodeImage() - Add Transforms (subtract Green, Predict, cross_color) to dsp/lossless.c. These are more-or-less copied from src/lossless code. After this Change, will implement the EncodeImageInternal() method. Change-Id: Idf71f803c24b3b5ae3b5079b15e019721784611d
This commit is contained in:
@ -47,7 +47,7 @@ static WEBP_INLINE void VP8LHistogramClear(VP8LHistogram* const p) {
|
||||
}
|
||||
|
||||
static WEBP_INLINE void VP8LHistogramInit(VP8LHistogram* const p,
|
||||
int palette_code_bits) {
|
||||
int palette_code_bits) {
|
||||
p->palette_code_bits_ = palette_code_bits;
|
||||
VP8LHistogramClear(p);
|
||||
}
|
||||
@ -118,8 +118,6 @@ static WEBP_INLINE int VP8LHistogramNumCodes(const VP8LHistogram* const p) {
|
||||
void VP8LConvertPopulationCountTableToBitEstimates(
|
||||
int n, const int* const population_counts, double* const output);
|
||||
|
||||
double VP8LShannonEntropy(const int* const array, int n);
|
||||
|
||||
// Build a 2d image of histograms, subresolutioned by (1 << histobits) to
|
||||
// the original image.
|
||||
int VP8LHistogramBuildImage(int xsize, int ysize,
|
||||
|
Reference in New Issue
Block a user