Commit Graph

11866 Commits

Author SHA1 Message Date
Ronald S. Bultje 7c4dcf8165 Optimize split MC, so we don't always do 4x4 blocks of 4x4pixels each, but
we apply them as 16x8/8x16/8x8 subblocks where possible. Since this allows
us to use width=8/16 instead of width=4 MC functions, we can now take more
advantage of SSE2/SSSE3 optimizations, leading to a total speedup for splitMV
filter of about 10%.

Originally committed as revision 23853 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-28 13:50:55 +00:00
Måns Rullgård eca9e4035a Set rv34 (0,0) subpel mc functions to the optimised h264 ones
Originally committed as revision 23845 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-28 10:56:16 +00:00
Måns Rullgård 1f65b67c46 Fix x86 build with h264dsp disabled
Originally committed as revision 23844 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-28 10:02:15 +00:00
Vitor Sessak 186d02150e Use lookup table to avoid division in mp2 decoder
Originally committed as revision 23840 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-28 04:55:36 +00:00
Stefano Sabatini a64fadf62b Fix linking if MMX is disabled.
Originally committed as revision 23839 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-27 23:25:04 +00:00
Måns Rullgård 7447204d2d vaapi: add missing #include "h263.h"
Originally committed as revision 23833 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-27 20:18:28 +00:00
Måns Rullgård 0b37cccaab ra288: convert VLAs to fixed size
Originally committed as revision 23832 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-27 19:30:31 +00:00
Reimar Döffinger 0724a674fc Change type of zz_table to uint8_t to match the scantables it points to.
Originally committed as revision 23831 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-27 19:27:08 +00:00
Eli Friedman b3858964d6 Add const to some pointer parameters.
Patch by Eli Friedman,  eli D friedman A gmail

Originally committed as revision 23826 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-27 15:11:38 +00:00
Diego Pettenò 350120d269 tablegen: implement and use WRITE_ARRAY macros
Two macros (WRITE_ARRAY and WRITE_ARRAY_2D) take the prefix (modifiers)
(not all tables are static, and they might not be constant either), the
type, and the name of the array. It'll be copied with same name and type,
and with the correct size of the currently-defined object.

Originally committed as revision 23821 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-27 12:21:12 +00:00
Diego Pettenò ac014798ff tableprint: use the type name as-is for the functions' names.
This drops one parameter from the functions' macros, and require structures
to be typedeffed, but ensures that it is possible to map 1-to-1 the type to
the function name.

Originally committed as revision 23820 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-27 12:20:39 +00:00
Måns Rullgård 07ece20c69 adpcm: convert VLAs to malloc/free
Originally committed as revision 23819 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-27 09:44:10 +00:00
James Darnley 9577838f2f Fix libvorbis encoding with more than 2 channels
Fixes issue 1325.

Patch by James Darnley, james dot darnley at gmail

Originally committed as revision 23818 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-27 09:25:05 +00:00
David Conrad 30bdefd1de Fix build without yasm
Originally committed as revision 23816 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-27 02:52:43 +00:00
Jason Garrett-Glaser 0178d14fe5 First shot at VP8 optimizations:
- MMXEXT, SSE2 and SSSE3 MC functions
- MMX and SSE4 IDCT dc_add functions

Patch by Jason Garrett-Glaser <darkshikari gmail com> and myself.

Originally committed as revision 23815 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-27 02:01:45 +00:00
David Conrad 0ef1dbedcb VP8 bilinear filter
Originally committed as revision 23813 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-27 01:46:29 +00:00
David Conrad a02bb835ac vorbisdec: Take channels into account when checking against residue overflow
Fixes issue1969

Originally committed as revision 23812 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-27 01:46:23 +00:00
David Conrad 54fdf5d150 vorbisdec: Fix header parsing with no floor1 partitions
Originally committed as revision 23811 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-27 01:46:20 +00:00
David Conrad 780621b832 vorbisdec: Remove write-only variable
Originally committed as revision 23810 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-27 01:46:14 +00:00
Måns Rullgård 92a544267b vp8: warn and request sample if upscaling specified in header
Originally committed as revision 23809 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-27 00:37:43 +00:00
Måns Rullgård 2829ce4b40 Remove PPC perf counter support
This functionality is better accessed through tools like oprofile.

Originally committed as revision 23808 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-26 22:23:35 +00:00
Måns Rullgård a788196e20 Remove --enable-gprof flag
gprof is far too intrusive to be of use as a profile for ffmpeg,
and it fails to build in many configurations.  Oprofile is a
better tool for profiling on Linux.

