Commit Graph

89 Commits

Author SHA1 Message Date
Diego Biurrun 755bfeabcc misc spelling fixes
Originally committed as revision 9289 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-06-12 09:29:25 +00:00
Carl Eugen Hoyos 154e30f6c2 rename attribute_unused to av_unused and moves its declaration to common.h
patch by Carl Eugen Hoyos cehoyos chez ag or at
original thread: [FFmpeg-devel] [PATCH] attribute_unused -> av_unused
date: 05/29/2007 01:23 PM

Originally committed as revision 9155 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-05-30 09:32:25 +00:00
Aurelien Jacobs 26b4fe821c split h264.c to move parser in its own file
Originally committed as revision 8985 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-05-10 22:26:44 +00:00
Diego Biurrun 5a6a6cc7dc Fix multiple "‘inline/static’ is not at beginning of declaration" warnings.
Originally committed as revision 8894 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-05-05 12:18:14 +00:00
Diego Biurrun e69364b700 Mark code parts that cannot work on AMD64 due to broken relocations as such.
This allows building shared libraries on AMD64 again.
based on a patch by Diego 'Flameeyes' Pettenò and suggestions by Michael
original thread:
Date: Wed, 18 Apr 2007 11:26:12 +0200
Subject: [Ffmpeg-devel] [PATCH] (try 2) Build shared libraries on AMD64 again

Originally committed as revision 8849 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-04-27 09:32:31 +00:00
Diego Biurrun 784b7f77c8 10l: Rename missed occurrences of CONFIG_EBX_AVAILABLE to HAVE_EBX_AVAILABLE.
Originally committed as revision 8821 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-04-26 00:32:31 +00:00
Diego Biurrun f9be0cb800 Update preprocessor directive comments to take recent changes to this file
into account.

Originally committed as revision 8731 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-04-14 09:59:57 +00:00
Panagiotis Issaris 449659919c Fix compilation when using the --disable-opts parameter. This to help those
interested in using a debugger to debug FFmpeg.

Original thread:
Subject: [PATCH] Fix compilation when using --disable-opts
Date: 2007-03-15 16:58:35 GMT

Originally committed as revision 8549 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-29 14:20:30 +00:00
Aurelien Jacobs f0b23422fa use av_noinline instead of __attribute((noinline))
Originally committed as revision 8091 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-23 10:23:45 +00:00
Måns Rullgård 7073e9fc69 rename CMOV_IS_FAST to HAVE_FAST_CMOV and simplify configure
Originally committed as revision 7729 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-27 14:10:57 +00:00
Michael Niedermayer 3b6dc9ca6d replace a few hardcoded numbers with their correct named ones
Originally committed as revision 7441 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-13 01:00:37 +00:00
Måns Rullgård 849f10351d rename always_inline to av_always_inline and move to common.h
Originally committed as revision 7256 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-12-08 00:35:08 +00:00
Michael Niedermayer c61b9d4473 PIC fix
Originally committed as revision 7173 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-27 10:56:10 +00:00
Reimar Döffinger d55f46e5a8 Reenable AMD64 optimizations for cabac accidentially disabled in r6852
Originally committed as revision 6853 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-01 17:18:49 +00:00
Diego Biurrun 419b878494 Add ARCH_X86_32 as a new define for 32 bit x86 architectures and change
the semantics of ARCH_X86 to mean both 32 and 64 bits.

Originally committed as revision 6852 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-01 17:01:33 +00:00
Diego Biurrun d5cd50ed73 Fix compilation with PIC enabled, BRANCHLESS_GET_CABAC is defined under
!PIC but gets used without a check for !PIC.

Originally committed as revision 6834 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-29 13:14:37 +00:00
Reimar Döffinger 755073fe3c CABAC assembler optimizations ported to AMD64
Originally committed as revision 6776 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-23 16:54:21 +00:00
Michael Niedermayer e08f580644 decode_significance_8x8_x86()
8% faster decode_cabac_residual() (8x8 case only) on P3

Originally committed as revision 6750 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-20 21:34:02 +00:00
Guillaume Poirier 94e4c3a333 Protect code that uses CMOV instructions with HAVE_CMOV,
Make configure set CMOV_IS_FAST on arches on which cmov has a low latency
(typically non-Netburst based processor)

Originally committed as revision 6749 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-20 17:53:19 +00:00
Michael Niedermayer 849a50041c another instruction less in decode_significance_x86() -> 1% faster ion P3
Originally committed as revision 6745 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-20 10:00:28 +00:00
Michael Niedermayer d3e7c5c35b 1 instruction less
Originally committed as revision 6743 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-20 08:46:33 +00:00
Michael Niedermayer a616db285a reordering instructions a little in decode_significance_x86() -> 2 instructions less / 1% faster decode_residual on P3
Originally committed as revision 6741 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-20 00:51:04 +00:00
Michael Niedermayer 13404b2e98 factorize get_cabac asm (0.5% slower but its much cleaner)
Originally committed as revision 6740 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-20 00:35:54 +00:00
Bernhard Rosenkränzer ba9fb5da3a Fix PIC compilation, some defines were under #ifdef !PIC but used
in the PIC case nevertheless.
patch by Bernhard Rosenkranzer, bero arklinux org

