Michael Niedermayer
74d9441715
Do not shift F[I] twice, it is also clearer and smaller now.
...
Originally committed as revision 13818 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
50c52d2250
Factorize c->ap += (-c->ap) >> 4 out
...
Originally committed as revision 13817 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
0e0d6cfd48
Get rid of G726Tables.bits.
...
Originally committed as revision 13816 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
05c9f3516c
Copy 4 pointers to avid dozends of ptr dereferences.
...
Originally committed as revision 13815 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
fc234250b4
Does not need to be int16.
...
Originally committed as revision 13814 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
cb26c9d664
Factorize I >> (c->tbls->bits - 1) out.
...
Originally committed as revision 13812 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
73ff4f8344
1 abs() less
...
Originally committed as revision 13810 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
4714776b6a
simplify
...
Originally committed as revision 13807 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
673a64b89b
useless ()
...
Originally committed as revision 13806 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
428c82cbac
remove unneeded tr == 0
...
Originally committed as revision 13805 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
e079a1c94f
simplify
...
Originally committed as revision 13804 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
c79c1a01a7
Get rid of the redundant AVG726Context.
...
Originally committed as revision 13803 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
ef4c5c6dba
Remove the truncated bitstream handling from our g726 decoder.
...
The stuff belongs in a parser.
Originally committed as revision 13802 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
a0e5830ac5
Change iquant tables to int16.
...
Originally committed as revision 13798 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
6aa37bcf19
simplify
...
Originally committed as revision 13797 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
cf409a6fec
Get rid of useless wrapper function.
...
Originally committed as revision 13796 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
170efe1f9d
Do not inline g726_iterate() the function is big so its inlining will
...
not help speedwise IMHO.
.o size changes from 70k -> 49k
Originally committed as revision 13793 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
aeaa7c3d00
Replace i2f(0) by the actual thing done, gcc is not an optimizing compiler.
...
a little over 1kb smaller .o
Originally committed as revision 13792 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
8112075415
Remove redundant zeroing (the context is memset(0)).
...
Originally committed as revision 13791 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
e3cafac638
Use smaller data types for tables.
...
Originally committed as revision 13790 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
deec52ccf2
Float11 does not need int, .o file becomes smaller and the code might
...
be faster.
Originally committed as revision 13789 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
7d7a9e7f37
simplify
...
Originally committed as revision 13788 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
aca490777f
Correct validity checks.
...
Originally committed as revision 13787 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
8b470cc542
Print sane error message for channels != 1.
...
Originally committed as revision 13786 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
35d0e16ba1
Check number of bits so we do not try to use table entries which do not exist.
...
Originally committed as revision 13785 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
8161c28c67
Support decoding of sample_g726.asf.
...
Originally committed as revision 13784 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
6dfcdc00b3
get_bits() outputs exactly as many bits as requested no need to mask them.
...
Originally committed as revision 13782 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
f6ec220cb5
Remove dead code.
...
Originally committed as revision 13781 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
5171fd9dd5
-0x8000 == 0x8000 with int16
...
fixes segfault / issue491
Originally committed as revision 13767 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
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
17 years ago
Stefano Sabatini
d5202e4fda
Add long names to many AVCodec declarations.
...
patch by Stefano Sabatini, stefano.sabatini-lala poste it
Originally committed as revision 13005 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Zuxy Meng
98a6fff98c
Apply 'cold' attribute to init/uninit functions in libavcodec
...
Originally committed as revision 12525 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
cea9642014
Fix ;;
...
Originally committed as revision 12153 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
5cbbbf378f
const
...
Originally committed as revision 11751 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Diego Pettenò
9307db13f6
Mark the tables in g726.c as constant.
...
Patch by Diego 'Flameeyes' Pettenò flameeyes ¤ gmail ! com
Originally committed as revision 11444 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Diego Biurrun
2029f312e8
Remove redundant #inclusion of common.h, avcodec.h already #includes it.
...
Originally committed as revision 8967 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Reimar Döffinger
f66e4f5f9e
Add av_ prefix to clip functions
...
Originally committed as revision 8122 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
François Revol
8fa36ae09d
This fixes error handling for BeOS, removing the need for some ifdefs.
...
AVERROR_ defines are moved to avcodec.h as they are needed in there as well. Feel free to move that to avutil/common.h.
Bumped up avcodec/format version numbers as though it's binary compatible we will want to rebuild apps as error values changed.
Please from now on use return AVERROR(EFOO) instead of the ugly return -EFOO in your code.
This also removes the need for berrno.h.
Originally committed as revision 7965 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Steve L'Homme
e344c1ea36
reindentation, patch by From: Steve Lhomme, slhomme divxcorp com
...
Originally committed as revision 6864 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Diego Biurrun
b78e7197a8
Change license headers to say 'FFmpeg' instead of 'this program/this library'
...
and fix GPL/LGPL version mismatches.
Originally committed as revision 6577 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Måns Rullgård
62bb489b13
add some #ifdef CONFIG_ENCODERS/DECODERS
...
Originally committed as revision 6356 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Diego Biurrun
5509bffa88
Update licensing information: The FSF changed postal address.
...
Originally committed as revision 4842 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago
Diego Biurrun
bb270c0896
COSMETICS: tabs --> spaces, some prettyprinting
...
Originally committed as revision 4764 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago
Diego Biurrun
115329f160
COSMETICS: Remove all trailing whitespace.
...
Originally committed as revision 4749 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago
Michael Niedermayer
9cd8179818
#defines for strict_std_compliance and split between inofficial extensions and non standarized things
...
Originally committed as revision 4205 to svn://svn.ffmpeg.org/ffmpeg/trunk
20 years ago
Michael Niedermayer
caa336b4cc
common.c -> bitstream.c (and the single non bitstream func -> utils.c)
...
common.h -> common.h/bitstream.h
Originally committed as revision 3777 to svn://svn.ffmpeg.org/ffmpeg/trunk
20 years ago
Michael Niedermayer
ef9c5d84be
make comments doxygen compatible
...
Originally committed as revision 3333 to svn://svn.ffmpeg.org/ffmpeg/trunk
21 years ago
Roman Shaposhnik
826ca10408
* gotta setup coded_frame for encoding. avcodec.h says that for decoding
...
lavc is supposed to set it up as well and I don't think I see any
reason not to.
Originally committed as revision 2769 to svn://svn.ffmpeg.org/ffmpeg/trunk
21 years ago
Michael Niedermayer
eb5b0422b5
use clip() from common.h
...
ignore sample_rate==8000 limit if strict_std_compliance < 0
Originally committed as revision 2762 to svn://svn.ffmpeg.org/ffmpeg/trunk
21 years ago
Roman Shaposhnik
e5966052ee
* Initial implementation of the G.726 ADPCM audio codec.
...
Originally committed as revision 2759 to svn://svn.ffmpeg.org/ffmpeg/trunk
21 years ago