Vitor Sessak
94be3bb50a
More comments removal/fixes
...
Originally committed as revision 13924 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-23 20:28:00 +00:00
Vitor Sessak
42b1459439
Remove useless comment
...
Originally committed as revision 13923 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-23 20:26:57 +00:00
Vitor Sessak
d1024e0719
More comments improvement
...
Originally committed as revision 13922 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-23 20:26:24 +00:00
Vitor Sessak
c17fd98cdc
Document defines better
...
Originally committed as revision 13921 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-23 20:24:06 +00:00
Vitor Sessak
c31333e107
Remove useless define
...
Originally committed as revision 13920 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-23 20:20:29 +00:00
Vitor Sessak
51062b926b
Rename rotate_buffer() to copy_and_dup() and doxy it
...
Originally committed as revision 13919 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-23 20:18:51 +00:00
Vitor Sessak
70e708677e
Simplify t_sqrt()
...
Originally committed as revision 13918 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-23 20:13:07 +00:00
Vitor Sessak
89a2713e66
Add doxy comment
...
Originally committed as revision 13917 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-23 20:12:12 +00:00
Vitor Sessak
3890a13173
Rename var
...
Originally committed as revision 13916 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-23 20:06:36 +00:00
Vitor Sessak
d5d3536dcb
Move code unrelated to lpc filtering out of lpc_filter()
...
Originally committed as revision 13915 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-23 20:05:42 +00:00
Vitor Sessak
5983d1c480
Simplify rotate_buffer()
...
Originally committed as revision 13914 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-23 19:59:42 +00:00
Vitor Sessak
9acd41a4e2
Cosmetics
...
Originally committed as revision 13898 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-22 20:10:16 +00:00
Vitor Sessak
d488e906f2
Avoid a memcpy. Code is also simpler now in my opinion.
...
The downside is making the context bigger.
Originally committed as revision 13897 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-22 20:09:13 +00:00
Vitor Sessak
072f66c980
Do not write junk in the end of truncated files. FATE
...
ra144 test will probably need to be updated.
Originally committed as revision 13839 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-20 20:46:07 +00:00
Vitor Sessak
5116b92d71
Misc cosmetics
...
Originally committed as revision 13830 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-19 20:51:56 +00:00
Vitor Sessak
e77825786e
Remove useless comment
...
Originally committed as revision 13829 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-19 20:48:00 +00:00
Vitor Sessak
509f8ea270
Last table renaming
...
Originally committed as revision 13828 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-19 20:43:34 +00:00
Vitor Sessak
b845df113c
Yet more table renaming
...
Originally committed as revision 13827 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-19 20:36:23 +00:00
Vitor Sessak
a632f44e81
More table renaming
...
Originally committed as revision 13825 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-19 20:31:34 +00:00
Vitor Sessak
a2d10dd8d8
Rename table
...
Originally committed as revision 13824 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-19 20:28:28 +00:00
Vitor Sessak
98cc8e184a
Rename vars: s/decsp/out/
...
Originally committed as revision 13823 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-19 19:37:51 +00:00
Vitor Sessak
ea4b696605
Rename function
...
Originally committed as revision 13822 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-19 19:35:59 +00:00
Vitor Sessak
bba35fda77
Rename var
...
Originally committed as revision 13821 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-19 19:34:38 +00:00
Stefano Sabatini
fe4bf37455
Make AVCodec long_names definition conditional depending on CONFIG_SMALL.
...
Originally committed as revision 13759 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-12 21:50:13 +00:00
Vitor Sessak
218e453a6f
Remove *lpc_refl from the context. Only the value
...
calculated in rms() is actually needed. It also avoid
recalculating it later.
Originally committed as revision 13664 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-05 16:15:44 +00:00
Vitor Sessak
11bb2eb003
Split function rms() in two (it does two unrelated things)
...
Originally committed as revision 13663 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-05 16:11:51 +00:00
Vitor Sessak
27ee9bcf36
Remove warning that could never be triggered.
...
Thanks Mkhodor for pointing it out.
Originally committed as revision 13629 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-02 18:29:04 +00:00
Vitor Sessak
2d73e6c8d7
Replace comments by error messages.
...
Thanks to Mkhodor for the tip.
Originally committed as revision 13609 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-01 19:51:33 +00:00
Vitor Sessak
c2a14bd72e
Cosmetics
...
Originally committed as revision 13608 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-01 19:36:54 +00:00
Vitor Sessak
a00dc25547
Rename dec2() function
...
Originally committed as revision 13607 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-01 19:36:43 +00:00
Vitor Sessak
07aee1a1f9
Rename var
...
Originally committed as revision 13606 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-01 19:35:04 +00:00
Vitor Sessak
aa3aaacb07
Rename dec1() to a more descriptive name
...
Originally committed as revision 13605 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-01 19:33:17 +00:00
Vitor Sessak
50b8f2cf1c
The function dec1() do two completly unrelated things. Split the rms calculation out of it.
...
Originally committed as revision 13604 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-01 19:30:07 +00:00
Vitor Sessak
a94701d03c
Yet more variable renaming
...
Originally committed as revision 13599 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-01 13:30:15 +00:00
Vitor Sessak
d4f0cc1c9f
More variable renaming
...
Originally committed as revision 13598 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-01 13:28:41 +00:00
Vitor Sessak
907892ee19
Rename functions
...
Originally committed as revision 13597 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-01 13:17:22 +00:00
Vitor Sessak
d981252c27
Rename variables
...
Originally committed as revision 13596 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-01 13:16:13 +00:00
Vitor Sessak
2f7d6835b6
Add doxy comments to eq() and do_voice()
...
Originally committed as revision 13581 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-31 15:37:41 +00:00
Vitor Sessak
4dc471c30c
Minor simplification
...
Originally committed as revision 13578 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-31 14:38:34 +00:00
Vitor Sessak
9765b44c50
Rename variable
...
Originally committed as revision 13577 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-31 14:36:46 +00:00
Vitor Sessak
208a2a60b9
Remove useless intermediate variable
...
Originally committed as revision 13576 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-31 14:34:35 +00:00
Vitor Sessak
27f19ed501
Revert r13499, log:
...
Make lpc coefficients 16 bit wide
Only one of my samples didn't decode bit-exact after this change,
but better be safe than sorry.
Originally committed as revision 13560 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-30 19:46:43 +00:00
Vitor Sessak
659094cb6b
Rename variable
...
Originally committed as revision 13510 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-28 21:25:18 +00:00
Vitor Sessak
5e8782dddf
More intermediate vars removal
...
Originally committed as revision 13508 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-28 21:17:32 +00:00
Vitor Sessak
408f43cb36
Remove unused var
...
Originally committed as revision 13506 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-28 21:04:42 +00:00
Vitor Sessak
7019f1a510
Remove useless intermediate var
...
Originally committed as revision 13505 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-28 21:02:51 +00:00
Vitor Sessak
e05f96285e
Remove dec1() function
...
Originally committed as revision 13504 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-28 20:36:11 +00:00
Vitor Sessak
31e15894d5
Use ff_acelp_weighted_vector_sum() instead of reimplementing it
...
Originally committed as revision 13500 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-28 19:04:34 +00:00
Vitor Sessak
594409a25c
Make lpc coefficients 16 bit wide
...
Originally committed as revision 13499 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-28 19:02:16 +00:00
Vitor Sessak
121ec9e55a
Simplify implementation and use of dec2()
...
Originally committed as revision 13498 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-28 18:59:09 +00:00
Vitor Sessak
d26a180fd6
Add comment
...
Originally committed as revision 13469 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-27 16:50:48 +00:00
Vitor Sessak
1fe50db3f2
Fix doxy comments
...
Originally committed as revision 13468 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-27 16:14:31 +00:00
Diego Biurrun
ae52bbe5de
cosmetics: typo fixes
...
Originally committed as revision 13464 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-27 10:51:23 +00:00
Diego Biurrun
30bd40f2f1
cosmetics: typo
...
Originally committed as revision 13443 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-26 23:11:24 +00:00
Vitor Sessak
6286924461
Rename var: add read coefficients a decent name
...
Originally committed as revision 13435 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-26 18:26:47 +00:00
Vitor Sessak
e9655b3dcd
Update comment
...
Originally committed as revision 13434 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-26 18:21:09 +00:00
Vitor Sessak
2a7b6f251c
Rename var: val -> energy
...
Originally committed as revision 13433 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-26 18:18:33 +00:00
Vitor Sessak
e037baf797
Rename var: swapbuf* are LPC related
...
Originally committed as revision 13432 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-26 18:16:05 +00:00
Vitor Sessak
f000bfad3d
Rename var: buffer_2 is an adaptive codebook
...
Originally committed as revision 13431 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-26 17:10:00 +00:00
Vitor Sessak
17a7fc8ceb
Context vars are not global vars. glob is a bad name for it.
...
Originally committed as revision 13430 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-26 16:59:39 +00:00
Vitor Sessak
fc9fcbaed5
Rename context struct to be more consistent with the rest of ffmpeg
...
Originally committed as revision 13429 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-26 16:55:22 +00:00
Vitor Sessak
5012cf88a3
Merge two if's
...
Originally committed as revision 13401 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-25 19:48:03 +00:00
Vitor Sessak
9d3c35fcfc
Use (u)int16_t instead of (unsigned) short
...
Originally committed as revision 13400 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-25 19:00:13 +00:00
Vitor Sessak
6fc4fac06c
More cosmetics
...
Originally committed as revision 13395 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-25 17:04:42 +00:00
Vitor Sessak
b906a5e3b7
Cosmetics
...
Originally committed as revision 13394 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-25 16:58:25 +00:00
Vitor Sessak
f8b5f7c71d
Rename var
...
Originally committed as revision 13393 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-25 16:53:55 +00:00
Vitor Sessak
ac1c27b21c
Minor simplification of dec1()
...
Originally committed as revision 13392 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-25 16:52:14 +00:00
Vitor Sessak
4bf8f3029b
Minor simplification of dec2()
...
Originally committed as revision 13391 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-25 16:50:08 +00:00
Vitor Sessak
c62c628fb3
Remove useless variable
...
Originally committed as revision 13390 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-25 16:46:05 +00:00
Vitor Sessak
14ff7cceeb
Cosmetics: merge declaration and initialization
...
Originally committed as revision 13389 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-25 16:44:56 +00:00
Vitor Sessak
cdc15adf16
Cosmetics: braces removal
...
Originally committed as revision 13388 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-25 16:42:31 +00:00
Vitor Sessak
58e23a5f21
Move evaluation of variable a to where it is trivial
...
Originally committed as revision 13387 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-25 16:29:07 +00:00
Vitor Sessak
d6ff684b12
Make add_wav() receive a vector instead of three integers
...
Originally committed as revision 13386 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-25 16:27:33 +00:00
Vitor Sessak
8916d922fc
Remove gbuf2 from context
...
Originally committed as revision 13383 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-25 16:10:08 +00:00
Vitor Sessak
d7dc90e42d
Use (u)int16_t instead of short for tables
...
Originally committed as revision 13376 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-25 13:26:04 +00:00
Vitor Sessak
0a08273542
Make tables that fit in one byte (u)int8_t
...
Originally committed as revision 13375 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-25 13:25:10 +00:00
Vitor Sessak
cb24827f4d
Remove yet another val (gbuf1) from context
...
Originally committed as revision 13374 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-25 13:23:27 +00:00
Vitor Sessak
94e79f0949
Parameter n of dec functions is always 3. Hardcode it.
...
Originally committed as revision 13373 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-25 13:22:56 +00:00
Vitor Sessak
a6072fdc18
Indent
...
Originally committed as revision 13362 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-24 20:52:50 +00:00
Vitor Sessak
ae76c49908
Remove another useless variable from context
...
Originally committed as revision 13361 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-24 20:51:56 +00:00
Vitor Sessak
13b6729361
Use an intermediate variable for overflow testing
...
Originally committed as revision 13283 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-24 16:38:48 +00:00
Vitor Sessak
84490b744e
Handle the case where we do not have enough input
...
Originally committed as revision 13282 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-24 16:20:37 +00:00
Vitor Sessak
be2c232f43
Simplify eq()
...
Originally committed as revision 13278 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-24 12:33:00 +00:00
Vitor Sessak
2279dd9e41
Simplify final()
...
Originally committed as revision 13277 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-24 09:20:09 +00:00
Vitor Sessak
0853393979
Simplify rms()
...
Originally committed as revision 13276 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-24 09:19:21 +00:00
Vitor Sessak
c2c237a0d5
More simplifications of ra144_decode_frame()
...
Originally committed as revision 13275 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-24 09:17:30 +00:00
Vitor Sessak
d548f09ff6
Make wavtable a table instead of an array
...
Originally committed as revision 13274 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-24 09:15:01 +00:00
Vitor Sessak
afe359c110
Make gbuf2 a table instead of an array
...
Originally committed as revision 13221 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-21 19:24:17 +00:00
Vitor Sessak
53da3f5f92
Remove unneeded var from context
...
Originally committed as revision 13220 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-21 19:23:15 +00:00
Vitor Sessak
3ceac114ee
Cosmetics: indentation
...
Originally committed as revision 13216 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-21 16:53:20 +00:00
Vitor Sessak
c32985829a
Simplify irms()
...
Originally committed as revision 13215 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-21 16:43:33 +00:00
Vitor Sessak
bf6497e911
Simplify add_wav()
...
Originally committed as revision 13214 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-21 16:43:05 +00:00
Vitor Sessak
c7666095fa
Only one out of two values of gbuf1 is actually used. Make it half the size.
...
Originally committed as revision 13213 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-21 16:41:58 +00:00
Vitor Sessak
65189c6cac
Make etable1 and etable2 tables instead of arrays.
...
Originally committed as revision 13212 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-21 16:38:44 +00:00
Vitor Sessak
59ffb6e2cc
Simplify ra144_decode_frame() by unrolling a senseless
...
loop.
Thanks mkhdor for suggesting this patch.
Originally committed as revision 13211 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-21 16:36:19 +00:00
Vitor Sessak
432a54ef80
Use ff_sqrt() function instead of using a table
...
Originally committed as revision 13210 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-21 16:33:49 +00:00
Vitor Sessak
47abbd3eb9
Cosmetics: move function to remove forward declarations
...
Originally committed as revision 13198 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-17 14:51:49 +00:00
Vitor Sessak
f1bf6ba3db
Minor simplification of rotate_block()
...
Originally committed as revision 13197 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-17 14:42:55 +00:00
Vitor Sessak
f54b42736d
Cosmetics: indentation
...
Originally committed as revision 13196 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-17 14:40:36 +00:00
Vitor Sessak
0c62d04e00
Cosmetics: rename variable
...
Originally committed as revision 13195 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-17 14:39:47 +00:00