Commit Graph

7566 Commits

Author SHA1 Message Date
Michael Niedermayer
fb0fbd7c6c Print slice num as well.
Originally committed as revision 14253 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-16 01:57:28 +00:00
Loren Merritt
5eb0f2a425 float_to_int16_interleave: change src to an array of pointers instead of assuming it's contiguous.
this has no immediate effect, but will allow it to be used in more codecs.

Originally committed as revision 14252 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-16 00:50:12 +00:00
Loren Merritt
633d9def9d vorbis: reduce memory by reusing buffers
Originally committed as revision 14251 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-15 23:04:28 +00:00
Loren Merritt
1a32536737 unroll another common case in vorbis_residue_decode
Originally committed as revision 14250 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-15 23:01:15 +00:00
Alexander Strange
64b9d48f76 Move the size of the H264Context delayed_pic array into a #define.
This improves readability by getting rid of some magic numbers.

Originally committed as revision 14248 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-15 21:30:04 +00:00
Måns Rullgård
b0367ef00a ARM: optimised MAC64 and MLS64
Originally committed as revision 14245 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-15 19:06:32 +00:00
Måns Rullgård
6865e04620 ARM: optimised MUL64
Originally committed as revision 14244 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-15 19:06:29 +00:00
Måns Rullgård
7995962d4b ARM: ARMv6 optimised MULH
Originally committed as revision 14243 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-15 19:06:25 +00:00
Måns Rullgård
29c8b6263a Remove dead code in bitstream.h
Originally committed as revision 14238 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-15 18:43:26 +00:00
Loren Merritt
4342a7f30b 10l, float_to_int16_interleave_sse/3dnow wrote the wrong samples
Originally committed as revision 14236 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-15 04:11:30 +00:00
Måns Rullgård
e1f15d3836 H264: fix index range assert() in remove_short_at_index()
Originally committed as revision 14233 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-14 19:17:13 +00:00
Michael Niedermayer
54347c2f51 Fix infinite loop at EOF.
Originally committed as revision 14231 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-14 16:18:29 +00:00
Vitor Sessak
0e3510a31f Revert r14218. FFMAX is a macro, so
sum = FFMAX(1, scalar_product(...));
might calculate the scalar product twice, which is slower.

Originally committed as revision 14230 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-14 14:41:01 +00:00
Michael Niedermayer
f55a5281ac Fix decoding of 320x240.ogg.
Originally committed as revision 14227 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-13 23:34:29 +00:00
Michael Niedermayer
4c453ddbbc Make our flac decoder decode all the data at EOF.
Fixes issue524

Originally committed as revision 14223 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-13 21:51:29 +00:00
Stefano Sabatini
9606a83824 strdup() the default value for rc_eq in AVCodec when setting it in
avcodec_get_context_defaults(). The value has to be alloced dinamically
rather than statically since it may be freed for example by
av_set_string2(). Fix a segmentation fault.

Originally committed as revision 14221 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-13 21:44:00 +00:00
Stefano Sabatini
f969058998 Fix the logic to access the location of a string to free when setting
a new value for a string with av_set_string2(). Fix a segmentation
fault.

Originally committed as revision 14219 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-13 21:28:17 +00:00
Vitor Sessak
b903a9285e Simplify
Originally committed as revision 14218 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-13 20:41:09 +00:00
Vitor Sessak
3819081f75 Another av_clipf() usage
Originally committed as revision 14217 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-13 20:39:55 +00:00
Vitor Sessak
aa64ee30d1 Do not declare as double a var that only stores a float
Originally committed as revision 14216 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-13 20:38:42 +00:00
Vitor Sessak
1894db1487 Simplify: use FFMAX
Originally committed as revision 14215 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-13 20:36:32 +00:00
Reimar Döffinger
b08edb2268 check that csize in ff_lzw_decode_init is < LZW_MAXBITS, <= is not enough and
might read outside the prefix array

Originally committed as revision 14214 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-13 20:03:57 +00:00
Vitor Sessak
4138ad961c Add av_clipf() function to common.h and use it in ra288.c
Originally committed as revision 14213 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-13 19:59:44 +00:00
Måns Rullgård
8effdce0e7 dvdsubdec: allow compilation with -DDEBUG
Originally committed as revision 14212 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-13 19:41:13 +00:00
Loren Merritt
b9fa32082c exploit mdct symmetry
2% faster vorbis on conroe, k8. 7% on celeron.

Originally committed as revision 14207 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-13 15:03:58 +00:00
Ramiro Polla
eb2cd99c73 mlpdec: Check for bits left before each read of End-of-Stream indicator and
Substream parity check independently. This allows decoding of streams that
have EOS but don't have Substream parity check.

Originally committed as revision 14206 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-13 14:59:39 +00:00
Loren Merritt
f27e1d645e simplify vorbis windowing
Originally committed as revision 14205 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-13 14:56:01 +00:00
Ramiro Polla
6647ab80e3 bitstream: move put_sbits() from flacenc.c to bitstream.h and use it
throughout libavcodec.

Originally committed as revision 14204 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-13 14:27:48 +00:00
Reimar Döffinger
f9bd305694 clip MS ADPCM predictor range to correct [0..6] range, not [0..7]
Originally committed as revision 14203 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-13 14:25:31 +00:00
Reimar Döffinger
962fe7e1c4 Use bytestream and AV_RL* functions in ADPCM code where possible
Originally committed as revision 14202 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-13 14:12:51 +00:00
Reimar Döffinger
ae8afab998 Fix MS ADPCM de- and encoding: first and second sample are swapped.
Noticeable better decoding of e.g. http://samples.mplayerhq.hu/A-codecs/msadpcm-stereo/dance-b5th.asf

Originally committed as revision 14201 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-13 14:08:28 +00:00
Måns Rullgård
9ea583e1f6 mpegaudio: use MAC/MLS macros in ff_mpa_synth_filter
Originally committed as revision 14199 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-13 12:23:02 +00:00
Måns Rullgård
ffa978f157 mathops: add MAC64, MLS64, and MLS16
MAC64: 64 += 32 x 32 (bits)
MLS64: 64 -= 32 x 32
MLS16: 32 -= 16 x 16

Originally committed as revision 14198 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-13 12:22:57 +00:00
Måns Rullgård
71c465a151 Bitstream: use AV_RB16() in LIBMPEG2_BITSTREAM_READER
This makes LIBMPEG2_BITSTREAM_READER_HACK redundant, so remove it.

Originally committed as revision 14197 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-13 00:07:43 +00:00
Anuradha Suraparaju
007f67b012 Fix pts handling when encoding with libschroedinger, closes issue 453.
patch by Anuradha Suraparaju, anuradha rd.bbc.co uk

Originally committed as revision 14192 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-12 20:12:18 +00:00
Anuradha Suraparaju
f73b204000 Fix pts handling when encoding with libdirac.
patch by Anuradha Suraparaju, anuradha rd.bbc.co uk

Originally committed as revision 14191 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-12 20:09:50 +00:00
Michael Niedermayer
0bef08e516 New codec probing system try #1.
Originally committed as revision 14184 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-12 18:42:00 +00:00
Reimar Döffinger
09fec2b929 Use new style static VLC tables for IMC decoder.
Also fixes a memleak due to the previous in-context tables not being freed.

