Commit Graph

8159 Commits

Author SHA1 Message Date
Kenan Gillet
640760da3e More OKed parts of the QCELP decoder
patch by Kenan Gillet, kenan.gillet gmail com

Originally committed as revision 15961 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-30 17:18:17 +00:00
Diego Biurrun
6dbdf2f26e Handle AltiVec objects in a more elegant fashion, similar to MMX.
Originally committed as revision 15960 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-30 17:00:08 +00:00
Diego Biurrun
52ad2f390e Remove ineffectual hack that attempts to build ppc/check_altivec.o without
AltiVec flags. The flags are set by configure and used to compile all files
anyway. Setting extra AltiVec options here just duplicates them for the files
for which they are set.

Originally committed as revision 15959 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-30 16:57:28 +00:00
Baptiste Coudurier
3bff4d8b7a Implement the fields rc_max_available_vbv_use and
rc_min_vbv_overflow_use in AVCodecContext, and use their values in the
ratecontrol code rather than hardcoded ones.

See the thread: "[RFC] ratecontrol buffer size magic".
Patch by Baptiste Coudurier.

Originally committed as revision 15955 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-29 14:08:48 +00:00
Kostya Shishkov
d041a59897 Add support for parsing and decoding DCA-HD streams.
Originally committed as revision 15951 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-29 10:06:37 +00:00
Kostya Shishkov
d33ee3f2b1 RV40 loop filter
Originally committed as revision 15950 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-29 06:24:47 +00:00
Kostya Shishkov
de8cac167d Invoke future RV30/40 loop filter for already decoded rows instead of
the whole frame at once.

Originally committed as revision 15949 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-29 06:22:31 +00:00
Diego Biurrun
10ac361827 Do not duplicate AAN DCT tables in dct-test.c.
Originally committed as revision 15948 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-28 00:32:24 +00:00
Diego Biurrun
2d70cc38c5 Add missing '-test' in name of imgresample test.
Originally committed as revision 15947 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-28 00:00:11 +00:00
Kostya Shishkov
f653095bdd Fix RV40 chroma MC
Originally committed as revision 15943 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-27 07:26:26 +00:00
Diego Biurrun
2a023c36ea Only build the imgresample test if the old scaler was enabled.
Originally committed as revision 15941 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-26 15:09:05 +00:00
Diego Biurrun
e8ed9b7a73 Automatically check the dependencies for the AAN DCT tables.
This also makes the AAN DCT tables individually selectable.

Originally committed as revision 15940 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-26 15:07:03 +00:00
Diego Biurrun
8b22017f38 Move aanscales tables to their own file; fixes compilation without encoders.
based on a patch by David Geldreich, david.geldreich free fr

Originally committed as revision 15939 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-26 13:38:13 +00:00
Diego Biurrun
5bdf124c42 cosmetics: Rename aanscales to ff_aanscales, it will soon be externally visible.
Originally committed as revision 15938 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-26 13:28:30 +00:00
Diego Biurrun
f107a02d4e Move encoder-specific quantize_c and related tables to the H.264 encoder.
Originally committed as revision 15937 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-26 10:22:55 +00:00
Reimar Döffinger
35d0c2173c Replace pushf/popf by explicit pushfl/popfl (32 bit) or pushfq/popfq (x86_64),
to fix generated code on ICC 11.0.

Originally committed as revision 15935 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-25 07:34:20 +00:00
Måns Rullgård
bd2b6b33bf snow: move scratch buffer from stack to malloced buffer in context
This is required to ensure 16-byte alignment.

Originally committed as revision 15934 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-25 00:20:49 +00:00
Diego Biurrun
ab56b321a9 Disable unused code for now to allow 'make checkheaders' to pass.
Originally committed as revision 15933 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-24 21:31:01 +00:00
Diego Biurrun
4b5f19074e Add missing headers to get 'make checkheaders' closer to passing.
Originally committed as revision 15932 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-24 21:29:07 +00:00
Måns Rullgård
819e4dd9e6 svq1enc: move scratch buffer from stack to context to ensure alignment
Originally committed as revision 15931 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-24 19:08:02 +00:00
Måns Rullgård
6b8810d0ca flashsv: use skip_bits_long() where required
skip_bits(gb, n) with n > 17 doesn't work with all bitstream readers.
Switch to skip_bits_long() instead.