Originally committed as revision 6738 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-19 20:24:33 +00:00
Michael Niedermayer d72bc32389 unused variable
Originally committed as revision 6737 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-19 18:22:03 +00:00
Michael Niedermayer ebd624b662 optimize sign decoding code in decode_residual()
x86 is 4% faster on P3
C sign stuff + x86 code for everything else is also faster then before (sorry forgot to test pure C)
... and if i replace the second occurance of the sign decoding in decode_residual by the asm too then everything gets slower iam starting to think that it might be best to write the whole function in asm, playing this avoid random deoptimizations game with gcc is not fun at all

Originally committed as revision 6732 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-19 01:19:03 +00:00
Jindřich Makovička a0f2c6ba38 Kill a warning with MSVC
Patch by Jindrich Makovicka makovick A gmail P com
Original thread:
Date: 08:21 AM
Subject Re: [Ffmpeg-devel] Weird line in cabac.h

Originally committed as revision 6726 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-18 09:37:25 +00:00
Michael Niedermayer eb73bf723d x86 asm version of the decode significance loop (not 8x8) of decode_residual() 5% faster decode_residual() on P3
Originally committed as revision 6724 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-17 22:18:29 +00:00
Michael Niedermayer 4041a495a8 cosmetic (%%eax->%0)
Originally committed as revision 6717 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-17 09:38:37 +00:00
Diego Biurrun 8dda3e796b Fix crash with illegal instruction, cmov is available on 686 and later only.
Originally committed as revision 6715 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-16 21:47:19 +00:00
Diego Biurrun e962604f1c Expand some #endif comments.
Originally committed as revision 6714 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-16 21:22:47 +00:00
Michael Niedermayer 165c5f0909 fix !CMOV_IS_FAST case (iam not really happy with the fix but i didnt come up with a better one quickly)
Originally committed as revision 6707 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-16 11:11:20 +00:00
Michael Niedermayer 1d7c111856 10l
Originally committed as revision 6704 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-15 21:04:10 +00:00
Michael Niedermayer faff3a7ad0 this code will not work with PIC as it needs 7 registers and gcc doesnt support that in PIC
Originally committed as revision 6703 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-15 20:50:05 +00:00
Michael Niedermayer f24a515931 shift CABACContext.range right, this reduces the number of shifts needed in get_cabac() and is slightly faster on P3 (and should be much faster on P4 as the P4 except the more recent variants lacks an integer shifter and so shifts have ~10 times longer latency then simple operations like adds)
Originally committed as revision 6702 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-15 20:40:50 +00:00
Michael Niedermayer 68a205edef dehack *ps_state indexing in the branchless decoder
Originally committed as revision 6683 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-13 14:21:25 +00:00
Michael Niedermayer 12ff5b0f3b add "memory" to the clobber list we change memory so we need it, this also fixes some problems with gcc svn
Originally committed as revision 6679 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-12 21:32:56 +00:00
Michael Niedermayer 851ded8918 prevent "mb level" get_cabac() calls from being inlined (3% faster decode_mb_cabac() on P3)
Originally committed as revision 6674 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-12 14:49:19 +00:00
Guillaume Poirier a0490b324a adds some useful comments after some of the #else, #elseif,
#endif preprocessor directives to make it clearer which code
block depends on which #define xx

Originally committed as revision 6668 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-12 07:51:18 +00:00
Diego Biurrun c26abfa541 Rename ABS macro to FFABS.
Originally committed as revision 6666 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-11 23:17:58 +00:00
Michael Niedermayer 1f4d5e9f69 slightly faster on P3 slightly slower on athlon and probably faster on P4
Originally committed as revision 6663 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-11 17:59:40 +00:00
Michael Niedermayer 2b5269b51c moving lps state transition code a little up in the branched asm code (1% faster on P3)
Originally committed as revision 6658 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-11 16:39:50 +00:00
Michael Niedermayer b99f3cabed write cabac low and range variables as early as possible to prevent stalls from reading them before they where written, the P4 is said to disslike that alot, on P3 its 2% faster (START/STOP_TIMER over decode_residual)
Originally committed as revision 6657 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-11 16:11:41 +00:00
Michael Niedermayer d17faef011 use ecx instead of cl (no speed change on P3 but might avoid partial register stalls on some cpus)
Originally committed as revision 6656 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-11 15:20:08 +00:00
Michael Niedermayer d61c4e731e make state transition tables global as they are constant and the code is slightly faster that way
Originally committed as revision 6655 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-11 14:44:17 +00:00
Michael Niedermayer 5f3eca121e 10l
Originally committed as revision 6654 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-11 13:25:29 +00:00
Michael Niedermayer 0fa352c7e6 make lps_range a global table its constant anyway (saves 1 addition for accessing it)
Originally committed as revision 6653 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-11 13:21:42 +00:00
Michael Niedermayer 3650b43959 enable CMOV_IS_FAST as its faster or equal speed on every cpu (duron, athlon, PM, P3) from which ive seen benchmarks, it might be slower on P4 but noone has posted benchmarks ...
Originally committed as revision 6652 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-11 12:23:40 +00:00
Diego Biurrun 0bc2e7f081 BRANCHLESS_CABAD --> BRANCHLESS_CABAC_DECODER
Originally committed as revision 6623 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-10 08:16:41 +00:00
Michael Niedermayer 9ed92c65f1 moving another bit&1 out, this is as fast as with it in there, but it makes more sense with it outside of the loop
Originally committed as revision 6618 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-10 06:56:51 +00:00