Originally committed as revision 14182 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-12 15:02:40 +00:00
Robert Swain
f1b2f1bf50 Typo and grammar fix
Originally committed as revision 14177 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-12 10:56:12 +00:00
Robert Swain
848eab4e0a Correct a couple of typos
Originally committed as revision 14176 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-12 09:48:19 +00:00
Reimar Döffinger
8884b91898 100l, fix MS ADPCM decoding for e.g. http://samples.mplayerhq.hu/mov/qtaudio/surge-2-16-L-ms02.mov
First coefficient array must be unsigned to fit in 8 bits

Originally committed as revision 14175 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-12 09:23:37 +00:00
Reimar Döffinger
ff2271267e 10l, forgot to replace a / 256 for r14173.
Fixes MS ADPCM regression test.

Originally committed as revision 14174 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-12 07:28:45 +00:00
Reimar Döffinger
ddcf031f3b Change MS ADPCM table so they fit into int8_t and change array type.
Originally committed as revision 14173 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-11 21:38:42 +00:00
Michael Niedermayer
4972a2464b indent
Originally committed as revision 14172 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-11 19:54:02 +00:00
Michael Niedermayer
7ee18c1781 Fix not coded channels / silence decoding.
Fixes issue264 WMV audio stutter

Originally committed as revision 14171 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-11 19:51:36 +00:00
Michael Niedermayer
362aba4be7 Check that we have enough output space available.
Originally committed as revision 14170 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-11 19:45:52 +00:00
Andreas Öman
0261e3651a Deprecate avcodec_build(), it returns the same value as
avcodec_version().

Originally committed as revision 14169 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-11 15:25:12 +00:00
Diego Biurrun
4ad62d9a5c Move #ifdef CONFIG_DVVIDEO_ENCODER up to cover all functions used for encoding.
Originally committed as revision 14166 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-11 07:48:37 +00:00
Diego Biurrun
fd9f315339 Make preprocessor condition more specific and useful by changing
#ifdef CONFIG_ENCODERS --> #ifdef CONFIG_DVVIDEO_ENCODER.

Originally committed as revision 14165 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-11 07:45:49 +00:00
Kostya Shishkov
d7e1fc4254 SSE2 optimizations for Monkey's Audio decoder vector functions
Originally committed as revision 14161 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-11 04:48:38 +00:00
Jason Garrett-Glaser
3a8322b133 H264: Fix decoding with CABAC/delta_qp/PCM macroblocks.
Patch by Jason Garrett-Glaser (darkshikari gmail com)

Originally committed as revision 14160 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-11 02:07:57 +00:00
avcoder
6413d91d08 Remove useless casts.
Patch by avcoder ffmpeg at gmail d0t com

Originally committed as revision 14154 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-10 11:52:51 +00:00
avcoder
24909d3983 Remove useless casts.
Patch by avcoder ffmpeg at gmail d0t com

Originally committed as revision 14153 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-10 11:49:53 +00:00
Anuradha Suraparaju
733cec1d73 Parse frames to feed the decoder with individual parse units.
Patch by Anuradha Suraparaju anuradha rd bbc co uk
Original thread: [PATCH] Patches to fix issue453 individuallibdiracschroedinger
Date: 05/22/2008 04:26 AM

Originally committed as revision 14152 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-10 11:44:01 +00:00
Anuradha Suraparaju
0cf0e25d22 Add a parameter for queue size.
Patch by Anuradha Suraparaju anuradha rd bbc co uk

Originally committed as revision 14150 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-10 11:40:19 +00:00
Kostya Shishkov
bb68f8a2b6 Monkey's Audio decoder vector functions work on input with length
a multiple of 16. Reflect that fact in the documentation for them.

Originally committed as revision 14148 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-10 06:15:13 +00:00
Gregory Montoir
974e0eeed3 Motion Pixels Video Decoder.
Patch by Gregory Montoir <cyx <at> users <dot> sourceforge <dot> net>

Originally committed as revision 14146 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-10 03:01:39 +00:00
Michael Niedermayer
fdbb1feb27 Remove ancient code that hasnt worked in many years.
Originally committed as revision 14144 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-09 19:21:08 +00:00
Michael Niedermayer
81d4ee3e16 New full search ME
Originally committed as revision 14142 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-09 18:59:52 +00:00
Alexander Strange
bc31447225 Make the function prototype visible to comply with C99 inline.
Fixes building with gcc -std=gnu99.

Originally committed as revision 14140 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-09 17:51:57 +00:00
Peter Ross
5cfdfd8aae increment minor version for commit r14110 (Electronic Arts CMV decoder)
Originally committed as revision 14139 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-09 08:34:43 +00:00
Michael Niedermayer
e98750c373 float_to_int16_sse2()
20% faster than sse

Originally committed as revision 14138 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-09 07:21:12 +00:00
Michael Niedermayer
7445f9cc67 fix IPCM_decode_error.h264
Originally committed as revision 14135 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-09 06:03:59 +00:00
Michael Niedermayer
8dbee6538d Fix the av_set_string() free / alloc issue.
Originally committed as revision 14134 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-08 23:50:03 +00:00
Diego Biurrun
716e7c0f0b Remove wrong casts from vector declarations, this would cause errors when
compiling with -std=gnu99. Blessed by Luca Barbato.

Originally committed as revision 14129 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-08 16:02:20 +00:00
Peter Ross
495900f78b Electronic Arts CMV decoder
Originally committed as revision 14110 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-08 13:22:23 +00:00
Peter Ross
60f451b6fe Remove AVPaletteControl from ALG MM demuxer/decoder
Originally committed as revision 14109 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-08 12:44:08 +00:00
Victor Pollex
1835cda65a Make LOAD4/STORE4 macros more generic.
Patch by Victor Pollex victor pollex web de
Original thread: [PATCH] mmx implementation of vc-1 inverse transformations
Date: 06/21/2008 03:37 PM

Originally committed as revision 14108 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-08 09:24:11 +00:00
Michael Niedermayer
35ee72b1d7 1 c-asm loop less and 1x unroll of float_to_int16_sse()
25% faster

Originally committed as revision 14104 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-07 21:25:18 +00:00
Michael Niedermayer
560fa9bf51 Fix x86-64
Originally committed as revision 14103 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-07 21:04:29 +00:00
Michael Niedermayer
63b737d4f9 dont use C-asm loops and unroll once float_to_int16_3dnow()
30% faster

Originally committed as revision 14102 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-07 20:46:03 +00:00
Benjamin Larsson
7769875db3 redundant assignment found by Clang
Originally committed as revision 14096 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-07 08:29:08 +00:00
Vitor Sessak
5be30c59da Simplify: glob->phase is always == 3
Originally committed as revision 14094 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-06 14:23:30 +00:00
Vitor Sessak
f27f0fc374 Cosmetics: reindent tables
Originally committed as revision 14093 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-06 14:16:21 +00:00
Vitor Sessak
f803495415 Remove phasep context var, it is just phase*5
Originally committed as revision 14092 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-06 12:03:21 +00:00
Vitor Sessak
eb73742d6e Slighly faster operation
Originally committed as revision 14091 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-06 12:01:59 +00:00
Vitor Sessak
0bbab5671d Typo in a comment: s/two avoid/to avoid/
Originally committed as revision 14090 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-06 10:49:28 +00:00
Vitor Sessak
8edfd15175 Cosmetics: remove braces
Originally committed as revision 14089 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-06 10:35:01 +00:00
Vitor Sessak
a5f0f504df Another use of scalar_product_float()
Originally committed as revision 14088 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-06 10:32:29 +00:00
Vitor Sessak
a03a6db1af Do not reimplement memmove()
Originally committed as revision 14087 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-06 10:30:21 +00:00
Gregory Montoir
7bd2f502fa Remove context fields which can be used as simple local variables.
patch by Gregory Montoir, cyx users sourceforge net

