Add coarse energy entropy model tuning.
This tunes the entropy model for coarse energy introduced in commit
c1c40a76
.
It uses a constant set of parameters, tuned from about an hour and a
half of randomly selected test data encoded for each frame size,
prediction type (inter/intra), and band number.
These will be slightly sub-optimal for different frame sizes, but
should be better than what we were using.
For inter, this saves an average of 2.8, 5.2, 7.1, and 6.7 bits/frame
for frame sizes of 120, 240, 480, and 960, respectively.
For intra, this saves an average of 1.5, 3.0, 4.5, and 5.3 bits/frame
(for the same frame sizes, respectively).
This commit is contained in:
parent
99a19474a0
commit
ef2e650592
9 changed files with 108 additions and 94 deletions
|
@ -454,10 +454,6 @@ CELTMode *celt_mode_create(celt_int32 Fs, int frame_size, int *error)
|
|||
)
|
||||
goto failure;
|
||||
|
||||
mode->prob = quant_prob_alloc(mode);
|
||||
if (mode->prob==NULL)
|
||||
goto failure;
|
||||
|
||||
if (error)
|
||||
*error = CELT_OK;
|
||||
|
||||
|
@ -486,7 +482,6 @@ void celt_mode_destroy(CELTMode *mode)
|
|||
celt_free((celt_int16*)mode->cache.index);
|
||||
celt_free((unsigned char*)mode->cache.bits);
|
||||
clt_mdct_clear(&mode->mdct);
|
||||
quant_prob_free(mode->prob);
|
||||
|
||||
celt_free((CELTMode *)mode);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue