[flac-dev] stream_encoder: 32 vs 64 bit accumulator
lvqcl
lvqcl.mail at gmail.com
Thu Jun 19 10:22:46 PDT 2014
Another interesting comment is inside src/libFLAC/include/private/fixed.h:
"The _wide() version uses 64-bit integers which is statistically necessary
when bits-per-sample + log2(blocksize) > 30"
I mean the word "statistically".
libFLAC uses FLAC__fixed_compute_best_predictor_wide()
if "bits_per_sample + FLAC__bitmath_ilog2(blocksize)+1 > 30" is true
(see encoder->private_->use_wide_by_block variable in stream_encoder.c)
More information about the flac-dev
mailing list