Use B0 instead of B for decisions in quant_band().
B contains the number of blocks _after_ splitting. We were using it to decide a) when to use a uniform PDF instead of a triangular one for theta and b) whether to bias the bit allocation towards the lower bins. Using B0 (the number of blocks before the split) instead for a) gives a PEAQ gain of 0.003 ODG (as high as 0.1 ODG on s02a samples 006, 083, and 097) for 240-sample frames at 96kbps mono. Using B0 instead for b) gives a gain of only 0.00002.
Loading
Please register or sign in to comment