Mercurial > libavcodec.hg
changeset 7121:18d60d9b0895 libavcodec
Merge the >> 4 calculation of cb1_base in the table
author | vitor |
---|---|
date | Mon, 23 Jun 2008 21:10:59 +0000 |
parents | c98b43981d89 |
children | ec8c977ec132 |
files | ra144.c ra144.h |
diffstat | 2 files changed, 34 insertions(+), 34 deletions(-) [+] |
line wrap: on
line diff
--- a/ra144.c Mon Jun 23 21:00:28 2008 +0000 +++ b/ra144.c Mon Jun 23 21:10:59 2008 +0000 @@ -220,8 +220,8 @@ m[0] = 0; } - m[1] = ((cb1_base[cb1_idx] >> 4) * gval) >> 8; - m[2] = ((cb2_base[cb2_idx] >> 4) * gval) >> 8; + m[1] = (cb1_base[cb1_idx] * gval) >> 8; + m[2] = (cb2_base[cb2_idx] * gval) >> 8; memmove(ractx->adapt_cb, ractx->adapt_cb + BLOCKSIZE, (BUFFERSIZE - BLOCKSIZE) * sizeof(*ractx->adapt_cb));
--- a/ra144.h Mon Jun 23 21:00:28 2008 +0000 +++ b/ra144.h Mon Jun 23 21:10:59 2008 +0000 @@ -1832,41 +1832,41 @@ }; static const uint32_t cb1_base[128]={ - 314527, 295599, 293848, 280320, 336779, 291703, 297354, 266749, - 325815, 305109, 310555, 294891, 349515, 300052, 313812, 278588, - 326231, 348357, 322076, 347246, 335655, 327567, 314037, 310198, - 343640, 370152, 349471, 382719, 353433, 344311, 338152, 333632, - 314810, 285147, 304708, 279643, 319779, 271292, 295149, 257376, - 338219, 302387, 335244, 302877, 343236, 285341, 321676, 274547, - 316321, 320899, 325378, 333870, 309279, 291473, 302532, 288065, - 344907, 351169, 369278, 382224, 334752, 312711, 335747, 316511, - 316511, 335747, 312711, 334752, 382224, 369278, 351169, 344907, - 288065, 302532, 291473, 309279, 333870, 325378, 320899, 316321, - 274547, 321676, 285341, 343236, 302877, 335244, 302387, 338219, - 257376, 295149, 271292, 319779, 279643, 304708, 285147, 314810, - 333632, 338152, 344311, 353433, 382719, 349471, 370152, 343640, - 310198, 314037, 327567, 335655, 347246, 322076, 348357, 326231, - 278588, 313812, 300052, 349515, 294891, 310555, 305109, 325815, - 266749, 297354, 291703, 336779, 280320, 293848, 295599, 314527 + 19657, 18474, 18365, 17520, 21048, 18231, 18584, 16671, + 20363, 19069, 19409, 18430, 21844, 18753, 19613, 17411, + 20389, 21772, 20129, 21702, 20978, 20472, 19627, 19387, + 21477, 23134, 21841, 23919, 22089, 21519, 21134, 20852, + 19675, 17821, 19044, 17477, 19986, 16955, 18446, 16086, + 21138, 18899, 20952, 18929, 21452, 17833, 20104, 17159, + 19770, 20056, 20336, 20866, 19329, 18217, 18908, 18004, + 21556, 21948, 23079, 23889, 20922, 19544, 20984, 19781, + 19781, 20984, 19544, 20922, 23889, 23079, 21948, 21556, + 18004, 18908, 18217, 19329, 20866, 20336, 20056, 19770, + 17159, 20104, 17833, 21452, 18929, 20952, 18899, 21138, + 16086, 18446, 16955, 19986, 17477, 19044, 17821, 19675, + 20852, 21134, 21519, 22089, 23919, 21841, 23134, 21477, + 19387, 19627, 20472, 20978, 21702, 20129, 21772, 20389, + 17411, 19613, 18753, 21844, 18430, 19409, 19069, 20363, + 16671, 18584, 18231, 21048, 17520, 18365, 18474, 19657, }; static const uint32_t cb2_base[128]={ - 194793, 214093, 222075, 221325, 210734, 211641, 211270, 192855, - 198561, 223821, 229577, 234105, 209600, 214643, 211594, 196292, - 191722, 221201, 215984, 227369, 222035, 236618, 220978, 209746, - 183193, 212405, 205343, 219484, 203652, 219140, 204153, 198495, - 163695, 194973, 186057, 210587, 188197, 215336, 197004, 205097, - 167090, 204380, 192189, 224334, 189091, 221215, 199256, 211624, - 167150, 210594, 190109, 228813, 205750, 260616, 215853, 240851, - 162492, 205131, 184310, 223583, 192669, 241298, 202170, 227169, - 227169, 202170, 241298, 192669, 223583, 184310, 205131, 162492, - 240851, 215853, 260616, 205750, 228813, 190109, 210594, 167150, - 211624, 199256, 221215, 189091, 224334, 192189, 204380, 167090, - 205097, 197004, 215336, 188197, 210587, 186057, 194973, 163695, - 198495, 204153, 219140, 203652, 219484, 205343, 212405, 183193, - 209746, 220978, 236618, 222035, 227369, 215984, 221201, 191722, - 196292, 211594, 214643, 209600, 234105, 229577, 223821, 198561, - 192855, 211270, 211641, 210734, 221325, 222075, 214093, 194793 + 12174, 13380, 13879, 13832, 13170, 13227, 13204, 12053, + 12410, 13988, 14348, 14631, 13100, 13415, 13224, 12268, + 11982, 13825, 13499, 14210, 13877, 14788, 13811, 13109, + 11449, 13275, 12833, 13717, 12728, 13696, 12759, 12405, + 10230, 12185, 11628, 13161, 11762, 13458, 12312, 12818, + 10443, 12773, 12011, 14020, 11818, 13825, 12453, 13226, + 10446, 13162, 11881, 14300, 12859, 16288, 13490, 15053, + 10155, 12820, 11519, 13973, 12041, 15081, 12635, 14198, + 14198, 12635, 15081, 12041, 13973, 11519, 12820, 10155, + 15053, 13490, 16288, 12859, 14300, 11881, 13162, 10446, + 13226, 12453, 13825, 11818, 14020, 12011, 12773, 10443, + 12818, 12312, 13458, 11762, 13161, 11628, 12185, 10230, + 12405, 12759, 13696, 12728, 13717, 12833, 13275, 11449, + 13109, 13811, 14788, 13877, 14210, 13499, 13825, 11982, + 12268, 13224, 13415, 13100, 14631, 14348, 13988, 12410, + 12053, 13204, 13227, 13170, 13832, 13879, 13380, 12174, }; static const int16_t energy_tab[63]={