Originally committed as revision 15930 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-24 19:00:55 +00:00
Baptiste Coudurier
f4cca718cf move decoder initialization in separate function, earlier failure detection
Originally committed as revision 15929 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-24 18:49:50 +00:00
Diego Biurrun
f2e92ad105 Make non-void replacement functions actually return a value.
Originally committed as revision 15928 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-24 16:33:11 +00:00
Diego Biurrun
ce9ff9cc52 Move #defines that are mostly used in h264.c out of h264data.h and into h264.h.
Originally committed as revision 15927 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-24 16:08:21 +00:00
Diego Biurrun
ee2a957fbd Use golomb_to_pict_type instead of its duplicate, slice_type_map.
Originally committed as revision 15926 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-24 15:53:16 +00:00
Diego Biurrun
7f8f4b40aa cosmetics: Align table for better readability.
Originally committed as revision 15925 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-24 12:39:02 +00:00
Kostya Shishkov
c5b2fe165a Some BMP files have file size declared in the header equal to headers size
without image data, so try to correct that value before conducting checks on
declared file size.

Originally committed as revision 15924 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-24 11:24:02 +00:00
Kostya Shishkov
e282307b21 Give more meaningful message on BMP header parsing error
Originally committed as revision 15923 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-24 10:58:32 +00:00
Kostya Shishkov
4a14e66605 Add known BMP header sizes.
Now 11B*.bmp from samples repository can be decoded.

Originally committed as revision 15922 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-24 10:53:13 +00:00
Måns Rullgård
4deaa94639 Add shift argument to MULL() macro
This replaces use of FRAC_BITS in the MULL() definition with a third
argument specifying the shift amount.  All uses of this macro are
updated to pass FRAC_BITS as third argument.

Originally committed as revision 15921 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-24 09:28:55 +00:00
Robert Swain
8f5aaa6d2f AAC: Cosmetics after last commit
Originally committed as revision 15920 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-24 00:14:33 +00:00
Alex Converse
7633a0415d AAC: Frequency domain prediction and hence Main profile support
Patch by Alex Converse ( alex converse gmail com )

Originally committed as revision 15919 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-24 00:13:50 +00:00
Kostya Shishkov
e9d0fdef53 Strong filtering function for future RV40 loop filter
Originally committed as revision 15918 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-23 19:36:44 +00:00
Måns Rullgård
d270cb4ae4 ARM: move dct_unquantize_h263_*_armv5te asm to separate file
Originally committed as revision 15917 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-23 19:11:44 +00:00
Diego Biurrun
76de302dd8 cosmetics: indentation, prettyprinting
Originally committed as revision 15908 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-22 16:36:50 +00:00
Diego Biurrun
7f8205da4c cosmetics: consistent function declarations
Originally committed as revision 15907 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-22 16:03:20 +00:00
Diego Biurrun
7d1b158284 cosmetics: Put statements after 'if' on their own line.
Originally committed as revision 15906 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-22 15:57:59 +00:00
Reynaldo H. Verdejo Pinochet
8372e3d263 Trivial, Cosmetics
Originally committed as revision 15905 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-22 00:29:49 +00:00
Reynaldo H. Verdejo Pinochet
1b321c5c96 Trivial, Cosmetics
Originally committed as revision 15904 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-22 00:27:26 +00:00
Kenan Gillet
148c31b9c2 More OKed parts of the QCELP decoder
patch by Kenan Gillet, kenan.gillet gmail com

Originally committed as revision 15901 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-21 18:39:16 +00:00
Vitor Sessak
31fb59ec98 Cosmetic: Fix typo
Spotted by Jethro Walters

Originally committed as revision 15900 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-21 17:38:14 +00:00
Diego Biurrun
3c54686885 Move H.264 tables that are only useful for encoding to h264enc.c.
Originally committed as revision 15899 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-21 10:00:03 +00:00
Diego Biurrun
d1eb20e878 Get rid of last ifdef HAVE_MMX. Instead, all MMX-specific objects are gathered
into a separate variable which is added to OBJS if MMX is enabled.

Originally committed as revision 15898 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-20 23:04:04 +00:00
Måns Rullgård
516566a8ec SH4: fix IDCT
Originally committed as revision 15897 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-20 22:57:57 +00:00
Diego Biurrun
f0e602351e cosmetics: Consistently place HEADERS before OBJS in all Makefiles.
Originally committed as revision 15896 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-20 22:53:18 +00:00
Diego Biurrun
0d2d0f97a5 Move FFT-specific MMX optimizations out of the 'ifdef HAVE_MMX' block.
The MMX dependency is already handled by configure.