Originally committed as revision 14086 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-06 10:01:54 +00:00
Gregory Montoir
ce83d48b22 Remove av_cold attribute on decode_frame and add it to decode_end
to match other codecs.
patch by Gregory Montoir, cyx users sourceforge net

Originally committed as revision 14084 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-06 09:58:23 +00:00
Stefano Sabatini
ed76af08a4 Document av_find_opt().
Originally committed as revision 14083 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-06 08:16:50 +00:00
Kostya Shishkov
7246d6311e Altivec implementation of APE vector functions
Originally committed as revision 14082 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-06 07:33:09 +00:00
Kostya Shishkov
88c0536a42 Add several vector functions used by Monkey's Audio decoder to dsputil
Originally committed as revision 14081 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-06 06:06:55 +00:00
Vitor Sessak
647b90ae0e Cosmetics: remove braces
Originally committed as revision 14080 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-05 18:43:24 +00:00
Vitor Sessak
7a64649d68 Create a function for float dot product instead of duplicating all over the file
Originally committed as revision 14079 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-05 18:42:08 +00:00
Diego Biurrun
a4ce72480e Add correct header #include to fix 'make checkheaders'.
Originally committed as revision 14078 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-05 10:16:54 +00:00
Diego Biurrun
0e74e1ff3c Add required stdint.h header #include.
Originally committed as revision 14077 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-05 10:16:27 +00:00
Diego Biurrun
9906a2be76 spelling cosmetics
Originally committed as revision 14076 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-05 10:11:42 +00:00
Diego Biurrun
bbdfa06d43 Add a note to remind people that new PCM/ADPCM formats need to be added to
the Makefile as well to allow proper selective compilation.

Originally committed as revision 14072 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-05 07:30:59 +00:00
Diego Biurrun
f1e3c9368b Remove unused variable, fixes the warning:
libavcodec/nellymoserdec.c:133: warning: unused variable ‘i’

Originally committed as revision 14071 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-05 07:28:35 +00:00
Vitor Sessak
6f1e7a9e09 Write for loops in a more standard way. In my opinion, they are much more readable now.
Originally committed as revision 14068 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-04 19:55:58 +00:00
Ramiro Polla
b517af05b9 MLP/TrueHD decoder.
Originally committed as revision 14067 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-04 15:44:13 +00:00
Vitor Sessak
69c23e6f33 Move vars declaration to inner loop when possible
Originally committed as revision 14066 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-04 15:37:52 +00:00
Vitor Sessak
12ea267bca Simplify
Originally committed as revision 14065 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-04 15:32:04 +00:00
Vitor Sessak
ab52eb8e50 Remove unneeded var
Originally committed as revision 14063 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-03 19:25:12 +00:00
Vitor Sessak
780433976d Use a matrix instead of a vector
Originally committed as revision 14062 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-03 19:23:42 +00:00
Vitor Sessak
a429946ba9 Reindent table
Originally committed as revision 14061 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-03 19:21:19 +00:00
Michael Niedermayer
4f0689b528 We do not only calculate it but we also return it.
Originally committed as revision 14058 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-03 11:52:35 +00:00
Michael Niedermayer
2de74f5a4d More correct comment.
Originally committed as revision 14057 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-03 11:51:59 +00:00
Michael Niedermayer
2b150e9a0c make sum_of_squares() more generic
Originally committed as revision 14056 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-03 11:50:44 +00:00
Alexander Strange
58cc7dd9fc Cosmetics: split a long line.
Originally committed as revision 14055 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-02 22:28:47 +00:00
Alexander Strange
92ed1ec957 Use get_cabac_bypass_sign instead of an if/else.
Originally committed as revision 14054 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-02 22:25:17 +00:00
Alexander Strange
142ee5d73d Reorder the if/else for residual cats to match gcc's branch prediction.
Originally committed as revision 14053 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-02 22:20:06 +00:00
Alexander Strange
47775cb8de Simplify loop condition for readability.
Originally committed as revision 14052 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-02 22:15:05 +00:00
Alexander Strange
9f734c3b57 Reindent.
Originally committed as revision 14051 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-02 22:12:01 +00:00
Alexander Strange
9588ec340c Clone decode_cabac_residual() for DC residuals, to get rid of a bunch of branches in the main loop.
Originally committed as revision 14050 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-02 22:08:12 +00:00
Alexander Strange
2e254bc583 Don't generate two copies of hl_decode_mb() under ENABLE_SMALL.
(assuming your compiler removes unused static functions)

Originally committed as revision 14049 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-02 22:03:53 +00:00
Alexander Strange
fedec603db Don't test for H264 encoding unless an encoder exists.
Originally committed as revision 14048 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-02 21:46:18 +00:00
Ramiro Polla
5faf3a4449 Clarify comment about parity nibble.
Originally committed as revision 14047 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-02 12:24:50 +00:00
Ramiro Polla
49de8d1e9c Make ff_mlp_read_major_sync() take a GetBitContext instead of buffers.
Originally committed as revision 14044 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-01 01:36:16 +00:00
Stefano Sabatini
6122c92e92 Clarify/simplify documentation for the default_val field in AVOption.
Originally committed as revision 14043 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-30 21:46:49 +00:00
Vitor Sessak
f38deb4452 Remove useless wrapper around ra288_decode_frame()
Originally committed as revision 14041 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-30 19:30:27 +00:00
Vitor Sessak
6091357fc0 Remove unpack() function, read the bitstream as needed
Originally committed as revision 14040 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-30 19:09:00 +00:00
Vitor Sessak
285ea3e30a Clean up error message
Originally committed as revision 14039 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-30 18:39:11 +00:00
Vitor Sessak
a40b2c2a4b Rewrite unpack() using the bitstream reader
Originally committed as revision 14038 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-30 18:36:45 +00:00
Vladimir Voroshilov
e500315b1d gain code, gain pitch and pitch delay decoding for ACELP based codecs
Originally committed as revision 14037 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-30 18:03:38 +00:00
Vitor Sessak
4452836391 Move function to avoid forward declaration
Originally committed as revision 14036 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-30 16:57:27 +00:00
Vitor Sessak
c1fadf5012 Remove useless initialization
Originally committed as revision 14035 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-30 16:54:49 +00:00
Vitor Sessak
eec7ade275 Reindent the whole file
Originally committed as revision 14034 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-30 16:53:33 +00:00
Benoit Fouet
0abf0c5398 Simplify mm_support() for ARM (by Måns).
Originally committed as revision 14033 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-30 11:16:47 +00:00
Matthieu Castet
37dcd091da Define mm_support() for ARM.
Patch by Matthieu Castet <castet matthieu free fr>

Originally committed as revision 14032 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-30 07:31:41 +00:00
Vitor Sessak
fe4a5b185f Make ff_acelp_lp_synthesis_filter() receives a pointer to the actual filter coefficients and not the pointer minus one
Originally committed as revision 14031 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-29 21:37:03 +00:00
Vitor Sessak
b83ff6c700 Update copyright
Originally committed as revision 14030 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-29 13:12:31 +00:00
Vitor Sessak
95fc77b92d Use ff_acelp_lp_synthesis_filter() instead of duplicating it
Originally committed as revision 14029 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-29 11:21:06 +00:00
Vitor Sessak
8a1c868ee6 Add a rounding parameter to ff_acelp_lp_synthesis_filter()
Originally committed as revision 14028 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-29 11:19:50 +00:00
Laurent Desnogues
a6ce3d3d2d Add command line support for '-idct simplearmv6'.
patch by Laurent Desnogues, laurent.desnogues gmail com

