diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2017-07-10 23:39:56 +0100 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2017-07-10 23:49:44 +0100 |
commit | 03d8fbc09cdb78c93d1c51f39d783c081b981bac (patch) | |
tree | 146b6e6abd04b2b988518bd7a69fa6843e9b3f73 /libavcodec/opustab.c | |
parent | ba67c2349c15317678441942185500752cae37d1 (diff) | |
download | ffmpeg-03d8fbc09cdb78c93d1c51f39d783c081b981bac.tar.gz |
opustab: comment ff_celt_tf_select
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec/opustab.c')
-rw-r--r-- | libavcodec/opustab.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/libavcodec/opustab.c b/libavcodec/opustab.c index 5cb0ad6595..635cc363e2 100644 --- a/libavcodec/opustab.c +++ b/libavcodec/opustab.c @@ -772,11 +772,16 @@ const uint8_t ff_celt_log_freq_range[] = { 0, 0, 0, 0, 0, 0, 0, 0, 8, 8, 8, 8, 16, 16, 16, 21, 21, 24, 29, 34, 36 }; +/* Positive - increased freqeuency resolution (only possible on transients) + * Negative - increased time resolution */ const int8_t ff_celt_tf_select[4][2][2][2] = { - { { { 0, -1 }, { 0, -1 } }, { { 0, -1 }, { 0, -1 } } }, - { { { 0, -1 }, { 0, -2 } }, { { 1, 0 }, { 1, -1 } } }, - { { { 0, -2 }, { 0, -3 } }, { { 2, 0 }, { 1, -1 } } }, - { { { 0, -2 }, { 0, -3 } }, { { 3, 0 }, { 1, -1 } } } + /* OFF ON Transient frame */ + /* OFF ON OFF ON TF select flag */ + /* OFF ON OFF ON OFF ON OFF ON TF change flag */ + { { { 0, -1 }, { 0, -1 } }, { { 0, -1 }, { 0, -1 } } }, /* 120 */ + { { { 0, -1 }, { 0, -2 } }, { { 1, 0 }, { 1, -1 } } }, /* 240 */ + { { { 0, -2 }, { 0, -3 } }, { { 2, 0 }, { 1, -1 } } }, /* 480 */ + { { { 0, -2 }, { 0, -3 } }, { { 3, 0 }, { 1, -1 } } } /* 960 */ }; const float ff_celt_mean_energy[] = { |