mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
Remove some very hard TODOs.
Change-Id: I3d1b0072e0ac9125840fbbd76e91d151c82489ec
(cherry picked from commit 4033e1d70d
)
This commit is contained in:
parent
cd758a1745
commit
3f157dd5e7
@ -1026,7 +1026,7 @@ int VP8LGetHistoImageSymbols(int xsize, int ysize,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO(vikasa): Optimize HistogramRemap for low-effort compression mode also.
|
// TODO(vrabaud): Optimize HistogramRemap for low-effort compression mode.
|
||||||
// Find the optimal map from original histograms to the final ones.
|
// Find the optimal map from original histograms to the final ones.
|
||||||
HistogramRemap(orig_histo, image_histo, histogram_symbols);
|
HistogramRemap(orig_histo, image_histo, histogram_symbols);
|
||||||
|
|
||||||
|
@ -382,8 +382,7 @@ static int EncoderAnalyze(VP8LEncoder* const enc,
|
|||||||
AnalyzeAndCreatePalette(pic, low_effort,
|
AnalyzeAndCreatePalette(pic, low_effort,
|
||||||
enc->palette_, &enc->palette_size_);
|
enc->palette_, &enc->palette_size_);
|
||||||
|
|
||||||
// TODO(jyrki): replace the decision to be based on an actual estimate
|
// Empirical bit sizes.
|
||||||
// of entropy, or even spatial variance of entropy.
|
|
||||||
enc->histo_bits_ = GetHistoBits(method, use_palette,
|
enc->histo_bits_ = GetHistoBits(method, use_palette,
|
||||||
pic->width, pic->height);
|
pic->width, pic->height);
|
||||||
enc->transform_bits_ = GetTransformBits(method, enc->histo_bits_);
|
enc->transform_bits_ = GetTransformBits(method, enc->histo_bits_);
|
||||||
@ -754,7 +753,6 @@ static WebPEncodingError StoreImageToBitMask(
|
|||||||
// Don't write the distance with the extra bits code since
|
// Don't write the distance with the extra bits code since
|
||||||
// the distance can be up to 18 bits of extra bits, and the prefix
|
// the distance can be up to 18 bits of extra bits, and the prefix
|
||||||
// 15 bits, totaling to 33, and our PutBits only supports up to 32 bits.
|
// 15 bits, totaling to 33, and our PutBits only supports up to 32 bits.
|
||||||
// TODO(jyrki): optimize this further.
|
|
||||||
VP8LPrefixEncode(distance, &code, &n_bits, &bits);
|
VP8LPrefixEncode(distance, &code, &n_bits, &bits);
|
||||||
WriteHuffmanCode(bw, codes + 4, code);
|
WriteHuffmanCode(bw, codes + 4, code);
|
||||||
VP8LPutBits(bw, bits, n_bits);
|
VP8LPutBits(bw, bits, n_bits);
|
||||||
@ -1876,7 +1874,6 @@ int VP8LEncodeImage(const WebPConfig* const config,
|
|||||||
err = VP8LEncodeStream(config, picture, &bw, 1 /*use_cache*/);
|
err = VP8LEncodeStream(config, picture, &bw, 1 /*use_cache*/);
|
||||||
if (err != VP8_ENC_OK) goto Error;
|
if (err != VP8_ENC_OK) goto Error;
|
||||||
|
|
||||||
// TODO(skal): have a fine-grained progress report in VP8LEncodeStream().
|
|
||||||
if (!WebPReportProgress(picture, 90, &percent)) goto UserAbort;
|
if (!WebPReportProgress(picture, 90, &percent)) goto UserAbort;
|
||||||
|
|
||||||
// Finish the RIFF chunk.
|
// Finish the RIFF chunk.
|
||||||
|
Loading…
Reference in New Issue
Block a user