Originally committed as revision 14027 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-29 08:32:27 +00:00
Vitor Sessak
dc95111c09 Doxy comment
Originally committed as revision 14026 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-29 07:58:46 +00:00
Baptiste Coudurier
f056c8e9dd set frame_size in libfaad decoder
Originally committed as revision 14024 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-28 19:41:18 +00:00
Alexander Strange
74fd9022b5 Realign newlines.
Originally committed as revision 14023 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-28 18:30:50 +00:00
Alexander Strange
00969e1c59 Use MANGLE() instead of memory operands to read globals.
(fixes out of registers with apple gcc 4.2)

Originally committed as revision 14022 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-28 18:27:31 +00:00
Michael Niedermayer
aadd27cdf4 Make code independent/less dependent on dsputil.
This also makes the mmx parts work again ...

Originally committed as revision 14021 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-28 10:42:31 +00:00
Ramiro Polla
ae10e1fd3d Seek the file forwards instead of backwards when sync is lost.
Originally committed as revision 14014 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-27 21:36:01 +00:00
Alexander Strange
b6a66897b6 Remove pointless AVFrame* casting.
Originally committed as revision 14011 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-27 18:53:41 +00:00
Alexander Strange
39047aecac Remove duplicate emms.
Originally committed as revision 14010 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-27 18:52:02 +00:00
Alexander Strange
8b9bda1c37 Remove commented-out code.
Originally committed as revision 14009 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-27 18:51:01 +00:00
Alexander Strange
2f3b1b801a Export qscale so that postprocessing works.
Originally committed as revision 14008 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-27 18:50:06 +00:00
Alexander Strange
de7bdf58f4 Remove unused PutBitContext.
Originally committed as revision 14007 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-27 18:47:01 +00:00
Måns Rullgård
dce292bb35 Revert "add libmpeg2 permutation to dct-test"
10l to me for not noticing that dct-test.c calls this
permutation MMX.  Note to self: don't code after 2am.

Originally committed as revision 13991 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-26 17:20:26 +00:00
Aurelien Jacobs
4231f05b28 VP3 parser can also handle VP6 without any changes.
Originally committed as revision 13990 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-26 17:14:20 +00:00
Stefan Gehrer
b3bf98aa56 move ff_log2_run to bitstream.c and reuse in ffv1.c
Originally committed as revision 13989 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-26 16:39:21 +00:00
Michael Niedermayer
0c587a4ea8 VP3 & Theora parser to extract keyframe flags.
This parser is not able to split random bitstream pieces.

Originally committed as revision 13986 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-26 11:25:42 +00:00
Måns Rullgård
fb9464e807 add libmpeg2 permutation to dct-test
Originally committed as revision 13985 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-26 01:13:16 +00:00
Michael Niedermayer
fc658cfe2b Support >=4096 dimensions, fixes issue499.
Originally committed as revision 13984 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-25 23:57:06 +00:00
Michael Niedermayer
da95f225fd Set frame_size to the gcd of what the decoder can output.
Originally committed as revision 13971 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-25 18:35:24 +00:00
Alexander Strange
ff558537f0 Don't set mm_flags in fft-test, since it doesn't do anything anyway.
Originally committed as revision 13968 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-25 17:37:47 +00:00
Alexander Strange
dafe882457 Use a local variable instead of mm_flags in dct-test.
Originally committed as revision 13967 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-25 17:33:55 +00:00
Stefan Gehrer
e8e4743591 make ModeAlphabet read-only and use a custom mode alphabet
only locally in unpack_modes()

Originally committed as revision 13964 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-25 14:14:58 +00:00
David Liu
7694a7d93f Close parse context.
Patch by David LIU david liu st com

Originally committed as revision 13962 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-25 12:30:35 +00:00
Ramiro Polla
c624c2195f Make it a little easier to spot that the code is not dealing only with
substream headers.

Originally committed as revision 13961 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-25 12:08:39 +00:00
Stefan Gehrer
5a89396989 remove duplicate tables
Originally committed as revision 13959 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-25 11:33:49 +00:00
Alexander Strange
f67a10cd0c Define mm_flags/support to be 0 on architectures where they don't exist.
Make sure we don't try to set them if that's the case.
This lets dct-test and fft-test build with --disable-mmx on x86, but not yet on ARM.

Originally committed as revision 13957 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-24 23:51:17 +00:00
Vitor Sessak
afb40e7277 Simplify interp()
Originally committed as revision 13953 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-24 21:32:34 +00:00
Vitor Sessak
74adaa3a00 More cosmetics
Originally committed as revision 13952 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-24 21:30:09 +00:00
Vitor Sessak
a97642680b Cosmetics
Originally committed as revision 13951 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-24 21:29:18 +00:00
Stefan Gehrer
0e1d6a4ca7 revert accidental const slipping in
Originally committed as revision 13949 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-24 20:27:29 +00:00
Diego Biurrun
ae32e509fb Replace redundant MAX macro declaration by proper use of FFMAX.
Originally committed as revision 13948 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-24 20:15:31 +00:00
Stefan Gehrer
cf2baeb338 mark read-only data as const
Originally committed as revision 13947 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-24 20:01:31 +00:00
Vitor Sessak
73cc419b27 Use lpc_coef[2] instead of lpc_coef and lpc_coef_old
Originally committed as revision 13946 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-24 18:38:55 +00:00
Vitor Sessak
ae70f874ba Remove unused entries from lpc_refl_cb*
Originally committed as revision 13945 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-24 18:13:44 +00:00
Vitor Sessak
7986199fcf Remove unused entries from energy_tab
Originally committed as revision 13944 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-24 18:06:30 +00:00
Laurent Desnogues
f5b6778184 Mark constant structure member as const to avoid some warnings.
patch by Laurent Desnogues, laurent.desnogues gmail com