Originally committed as revision 15895 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-20 22:50:13 +00:00
Diego Biurrun
d785a67066 cosmetics: indentation
Originally committed as revision 15894 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-20 22:48:51 +00:00
Diego Biurrun
39fdda2bf1 Use standard OBJS-$(HAVE_MMX) trick for MMX objects instead
of surrounding them by an ifdef.

Originally committed as revision 15893 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-20 22:47:18 +00:00
Kenan Gillet
469105aadb Fix typo in table value.
patch by Kenan Gillet, kenan.gillet gmail com

Originally committed as revision 15892 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-20 19:04:35 +00:00
Kostya Shishkov
cd98279126 33l Fix applying residue condition in RV30/40 decoder
Originally committed as revision 15891 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-20 14:07:37 +00:00
Kostya Shishkov
78a0fa8c8f Eliminate direct use of s->current_picture in RV30/40 decoder
Originally committed as revision 15890 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-20 14:05:29 +00:00
Kostya Shishkov
7690351cf3 Use wider margins for edge emulation in RV30/40
Originally committed as revision 15889 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-20 14:03:35 +00:00
Måns Rullgård
c260b59603 SH4: fix memzero_align8()
Originally committed as revision 15888 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-20 09:21:52 +00:00
Måns Rullgård
1a9e9a2fbd SH4: add macros for setting and restoring FPSCR.PR bit
Originally committed as revision 15887 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-20 09:21:50 +00:00
Måns Rullgård
6f14b19e48 SH4: remove some commented out blocks of code
Originally committed as revision 15886 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-20 09:21:46 +00:00
Roman Shaposhnik
a21fd75f56 Making idct factor tables dynamically allocated
Originally committed as revision 15885 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-20 01:40:40 +00:00
Kostya Shishkov
eeee48b26b Add channel layout to several audio decoders I maintain
Originally committed as revision 15884 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-19 14:57:48 +00:00
Roman Shaposhnik
ff16d6e495 Change of indentation
Originally committed as revision 15883 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-19 01:40:09 +00:00
Måns Rullgård
df69be0c13 SH4: fix IDCT
Originally committed as revision 15882 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-19 00:37:30 +00:00
Måns Rullgård
6f15dd8d14 SH4: do not mix code and declarations
Originally committed as revision 15881 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-19 00:37:28 +00:00
Måns Rullgård
c136ece9b3 SH4: fix compilation of memzero_align8()
Originally committed as revision 15880 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-19 00:37:24 +00:00
Måns Rullgård
b42019c130 SH4: remove unused functions
Originally committed as revision 15879 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-19 00:37:21 +00:00
Måns Rullgård
d7e0f8dda6 SH4: replace missed rnd_avg2 -> rnd_avg32
Originally committed as revision 15878 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-19 00:37:17 +00:00
Måns Rullgård
23e05e69a8 SH4: rename functions with conflicting names
Originally committed as revision 15877 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-19 00:37:14 +00:00
Diego Biurrun
45e730c5e5 cosmetics: Add a few more explanatory comments to the object sections.
Originally committed as revision 15876 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-18 22:48:43 +00:00
Diego Biurrun
a261890432 cosmetics: Sort processor-specific object lines into alphabetical order.
Originally committed as revision 15875 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-18 22:37:22 +00:00
Roman Shaposhnik
195b349041 Getting rid of huge static DV tables
Originally committed as revision 15874 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-18 20:48:26 +00:00
Roman Shaposhnik
1ac1217bd6 Getting rid of unneeded extra wrapper functions
Originally committed as revision 15873 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-18 20:33:08 +00:00
Diego Biurrun
40b509b36b Add a Makefile variable for the old scaler that gets enabled when the new
scaler is disabled to get rid of a Makefile ifdef.

Originally committed as revision 15867 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-17 22:51:59 +00:00
Diego Biurrun
767d3e7bf7 Revert previous commit: the libavcodec/i386/fft_*.o objects depend on
libavcodec/i386/fft_mmx.o, which depends on yasm.

