History

avcodec/dca: use LUT for LBR frequency ranges

Values for unsupported frequencies > 48000 Hz are still included (parser will make use of them). Also convert sampling frequencies array to unsigned.

foo86 committed 10 years ago

Commit 64fe1ee1 parent 801dbf03 files · +12 −12Browse files

Showing the changes to libavcodec/dcadata.c (1 of 3 files). Show all

Unified · Split

libavcodec/dcadata.c+5−1
@@ -8725,11 +8725,15 @@ const int32_t ff_dca_xll_band_coeff[20] = { · 8724 unmodified lines
8725 3259333, -5074941, 6928550, -82048838725 3259333, -5074941, 6928550, -8204883
8726};8726};
8727 8727
8728const int32_t ff_dca_sampling_freqs[16] = {8728const uint32_t ff_dca_sampling_freqs[16] = {
8729 8000, 16000, 32000, 64000, 128000, 22050, 44100, 88200,8729 8000, 16000, 32000, 64000, 128000, 22050, 44100, 88200,
8730 176400, 352800, 12000, 24000, 48000, 96000, 192000, 384000,8730 176400, 352800, 12000, 24000, 48000, 96000, 192000, 384000,
8731};8731};
8732 8732
8733const uint8_t ff_dca_freq_ranges[16] = {
8734 0, 1, 2, 3, 4, 1, 2, 3, 4, 4, 0, 1, 2, 3, 4, 4
8735};
8736
8733const uint16_t ff_dca_avg_g3_freqs[3] = { 16000, 18000, 24000 };8737const uint16_t ff_dca_avg_g3_freqs[3] = { 16000, 18000, 24000 };
8734 8738
8735const uint16_t ff_dca_fst_amp[44] = {8739const uint16_t ff_dca_fst_amp[44] = {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t