Originally committed as revision 13942 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-24 09:10:30 +00:00
Diego Biurrun
941b1258b8 Remove redundant mm_flags declaration, fixes the warning:
libavcodec.a(dsputil_ppc.o): warning: definition of `mm_flags' overriding common
fft-test.o: warning: common is here

Originally committed as revision 13940 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-24 09:00:58 +00:00
Vitor Sessak
cbcc2527ea Remove unused values from gain_{val,exp}_tab
Originally committed as revision 13937 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-23 21:27:42 +00:00
Vitor Sessak
274ac3457e Now these tables fit in 16 bits.
Originally committed as revision 13936 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-23 21:12:35 +00:00
Vitor Sessak
738ef8fd08 Merge the >> 4 calculation of cb1_base in the table
Originally committed as revision 13935 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-23 21:10:59 +00:00
Vitor Sessak
80e9f30c23 Consistency: make the output buffer the first argument of functions
Originally committed as revision 13934 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-23 21:00:28 +00:00
Vitor Sessak
0a03b6f049 Use sizeof() intead of hardcoding the values
Originally committed as revision 13933 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-23 20:53:05 +00:00
Vitor Sessak
09addb11ce Simplify
Originally committed as revision 13932 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-23 20:46:42 +00:00
Vitor Sessak
f1936f61c4 Simplify
Originally committed as revision 13931 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-23 20:44:58 +00:00
Vitor Sessak
b45411e24a It makes more sense to return 1 here in case of overflow.
Originally committed as revision 13930 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-23 20:42:36 +00:00
Vitor Sessak
37a4b3bb02 Cosmetics: indent
Originally committed as revision 13929 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-23 20:39:28 +00:00
Vitor Sessak
b0068d75eb Remove unneeded check
Originally committed as revision 13928 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-23 20:39:09 +00:00
Vitor Sessak
56a6fac89b rescale_rms() should use unsigned ints
Originally committed as revision 13927 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-23 20:37:53 +00:00
Vitor Sessak
536ee17499 Move factor multiplication out of irms()
Originally committed as revision 13926 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-23 20:35:02 +00:00
Vitor Sessak
498cb53163 This should be signed
Originally committed as revision 13925 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-23 20:33:31 +00:00
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
Stefano Sabatini
a33a6eb2ce Fix typo in libavcodec/opt.h.
Originally committed as revision 13912 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-23 19:47:10 +00:00
Art Clarke
51f90867ea Allocate static tables on stack, not heap.
Patch by Art Clarke: aclarke vlideshow com

Originally committed as revision 13907 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-23 07:33:15 +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
Robert Swain
f5048aaf69 Remove now unused variable
Originally committed as revision 13889 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-22 15:26:00 +00:00
Robert Swain
9146e4d61c Add generic ff_sine_window_init function and implement in codecs appropriately
Originally committed as revision 13888 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-22 15:12:27 +00:00
Peter Ross
d47f16074f vp6: ensure that huffman decoding table is sorted with descending symbol order
Previous code worked by pure luck with glibc qsort implementation.
patch by Peter Ross   pross _at_ xvid _dot_ org

Originally committed as revision 13887 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-22 13:20:41 +00:00
Diego Biurrun
d43cf68898 cosmetics: alignment
Originally committed as revision 13886 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-22 13:01:24 +00:00
Diego Biurrun
4e882caf51 Add missing entry for PCM_DVD_ENCODER.
Originally committed as revision 13885 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-22 12:56:30 +00:00
Peter Ross
4198efe83f Add missing mpegvideo.o to list of vc1.o dependencies.
patch by Peter Ross, pross xvid org

Originally committed as revision 13884 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-22 12:52:26 +00:00
Peter Ross
c183033f77 Add missing entry for ADPCM_IMA_QT_ENCODER.
patch by Peter Ross, pross xvid org

Originally committed as revision 13883 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-22 12:48:39 +00:00
Peter Ross
cc6c2befa9 Add missing entry for ADPCM_EA_MAXIS_XA_DECODER.
patch by Peter Ross, pross xvid org

Originally committed as revision 13882 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-22 12:47:39 +00:00
Reimar Döffinger
00eebe3d6a Fix add_bytes_mmx and add_bytes_l2_mmx for w < 16
Originally committed as revision 13877 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-22 07:05:40 +00:00
Stefano Sabatini
b453924f3c Extend documentation for AVOption.
Originally committed as revision 13854 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-21 09:15:49 +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
6e05a76640 10l: fix typo
Originally committed as revision 13826 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-19 20:34:29 +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
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
2008-06-19 11:04:31 +00:00
Michael Niedermayer
50c52d2250 Factorize c->ap += (-c->ap) >> 4 out
Originally committed as revision 13817 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-19 11:00:17 +00:00
Michael Niedermayer
0e0d6cfd48 Get rid of G726Tables.bits.
Originally committed as revision 13816 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-19 10:52:47 +00:00
Michael Niedermayer
05c9f3516c Copy 4 pointers to avid dozends of ptr dereferences.
Originally committed as revision 13815 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-19 10:49:30 +00:00
Michael Niedermayer
fc234250b4 Does not need to be int16.
Originally committed as revision 13814 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-19 10:38:20 +00:00
Michael Niedermayer
cb26c9d664 Factorize I >> (c->tbls->bits - 1) out.
Originally committed as revision 13812 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-19 10:29:36 +00:00
Stefano Sabatini
747d1b87e2 Improve an lclenc.c error message in case of unsupported input pixel
format.

Originally committed as revision 13811 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-19 10:12:15 +00:00
Michael Niedermayer
73ff4f8344 1 abs() less
Originally committed as revision 13810 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-19 10:02:39 +00:00
Michael Niedermayer
4714776b6a simplify
Originally committed as revision 13807 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-18 21:09:36 +00:00
Michael Niedermayer
673a64b89b useless ()
Originally committed as revision 13806 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-18 21:05:07 +00:00
Michael Niedermayer
428c82cbac remove unneeded tr == 0
Originally committed as revision 13805 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-18 21:00:44 +00:00
Michael Niedermayer
e079a1c94f simplify
Originally committed as revision 13804 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-18 20:54:21 +00:00
Michael Niedermayer
c79c1a01a7 Get rid of the redundant AVG726Context.
Originally committed as revision 13803 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-18 20:51:12 +00:00
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
2008-06-18 19:18:32 +00:00
Guillaume Poirier
28215b3700 convert DOS-style carriage return to Unix-style
Originally committed as revision 13799 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-17 14:42:51 +00:00
Michael Niedermayer
a0e5830ac5 Change iquant tables to int16.
Originally committed as revision 13798 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-17 14:03:00 +00:00
Michael Niedermayer
6aa37bcf19 simplify
Originally committed as revision 13797 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-17 13:46:59 +00:00
Michael Niedermayer
cf409a6fec Get rid of useless wrapper function.
Originally committed as revision 13796 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-17 13:40:40 +00:00
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
2008-06-17 00:09:42 +00:00
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
2008-06-16 23:57:12 +00:00
Michael Niedermayer
8112075415 Remove redundant zeroing (the context is memset(0)).
Originally committed as revision 13791 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-16 23:53:34 +00:00
Michael Niedermayer
e3cafac638 Use smaller data types for tables.
Originally committed as revision 13790 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-16 23:51:07 +00:00
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
2008-06-16 23:34:15 +00:00
Michael Niedermayer
7d7a9e7f37 simplify
Originally committed as revision 13788 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-16 23:31:23 +00:00
Michael Niedermayer
aca490777f Correct validity checks.
Originally committed as revision 13787 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-16 23:23:56 +00:00
Michael Niedermayer
8b470cc542 Print sane error message for channels != 1.
Originally committed as revision 13786 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-16 23:20:11 +00:00
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
2008-06-16 23:16:44 +00:00
Michael Niedermayer
8161c28c67 Support decoding of sample_g726.asf.
Originally committed as revision 13784 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-16 23:12:50 +00:00
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
2008-06-16 20:42:54 +00:00
Michael Niedermayer
f6ec220cb5 Remove dead code.
Originally committed as revision 13781 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-16 20:40:44 +00:00
Diego Biurrun
b11829a9d9 Add missing #includes to fix 'make checkheaders'.
Originally committed as revision 13776 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-16 08:25:48 +00:00
Jai Menon
66b26265f8 fix verbatim mode decoding. patch by Jai Menon (realityman gmx net).
Originally committed as revision 13775 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-15 18:01:25 +00:00
Michael Niedermayer
5171fd9dd5 -0x8000 == 0x8000 with int16
fixes segfault / issue491

Originally committed as revision 13767 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-13 19:30:27 +00:00
Stefano Sabatini
a74dc5b914 Cosmetics: s/Id/id/ in libavcodec/roqvideodec.c when Id refers to id Software
Originally committed as revision 13762 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-13 09:30:42 +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
Baptiste Coudurier
39883fffa7 remove useless wrapper func
Originally committed as revision 13738 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-10 19:21:40 +00:00
Reimar Döffinger
eeb2815003 Remove the START_TIMER/STOP_TIMER from vp3.c, they clutter the output and
might cost CPU.

Originally committed as revision 13730 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-09 16:30:59 +00:00
Reimar Döffinger
36e1625396 Almost-cosmetics: split out coeff_count from all_fragments struct into
a separate array.
For the OGG version at http://www.bigbuckbunny.org/index.php/download/
this results in about 50% speedup of unpack_vlcs, resulting in ca. 20% faster
overall speed.

Originally committed as revision 13729 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-09 16:26:28 +00:00
Baptiste Coudurier
8983aa337c enable global_header flag for audio and video encoding, was wrongly part of commit r13722
Originally committed as revision 13724 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-09 01:21:57 +00:00
Baptiste Coudurier
02226bc8a5 revert wrong part of r13722 commit
Originally committed as revision 13723 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-09 01:20:14 +00:00
Baptiste Coudurier
febea2f2e1 uniformize trellis quant option
Originally committed as revision 13722 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-09 00:43:07 +00:00
Justin Ruggles
227322b837 move rematrixing band table to ac3dec_data.c
Originally committed as revision 13716 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-08 21:09:02 +00:00
Justin Ruggles
7ed9a2ea50 add ac3dec_data.[c,h]
Originally committed as revision 13715 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-08 21:08:57 +00:00
Justin Ruggles
bddadace8d add fields needed for E-AC-3 decoding to decode context
Originally committed as revision 13714 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-08 21:08:53 +00:00
Bartlomiej Wolowiec
681f5c1271 Separating from nellymoserdec.c parts required by encoder
Originally committed as revision 13713 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-08 20:45:18 +00:00
Benjamin Larsson
b339f0c6be Oma demuxer
Originally committed as revision 13712 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-08 17:12:25 +00:00
Justin Ruggles
4397d95ce0 split up header parsing function
Originally committed as revision 13705 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-07 22:30:51 +00:00
Justin Ruggles
da04be10a2 store exp_strategy for all blocks in decode context
Originally committed as revision 13704 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-07 22:30:47 +00:00
Justin Ruggles
54624396fc store cpl_in_use for all blocks in decode context
Originally committed as revision 13703 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-07 22:30:43 +00:00
Justin Ruggles
be594ae4b4 cosmetics: add and align references to spec variable names
Originally committed as revision 13702 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-07 22:30:39 +00:00
Justin Ruggles
d7a0ae079c cosmetics: vertical align
Originally committed as revision 13701 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-07 22:30:35 +00:00
Justin Ruggles
83ce7ff6ca use macro constants for array sizes in decode context
Originally committed as revision 13700 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-07 22:30:31 +00:00
Justin Ruggles
2288596074 cosmetics: vertical align
Originally committed as revision 13699 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-07 22:30:26 +00:00
Justin Ruggles
2c4c2afaca cosmetics: reorder decode context fields into logical groups
Originally committed as revision 13698 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-07 22:30:22 +00:00
Justin Ruggles
58ce349f0a move the decode context and some macro constants to a new file, ac3dec.h
Originally committed as revision 13697 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-07 22:30:16 +00:00
Justin Ruggles
30f71adc46 move mix level tables from parser to decoder. have parser read bitstream value instead of using an index to a table in the decoder.
Originally committed as revision 13696 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-07 22:30:09 +00:00
Justin Ruggles
caf0fbc889 add more gain levels and adjust mix level tables accordingly.
Originally committed as revision 13695 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-07 22:30:03 +00:00
Justin Ruggles
687671f03b pass bap table to ff_ac3_bit_alloc_calc_bap()
Originally committed as revision 13694 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-07 22:29:54 +00:00
Justin Ruggles
30cc3ac20e set default mix levels regardless of bitstream id
Originally committed as revision 13693 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-07 22:29:45 +00:00
Justin Ruggles
4921bbbae5 cosmetics: indent
Originally committed as revision 13692 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-07 22:29:38 +00:00
Justin Ruggles
aa5d6be8df skip unsupported frame types and substream id's
Originally committed as revision 13691 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-07 22:29:27 +00:00
Justin Ruggles
be5f17b96b read frame type from header info into decode context
Originally committed as revision 13690 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-07 22:29:19 +00:00
Justin Ruggles
3596aa6fe6 get substreamid from ac3 parser
Originally committed as revision 13689 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-07 22:29:11 +00:00
Justin Ruggles
6730e9f300 get the number of blocks from the ac3 parser and use in the ac3 decoder.
Originally committed as revision 13688 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-07 22:29:03 +00:00
Roberto Togni
467ec3c120 Remove my old email address
Originally committed as revision 13687 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-07 13:21:24 +00:00
Roberto Togni
0f6feb5f26 Remove my old email address.
This also fixes the "rtogni is not a valid tag" doxygen warning
Based on a patch by Stefano Sabatini, stefano sabatini lala poste it

Originally committed as revision 13686 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-07 13:14:49 +00:00
Diego Biurrun
969f949300 Remove Fabrice's copyright from the Makefiles. They have been entirely
rewritten since they were originally created.

Originally committed as revision 13675 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-06 17:50:32 +00:00
Diego Biurrun
890f6fd3ec minor spelling/grammar fixes
Originally committed as revision 13669 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-06 07:00:42 +00:00
Michael Niedermayer
aee7cf8752 Fix reading an element after the array.
Fixes CID27 RUN2

Originally committed as revision 13668 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-06 00:32:31 +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
Loren Merritt
359bbdabf3 rename me=tesa
Originally committed as revision 13661 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-05 02:20:15 +00:00
Baptiste Coudurier
89223ef698 add esa/dia compat me options and new tesa for libx264
Originally committed as revision 13660 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-05 01:57:35 +00:00
Baptiste Coudurier
d9e5c9b718 x264 interlaced encoding option
Originally committed as revision 13656 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-04 00:56:36 +00:00
Baptiste Coudurier
682a48a107 cleanup, remove useless parentheses
Originally committed as revision 13655 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-04 00:44:43 +00:00
Justin Ruggles
7af26d14ac return error on frame sync error
Originally committed as revision 13654 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-04 00:31:20 +00:00
Justin Ruggles
31bc6b4549 prevent crash when dba params are invalid
Originally committed as revision 13653 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-03 23:34:26 +00:00
Benjamin Larsson
17125bd9da Sample tested and the code worked so the comment is removed
Originally committed as revision 13650 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-03 16:46:38 +00:00
Diego Biurrun
e85754cc36 small spelling/wording fixes
Originally committed as revision 13645 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-03 11:56:09 +00:00
Michael Niedermayer
ee3509d94e ff_fetch_timestamp() prototype
Originally committed as revision 13644 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-03 03:12:56 +00:00
Michael Niedermayer
d59591fb02 In mpeg1/2 timestamps are associated with the access unit which
contains the first picture startcode that commences in the PES
packet, instead of the first access unit that commences in the
PES packet. Fix the parser to
handle that properly. This was a very long standing bug ...
The change to the seek regressions is because the mpeg ts muxer
stores too many invalid and randomized timestamps which overflow
the 4 entry buffer we use in the parser.

Originally committed as revision 13643 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-03 02:43:17 +00:00
Aurelien Jacobs
9b85e378bf bump micro version after commit r13615
Originally committed as revision 13632 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-02 23:00:04 +00:00
Baptiste Coudurier
ce8f4fb388 print correct mpeg-2 broken_link value, and print closed_gop
Originally committed as revision 13630 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-02 19:04:14 +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
Michael Niedermayer
44b79c6022 indent
Originally committed as revision 13628 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-02 14:54:19 +00:00
Michael Niedermayer
e4e3230ea5 Only store timestamps when there are timestamps.
Originally committed as revision 13627 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-02 14:53:54 +00:00
Michael Niedermayer
05d1d160bc Our MPEG-TS demuxer does not send complete PES packets but sends them
piecewise, thus the end values cannot be used for associating timestamps.

Originally committed as revision 13626 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-02 14:40:27 +00:00
Michael Niedermayer
5c027f8866 Move new field to the end to avoid ABI breakage, I thought this struct
is not used from the outside but after rethinking it of course has to be
used if someone wants to use a parser without a lavf demuxer.

Originally committed as revision 13625 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-02 14:23:25 +00:00
Michael Niedermayer
ebdd73778c cosmetic
Originally committed as revision 13624 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-02 13:14:01 +00:00
Michael Niedermayer
ec0c5d482e Allow matching timestamps to be removed by fetch_timestamp().
Originally committed as revision 13623 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-02 13:12:54 +00:00
Michael Niedermayer
21e305891c Add off argument so that fetch_timestamp can search for timestamps
not associated with the first byte of access units.

Originally committed as revision 13622 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-02 13:09:56 +00:00
Michael Niedermayer
cd6144948a Factorize fetch_timestamp() into its own function
Originally committed as revision 13621 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-02 13:05:38 +00:00
Michael Niedermayer
4791778579 unused variable
Originally committed as revision 13620 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-02 13:01:23 +00:00
Baptiste Coudurier
b73e868b4e cosmetics, remove table_ prefix
Originally committed as revision 13617 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-02 03:12:43 +00:00
Michael Niedermayer
591569b596 indent
Originally committed as revision 13616 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-02 03:10:40 +00:00
Michael Niedermayer
26f237254d Rename last_frame_offset to next_frame_offset.
(it was and is the next not the last)

Originally committed as revision 13615 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-02 03:10:00 +00:00
Baptiste Coudurier
556eec43ef optimize, merge offset bits in vlc code
Originally committed as revision 13614 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-02 03:07:32 +00:00
Michael Niedermayer
cb63a4b37c Simplify parser core.
Originally committed as revision 13613 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-02 02:55:30 +00:00
Justin Ruggles
406113721f move some AC3HeaderInfo struct fields to the Coded elements group.
Originally committed as revision 13612 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-02 02:54:46 +00:00
Baptiste Coudurier
892d226857 return if bitrate is not specified or too low
Originally committed as revision 13611 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-01 21:29:45 +00:00
Baptiste Coudurier
778346e3da add context_to_name func for logging
Originally committed as revision 13610 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-01 20:51:44 +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
Baptiste Coudurier
1be97a218e memcpy considering output width, not src linesize, fix segv with av_picture_pad
Originally committed as revision 13594 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-01 02:28:33 +00:00
Baptiste Coudurier
64e3e66175 give context to av_log
Originally committed as revision 13593 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-01 02:21:53 +00:00
Michael Niedermayer
2453f40602 Prevent scalefactors from overflowing.
fixes issue351

Originally committed as revision 13591 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-01 01:07:59 +00:00
Justin Ruggles
fb2b88a816 cosmetics: add a comment, remove a comment
Originally committed as revision 13590 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-31 22:12:49 +00:00
Justin Ruggles
9b57545934 simplify
Originally committed as revision 13589 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-31 22:12:01 +00:00
Justin Ruggles
6e74513a48 set lfe params at frame init instead of in every block
Originally committed as revision 13588 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-31 21:57:45 +00:00
Justin Ruggles
b85a15fe73 only calculate number of exponent groups when exponents are not reused.
Originally committed as revision 13587 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-31 21:53:31 +00:00
Justin Ruggles
aa148649a4 cosmetics: remove unneeded braces
Originally committed as revision 13586 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-31 21:37:28 +00:00
Justin Ruggles
7e13b31c19 10l: cosmetics
Originally committed as revision 13585 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-31 19:59:10 +00:00
Justin Ruggles
e25973a1fd new dba values requires running last 2 bit allocation stages
Originally committed as revision 13584 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-31 19:56:54 +00:00
Justin Ruggles
ff5d419e2f get_transform_coeffs() never returns an error, so make the function and its children return void.
Originally committed as revision 13582 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-31 16:04:41 +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
Justin Ruggles
fbe52e4188 use enum value for CRC error
Originally committed as revision 13580 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-31 15:31:57 +00:00
Justin Ruggles
c78c6d6c58 move header error logging to after CRC check
Originally committed as revision 13579 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-31 15:30:55 +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
9d283aee83 Remove ra144.o dependency added in revision r13500, now reverted
Originally committed as revision 13575 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-31 14:32:11 +00:00
Michael Niedermayer
b13ddb3bca unused
Originally committed as revision 13572 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-30 23:27:21 +00:00
Michael Niedermayer
b9c8388710 As *_static are not deallocated anymore except on program termination
we do not need to keep track of them anymore.
Fixes CID117 RUN2 and various race conditions.

Originally committed as revision 13571 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-30 23:26:09 +00:00
Michael Niedermayer
83422c1940 unused
Originally committed as revision 13570 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-30 21:17:10 +00:00
Michael Niedermayer
65de23d1b6 Remove non C code.
Originally committed as revision 13569 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-30 21:15:34 +00:00
Michael Niedermayer
09dafaeba1 Move *_static to bitstream.c which is the only file left which needs
them.

Originally committed as revision 13568 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-30 21:12:33 +00:00
Michael Niedermayer
ceaaf78bb7 Change init_vlc_rl() so it does not use *alloc_static() anymore.
Originally committed as revision 13567 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-30 21:08:41 +00:00
Michael Niedermayer
2d80ce2bdf Change init_2d_vlc_rl() to not use *alloc_static().
Originally committed as revision 13566 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-30 21:06:40 +00:00
Michael Niedermayer
9ef3193df1 Remove constant argument.
Originally committed as revision 13564 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-30 20:06:08 +00:00
Michael Niedermayer
f76605e880 Switch to INIT_VLC_USE_NEW_STATIC.
Note, if code you maintain still uses INIT_VLC_USE_STATIC please change
it as well! Iam not volunteering to clean all codecs up ...

Originally committed as revision 13563 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-30 20:02:59 +00:00
Michael Niedermayer
d05b24ff89 Little helper macro to make the use of INIT_VLC_USE_NEW_STATIC easier.
Originally committed as revision 13562 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-30 20:00:19 +00:00
Michael Niedermayer
ccc54864fe Make init_vlc* support proper static tables instead of this broken beyond
imagination alloc_static() trash.

Originally committed as revision 13561 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-30 19:48:02 +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
Carl Eugen Hoyos
7e14f14584 Warn about unimplemented H264 feature.
Originally committed as revision 13542 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-29 23:16:12 +00:00
Pascal Massimino
ae899d12ae in TRUNCATED mode, use residual fragments in ParseContext
for decoding the very last frame.

Originally committed as revision 13538 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-29 20:09:45 +00:00
Stefano Sabatini
09d9087d26 Add ASUS V1/V2 decoder codec long names.
patch by Stefano Sabatini, stefano.sabatini-lala poste it

Originally committed as revision 13529 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-29 11:04:42 +00:00
Baptiste Coudurier
390b25aeda set avctx time_base in dv decoder
Originally committed as revision 13515 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-28 23:56:25 +00:00
Michael Niedermayer
161dab177f ILP64 fix
Originally committed as revision 13513 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-28 22:36:08 +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
Michael Niedermayer
909a9ad08d Prevent 128*1<<trellis from becoming 0 and creating 0 sized arrays.
fixes CID84 RUN2
      CID85 RUN2
      CID86 RUN2
      CID87 RUN2
      CID88 RUN2
      CID89 RUN2
      CID90 RUN2
      CID91 RUN2
      CID92 RUN2
      CID93 RUN2
      CID94 RUN2
      CID95 RUN2
      CID96 RUN2
      CID97 RUN2
      CID98 RUN2
      CID99 RUN2
      CID100 RUN2
      CID101 RUN2
      CID102 RUN2
      CID103 RUN2
      CID104 RUN2
      CID105 RUN2
      CID106 RUN2

Originally committed as revision 13495 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-28 11:59:41 +00:00
Michael Niedermayer
e2d09b65e8 set coded_frame
Originally committed as revision 13492 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-28 11:33:28 +00:00
Diego Biurrun
9c852bcf58 cosmetics: spelling typo fixes
Originally committed as revision 13489 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-28 09:20:59 +00:00
Michael Niedermayer
c192426fd8 Fix return type of ff_init_me().
Originally committed as revision 13487 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-28 01:54:09 +00:00
Michael Niedermayer
dd72228e53 minor simplification
Originally committed as revision 13485 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-28 01:34:46 +00:00
Michael Niedermayer
8403c543de redundant
Originally committed as revision 13484 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-28 01:30:59 +00:00
Michael Niedermayer
540c5220ff Check dia size a little more. Fixes CID80.
Originally committed as revision 13481 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-27 23:41:10 +00:00
Michael Niedermayer
6138ed777d Arrays where one element too small, fixes CID114.
this was possibly exploitable

Originally committed as revision 13475 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-27 22:10:17 +00:00
Michael Niedermayer
c1815c3700 memleak / fixes CID118
Originally committed as revision 13473 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-27 21:12:28 +00:00
Michael Niedermayer
8e6f8869ab Do not read from prior the array, fix CID 127.
Originally committed as revision 13471 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-27 19:44:56 +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
842eabc5f9 cosmetics: XviD is now called Xvid.
Originally committed as revision 13465 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-27 12:32:59 +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
Justin Ruggles
bd98e9e230 zero the upper frequencies of the correct coefficients
Originally committed as revision 13452 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-27 00:43:39 +00:00
Diego Biurrun
1384e27054 consistency cosmetics: indices --> indexes in variable names
Originally committed as revision 13446 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-26 23:36:05 +00:00
Stefano Sabatini
5231f101d1 Clarify avcodec_encode_audio() vs. PCM audio.
patch by Stefano Sabatini, stefano.sabatini-lala poste it

Originally committed as revision 13445 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-26 23:19:26 +00:00
Diego Biurrun
f4433de9ef consistency cosmetics: indices --> indexes
Originally committed as revision 13444 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-26 23:14:25 +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
Diego Biurrun
756a01f522 cosmetics: Use C-style comments in #endif directives.
Originally committed as revision 13442 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-26 23:09:46 +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
Michael Niedermayer
bc545029bf Warn about packed B-frames. (especially useful if the file in question is
not an avi ...)

Originally committed as revision 13428 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-26 11:32:42 +00:00
Michael Niedermayer
87b6ea8458 indent
Originally committed as revision 13411 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-26 02:00:18 +00:00
Michael Niedermayer
99c1c3887d allow av_parser_close(NULL)
fixes issue300

Originally committed as revision 13410 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-26 01:58:47 +00:00
Michael Niedermayer
4806b9226c print direct_spatial_mv_pred
Originally committed as revision 13409 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-26 01:06:15 +00:00
Justin Ruggles
eccba2bc4b safer solution for setting audio parameters
Originally committed as revision 13402 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-25 20:02:24 +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
Justin Ruggles
cf03a8173a set audio parameters if frame header is ok, even if crc fails
Originally committed as revision 13399 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-25 18:54:17 +00:00
Justin Ruggles
3336110acf cosmetics: indent
Originally committed as revision 13398 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-25 18:06:01 +00:00
Justin Ruggles
ecfe94b294 add error concealment
Originally committed as revision 13397 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-25 18:05:15 +00:00
Vitor Sessak
6477a940f6 Yet more cosmetics
Originally committed as revision 13396 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-25 17:06:14 +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
Justin Ruggles
93a2c8c14f cosmetics: indent
Originally committed as revision 13385 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-25 16:20:06 +00:00
Justin Ruggles
43ad93a4f1 10l: fix error in commit r13382
Originally committed as revision 13384 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-25 16:19:44 +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
Justin Ruggles
82a591d8d1 add checks for missing information in the first block
Originally committed as revision 13382 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-25 15:34:48 +00:00
Justin Ruggles
3af9131398 add check for invalid channel mode when coupling is used
Originally committed as revision 13381 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-25 15:23:03 +00:00
Michael Niedermayer
5b0e7dacd8 Fix MB skipping with droppable frames.
Fixes issue323.

Originally committed as revision 13378 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-25 14:07:35 +00:00
Michael Niedermayer
16e30b7a04 Do not reject odd width/height.
Fixes issue371.

Originally committed as revision 13377 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-25 13:31:07 +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
Michael Niedermayer
0c5421585a Move const *pow2tab out of context.
Originally committed as revision 13366 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-24 22:31:44 +00:00
Michael Niedermayer
158bf33e36 simplify init_pow2table
Originally committed as revision 13365 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-24 22:28:33 +00:00
Michael Niedermayer
40756c172c Merge init_rootpow2table and init_pow2table.
Originally committed as revision 13364 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-24 22:23:16 +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
Vladimir Voroshilov
d347a046e2 Move pitch vector interpolation code to acelp_filters
and convert it to a generic interpolation routine.

Originally committed as revision 13284 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-24 17:18:42 +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
Michael Niedermayer
9d2e6e84ce Anoter try to make +- behave sanely.
Originally committed as revision 13281 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-24 12:58:20 +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
Carl Eugen Hoyos
d1845b4c84 Fix compilation for buggy icc.
Originally committed as revision 13273 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-24 07:19:12 +00:00
Vladimir Voroshilov
5b2729cd0b adaptive and fixed codebook vector operations for ACELP-based codecs
Originally committed as revision 13244 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-23 03:10:27 +00:00
Michael Niedermayer
4a13a2d4f7 Fix + - bug with non flags.
Originally committed as revision 13243 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-23 00:29:21 +00:00
Benjamin Larsson
d311f8f3e3 Update copyright and text
Originally committed as revision 13239 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-22 19:42:02 +00:00
Maxim Poliakovski
9d278d8859 Fix decoding of 01-Untitled(1).oma, patch by Maxim Poliakovski
Originally committed as revision 13238 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-22 19:16:28 +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
Stefano Sabatini
cad2af9760 Improve parse_primary() error message.
Patch by Stefano Sabatini and Michael Niedermayer

Originally committed as revision 13218 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-21 17:50:42 +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