Originally committed as revision 15866 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-17 21:56:34 +00:00
Diego Biurrun
ba01d867f5 Only the yasm-dependent objects should be enabled by a yasm conditional.
Originally committed as revision 15865 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-17 19:01:25 +00:00
Diego Biurrun
c6786edb3c cosmetics: Group ppc-specific objects together.
Originally committed as revision 15863 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-17 16:38:50 +00:00
Diego Biurrun
607ffa34ba cosmetics: Group ARM objects sections together.
Originally committed as revision 15856 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-17 15:36:28 +00:00
Diego Biurrun
e9e74e0ad5 cosmetics: Reorder processor-specific entries alphabetically.
Originally committed as revision 15855 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-17 15:09:45 +00:00
Benoit Fouet
074bfa7de7 Change email address to a valid one.
Originally committed as revision 15848 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-17 14:04:56 +00:00
Carl Eugen Hoyos
7e8efe18ba One const is enough.
Originally committed as revision 15847 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-17 12:48:31 +00:00
Benjamin Larsson
b836fb0060 Silence warning in imc decoder
Originally committed as revision 15844 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-16 10:16:07 +00:00
Benjamin Larsson
31d5113a15 Set channel_layout
Originally committed as revision 15843 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-16 09:54:09 +00:00
Kostya Shishkov
55374d57e8 421l: postproc flag may be present in any VC-1 AP frame type
Originally committed as revision 15842 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-16 06:47:44 +00:00
Reynaldo H. Verdejo Pinochet
8e36385a63 Credit Kenan Gillet for his contributions towards merging the SoC QCELP decoder.
Originally committed as revision 15839 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-16 01:00:25 +00:00
Reynaldo H. Verdejo Pinochet
1c3ae1abf2 Cosmetics
Originally committed as revision 15838 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-16 00:57:06 +00:00
Reynaldo H. Verdejo Pinochet
f29289eec7 Change to file description suggested by Michael
Originally committed as revision 15837 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-16 00:05:20 +00:00
Benjamin Larsson
92765276fb Proper channel output reordering for the dca decoder.
Originally committed as revision 15832 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-15 20:31:03 +00:00
Reynaldo H. Verdejo Pinochet
8257d2ad51 Please keep original copyright heading and attribution lines...
Originally committed as revision 15831 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-15 20:19:20 +00:00
Kostya Shishkov
70f42303e7 Weak deblock filter function for future RV40 loop filter
Originally committed as revision 15827 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-15 14:15:24 +00:00
Kenan Gillet
39ded68013 More OKed parts of the QCELP decoder
patch by Kenan Gillet, kenan.gillet gmail com

Originally committed as revision 15822 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-14 17:36:47 +00:00
Baptiste Coudurier
70a61f8cf7 remove useless mmx.h include
Originally committed as revision 15820 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-14 02:49:23 +00:00
Baptiste Coudurier
d45be17855 convert fdct_mmx to plain asm
Originally committed as revision 15819 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-14 02:44:15 +00:00
Justin Ruggles
e202cc2580 revert r15812 (E-AC-3 Spectral Extension) pending further review
Originally committed as revision 15818 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-13 22:38:38 +00:00
Baptiste Coudurier
83534418f0 add sse2 fdct
Originally committed as revision 15817 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-13 19:54:02 +00:00
Carl Eugen Hoyos
74e8b78b20 Fix H.264 decoding.
(Problem analyzed by Uoti Urpala)

Originally committed as revision 15816 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-13 11:33:26 +00:00
Justin Ruggles
3f3ca7ac07 cosmetics: vertical alignment
Originally committed as revision 15815 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-13 03:18:28 +00:00
Justin Ruggles
c763f86728 silence a gcc warning about using an uninitialized variable
Originally committed as revision 15814 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-13 03:18:24 +00:00
Justin Ruggles
66561189a1 cosmetics: indentation
Originally committed as revision 15813 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-13 03:18:18 +00:00
Justin Ruggles
0cc51734b2 add support for spectral extension
Originally committed as revision 15812 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-13 03:18:13 +00:00
Justin Ruggles
0c5d750df9 add a generic function to decode banding structure for coupling, spectral
extension, or enhanced coupling

Originally committed as revision 15811 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-13 03:18:07 +00:00
Justin Ruggles
6c6f927289 add a line break in error message text
Originally committed as revision 15810 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-13 03:18:01 +00:00
Justin Ruggles
6ee6d068f7 simplify decoding of coupling frequency range
Originally committed as revision 15809 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-13 03:17:56 +00:00
Justin Ruggles
24834c1928 cosmetics: rename two variables
Originally committed as revision 15808 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-13 03:17:50 +00:00
Roman Shaposhnik
2ae7e12430 Taking advantage of the new ->execute API
Originally committed as revision 15806 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-12 21:13:28 +00:00