Originally committed as revision 23807 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-26 22:23:29 +00:00
Måns Rullgård 69d12904da Remove unnecessary ../ from include directives
Originally committed as revision 23806 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-26 20:28:44 +00:00
Måns Rullgård f30d51d74f ARM: fix build with TI compiler
The TI compiler defines __eabi__ to signal that ARM EABI is in use.
We must check for this in addition to the gcc macro __ARM_EABI__.

Originally committed as revision 23804 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-26 18:34:56 +00:00
Måns Rullgård cbabccc367 ffv1: remove VLAs
Originally committed as revision 23802 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-26 15:53:25 +00:00
Måns Rullgård 02591641f8 shorten: remove VLA and check for buffer overflow
Originally committed as revision 23798 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-26 14:34:21 +00:00
Måns Rullgård 17253f598e alsdec: convert VLAs to fixed size
The maximum value of sub_blocks is 8, a safe size to always allocate on
stack.

Originally committed as revision 23797 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-26 14:34:18 +00:00
Måns Rullgård 70f2314df0 pcx: convert VLAs to malloc/free
Originally committed as revision 23796 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-26 14:34:15 +00:00
Måns Rullgård 164d166e85 lsp: convert variable-length arrays to fixed size
Max LP order is defined to be 16, fixed-size buffers are OK.

Originally committed as revision 23795 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-26 14:34:12 +00:00
Måns Rullgård 5228bcd870 svq1dec: replace VLA with malloc/free
Originally committed as revision 23794 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-26 14:34:08 +00:00
Måns Rullgård 9502441408 huffyuv: remove unnecessary size argument from generate_len_table()
Originally committed as revision 23791 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-25 19:28:10 +00:00
Måns Rullgård 0912db0206 Make vp8 select h264dsp and use this to pull in mmx intrapred
Originally committed as revision 23790 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-25 19:10:08 +00:00
Carl Eugen Hoyos 0c59074868 Fix compilation without --enable-gpl.
Originally committed as revision 23789 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-25 19:06:29 +00:00
Jason Garrett-Glaser 15d31aa1e1 Really fix r23782
Originally committed as revision 23788 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-25 19:03:03 +00:00
Måns Rullgård 36672bac52 elbg: remove VLAs
Originally committed as revision 23787 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-25 18:51:25 +00:00
Jason Garrett-Glaser cd29c2b5a1 Fix c99ism in r23782
Originally committed as revision 23786 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-25 18:48:45 +00:00
Carl Eugen Hoyos 96da2a6967 Cosmetics: Fix indentation.
Originally committed as revision 23785 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-25 18:34:03 +00:00
Måns Rullgård d45b771ca0 huffyuv: make VLAs fixed size
Originally committed as revision 23784 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-25 18:32:29 +00:00
Jason Garrett-Glaser 4af8cdfc3f 16x16 and 8x8c x86 SIMD intra pred functions for VP8 and H.264
Originally committed as revision 23783 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-25 18:25:49 +00:00
Jason Garrett-Glaser d6f8476be4 Make VP8 DSP functions take two strides
This isn't useful for the C functions, but will allow re-using H and V functions
for HV functions without adding separate H and V wrappers.

Originally committed as revision 23782 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-25 18:14:07 +00:00
Måns Rullgård becfe99ad5 twinvq: remove VLAs
Originally committed as revision 23775 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-25 13:43:55 +00:00
Måns Rullgård 9bfb72d9e9 rv34: kill VLAs
Originally committed as revision 23774 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-25 08:19:20 +00:00
Jason Garrett-Glaser 03ac56e7f1 fix typo in vp8 decoder error message
Originally committed as revision 23765 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-25 04:23:45 +00:00
Måns Rullgård 5113b3bd5c tta: replace potentially huge VLAs with malloc/free in context
Originally committed as revision 23759 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-24 18:17:12 +00:00
Thad Ward 741b5fd44a Set an opaque alpha value when decoding rgba ffv1.
Patch by Thad Ward coderjoe69¤yahoo°com

Originally committed as revision 23757 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-24 15:22:33 +00:00
Måns Rullgård dd93649b71 Remove VLA in ff_kbd_window_init, limit window size to 1024
Originally committed as revision 23755 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-24 09:42:34 +00:00
Måns Rullgård 796cea09b6 vp6: convert VLA to fixed size
Originally committed as revision 23754 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-24 09:02:44 +00:00
Vitor Sessak 89c7d8058c Fix compilation on x64.
Originally committed as revision 23753 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-24 08:53:32 +00:00
Vitor Sessak 57dbd12b6d Fix asm constraints in apply_window()
Originally committed as revision 23752 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-24 08:46:47 +00:00
Måns Rullgård 986f143a38 alac: change VLAs to fixed size
Originally committed as revision 23751 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-24 08:26:40 +00:00