[flac-dev] A patch for precompute_partition_info_sums_()

lvqcl
Sat, 23 May 2015 16:29:58 -0000

Here I attach a preliminary version of a patch for
precompute_partition_info_sums_()
function that should accelerate encoding of 24-bit input data.

1) SSE2, SSSE3 and AVX2 versions of this function should be updated, too

2) the patch also changes
     if(FLAC__bitmath_ilog2(default_partition_samples) + bps +
FLAC__MAX_EXTRA_RESIDUAL_BPS < 32)
into (in effect)
     if(FLAC__bitmath_ilog2(default_partition_samples) + bps +
FLAC__MAX_EXTRA_RESIDUAL_BPS <= 32)

So, should the value of FLAC__MAX_EXTRA_RESIDUAL_BPS be increased (to 5? or to
6?)

3) any comments?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: precomp_partitions.patch
Type: application/octet-stream
Size: 3069 bytes
Desc: not available