Commit Graph

7168 Commits

Author SHA1 Message Date
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