Commit Graph

226 Commits

Author SHA1 Message Date
Diego Pettenò
be449fca79 Convert asm keyword into __asm__.
Neither the asm() nor the __asm__() keyword is part of the C99
standard, but while GCC accepts the former in C89 syntax, it is not
accepted in C99 unless GNU extensions are turned on (with -fasm). The
latter form is accepted in any syntax as an extension (without
requiring further command-line options).

Sun Studio C99 compiler also does not accept asm() while accepting
__asm__(), albeit reporting warnings that it's not valid C99 syntax.

Originally committed as revision 15627 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-10-16 13:34:09 +00:00
Stefano Sabatini
6123abad2e Remove wrong and unnecessary condition. VHOOK filters are not special
so they are not supposed to use the printf, fprintf, perror and puts
functions but av_log instead.

Originally committed as revision 15221 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-09-06 07:26:05 +00:00
Stefano Sabatini
987903826b Globally rename the header inclusion guard names.
Consistently apply this rule: the guard name is obtained from the
filename by stripping the leading "lib", converting '/' and '.'  to
'_' and uppercasing the resulting name. Guard names in the root
directory have to be prefixed by "FFMPEG_".

Originally committed as revision 15120 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-31 07:39:47 +00:00
Diego Biurrun
2b409ca9d6 Remove hackish support for fastmemcpy from MPlayer.
Originally committed as revision 14764 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-14 20:40:36 +00:00
Aurelien Jacobs
5af4f1f3e3 move M_PI definition along with other math definitions
Originally committed as revision 14727 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-13 16:01:21 +00:00
Måns Rullgård
c8fd5da42f fix ARMv6 FASTDIV for divisor <=2
Originally committed as revision 14481 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-31 02:38:40 +00:00
Diego Biurrun
9f31c7ef37 USE_FASTMEMCPY is now called CONFIG_FASTMEMCPY in MPlayer.
Originally committed as revision 14475 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-30 12:02:22 +00:00
Diego Biurrun
80a61f08d2 Remove AltiVec vector declaration compiler compatibility macros.
The original problem was that FSF and Apple gcc used a different syntax
for vector declarations, i.e. {} vs. (). Nowadays Apple gcc versions support
the standard {} syntax and versions that support {} are available on all
relevant Mac OS X versions. Thus the greater compatibility is no longer
worth cluttering the code with macros.

Originally committed as revision 14366 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-24 10:53:32 +00:00
Måns Rullgård
6651ce17b8 ARM: ARMv6 optimised FASTDIV
Originally committed as revision 14242 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-15 19:06:18 +00:00
Peter Ross
d7bd0b3dea Only define AltiVec vector syntax macro when AltiVec is enabled.
patch by Peter Ross, pross xvid org

Originally committed as revision 14073 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-05 08:10:47 +00:00
Diego Biurrun
b006b26c83 Implement a proper configure test for AltiVec vector declaration syntax.
Originally committed as revision 13555 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-30 10:58:48 +00:00
Alexander Strange
df22c35dfb Split MANGLE macro into LOCAL_MANGLE AND EXTERN_PREFIX parts
so that LOCAL_MANGLE can be used without EXTERN_PREFIX.
patch by Alexander Strange, astrange ithinksw com

Originally committed as revision 12558 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-22 18:15:12 +00:00
Zuxy Meng
85074d3c93 Reapply r12489: Add pure, const and malloc attributes to proper functions
in libavutil.
Fix a compilation failure in r12489.

Originally committed as revision 12498 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-19 06:17:43 +00:00
Benoit Fouet
2119bb8f51 revert r12489.
Originally committed as revision 12490 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-18 16:29:47 +00:00
Zuxy Meng
6544f48f03 Pure, const and malloc attributes to libavutil.
Patch by Zuxy Meng: zuxy meng gmail com
Original thread:
[FFmpeg-devel] [PATCH] Pure, const and malloc attributes to libavutil
Date: 03/18/2008 6:09 AM

Originally committed as revision 12489 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-18 15:27:15 +00:00
Måns Rullgård
b4d96ba2a8 check for prefix on extern symbols in configure
Originally committed as revision 12484 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-18 02:01:20 +00:00
Diego Biurrun
08e89160e4 cosmetics: indentation
Originally committed as revision 12471 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-17 09:22:39 +00:00
Diego Biurrun
edfd6975cf Simplify MANGLE macro preprocessor condition checks.
Originally committed as revision 12470 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-17 09:22:11 +00:00
İsmail Dönmez
8e9ccb6c7e Fix MANGLE macro on Mac OS X.
Allows compiling a 64 bit FFmpeg on Mac OS X without using --disable-mmx.
patch by İsmail Dönmez  ismail namtrac org

Originally committed as revision 12468 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-17 07:49:03 +00:00
Diego Biurrun
a087028ad8 Add #include "config.h" to headers that need it.
Originally committed as revision 12431 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-13 18:04:21 +00:00
Reimar Döffinger
7e14b8082d Use cltd instead of cdq asm mnemonic, ICC and gcc support both, but
SunStudio 12 only supports the former.

Originally committed as revision 12275 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-28 17:01:35 +00:00
Michael Niedermayer
c448a09624 Faster ff_sqrt()
Originally committed as revision 11586 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-21 13:33:18 +00:00
Diego Biurrun
59ec6991ac Disallow puts(), av_log() should be used instead.
Originally committed as revision 11548 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-17 08:32:31 +00:00
Michael Kostylev
a33cab3a9a Check for the presence of llrint(), lrint(), round() and roundf()
and provide simple replacements if they are unavailable.
patch by Michael Kostylev, mik niipt ru

Originally committed as revision 11326 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-27 01:53:02 +00:00
Diego Biurrun
52d086084e Remove outdated comment.
Originally committed as revision 11325 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-27 01:42:46 +00:00
Michael Kostylev
4f365f37b5 djgpp port, first part
patch by Michael Kostylev, mik niipt ru

Originally committed as revision 11313 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-24 12:49:27 +00:00
Luca Abeni
c5a2fe8f1f Generate a linking error if perror() is used in libav*
Originally committed as revision 11061 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-11-19 10:40:11 +00:00
Luca Abeni
7f0cd6a529 Remove perror() usage from libavutil
Originally committed as revision 11057 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-11-19 07:39:55 +00:00
Jeremy Mordkoff
4f9c008cd5 Fix typo.
Patch by Jeremy Mordkoff: jlm zazzletech com

Originally committed as revision 10812 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-19 15:39:02 +00:00
Diego Biurrun
5b21bdabe4 Add FFMPEG_ prefix to all multiple inclusion guards.
Originally committed as revision 10765 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-17 09:37:46 +00:00
Diego Biurrun
c97f54020d Change SYS_DARWIN preprocessor checks to __APPLE__, they are specific
to Mac OS X rather than to Darwin.

Originally committed as revision 10247 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-27 09:17:03 +00:00
Diego Biurrun
8008a04325 Move Apple gcc AltiVec vector declaration syntax to libavutil.
Originally committed as revision 10207 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-24 15:04:00 +00:00
Diego Biurrun
9d16f87ffd Rename CONFIG_DARWIN to SYS_DARWIN, it is not configurable (in FFmpeg).
Originally committed as revision 10190 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-22 22:46:39 +00:00
Ramiro Polla
5e4c7ca224 Add attribute that forces alignment of stack to functions that need it.
Necessary for systems that don't align by default to 16 bytes, required by some
SSE instructions.
Requires GCC >= 4.2.
Based on patch by Gaël Chardon.

Originally committed as revision 10106 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-13 15:28:29 +00:00
Måns Rullgård
318049b8ed move #include of system headers to top of file
Originally committed as revision 9646 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-14 14:34:40 +00:00
Alex Beregszaszi
7eed4aef83 10l to Mans, assert is included later with proper DEBUG/NDEBUG ifdefs
Originally committed as revision 9636 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-14 11:33:16 +00:00
Ramiro Polla
7c9dcd4bba Remove unnecessary MINGW ifdef.
These were added for MSVC++, which is no longer supported.

Originally committed as revision 9595 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-11 13:50:59 +00:00
Ramiro Polla
36564c514c Remove MinGW lrint hack.
It has been in mingw-runtime at least since version 2.4

Originally committed as revision 9594 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-11 13:44:50 +00:00
Ramiro Polla
7c37e504f0 Remove OS/2 support
Originally committed as revision 9586 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-10 21:52:04 +00:00
Måns Rullgård
84662c01c9 undef forbidden names before we #define them in case they are macros in libc
Originally committed as revision 9545 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-08 15:56:31 +00:00
Vitor Sessak
3299fb4523 Make error message more helpful and forbid random()
Originally committed as revision 9472 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-05 05:02:47 +00:00
Diego Biurrun
224906414b Remove leading underscores from specifiers, they are reserved.
Originally committed as revision 9461 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-02 17:00:04 +00:00
Reimar Döffinger
272605c73e more av_strl* adjustments
Originally committed as revision 9412 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-06-24 12:23:34 +00:00
Måns Rullgård
99545457bf include all prerequisites in header files
Originally committed as revision 9344 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-06-16 22:59:13 +00:00
Reimar Döffinger
6f74b71ef0 Part of MPlayer patch:
"Replace implicit use of fast_memcpy via macro by explicit use to allow
for future optimization."
This is not yet done for ffmpeg when compiled within MPlayer.

Originally committed as revision 9225 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-06-05 14:33:27 +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
Michael Niedermayer
45221f7f61 reduce number of shifts
Originally committed as revision 8891 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-05-04 22:35:56 +00:00
Michael Niedermayer
fd735e4b77 simplify
Originally committed as revision 8890 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-05-04 21:22:43 +00:00
Alex Beregszaszi
61bc79ec9c remove possibly broken wince cruft
Originally committed as revision 8763 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-04-20 23:45:53 +00:00
Ramiro Polla
8c2e2040aa Add first and second output to earlyclobbers in COPY3_IF_LT macro.
patch by Ramiro Ribeiro Polla, ramiro lisha.ufsc br
Original thread:
date: Mar 27, 2007 11:21 PM
subject: [Ffmpeg-devel] [PATCH] fix build for --cpu=i686

Originally committed as revision 8604 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-04-03 11:21:16 +00:00
Michael Niedermayer
c367d06702 prevent exit missuse
Originally committed as revision 8536 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-27 21:47:03 +00:00
Michel Bardiaux
318c5e0524 Give context to dprintf
Originally committed as revision 8338 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-12 12:36:41 +00:00
Michel Bardiaux
bdb4b698d8 Corrections so that builds with DEBUG work
Originally committed as revision 8295 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-08 14:49:43 +00:00
Ramiro Polla
5dff169489 remove fallback definitions of PRIxNN macros,
patch by Ramiro Polla ramiro =a= lisha =d= ufsc =d= br

Originally committed as revision 8118 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-24 19:46:54 +00:00
François Revol
ea65a753eb Remove unused ENODATA define
Originally committed as revision 7943 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-11 22:07:06 +00:00
Luca Abeni
40628be0ed __attribute__((unused)) works with gcc 2.95 too
Originally committed as revision 7421 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-07 11:11:49 +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
Måns Rullgård
a77caa4dc9 fix mingw shared build, and get rid of FF_IMPORT_ATTR
Originally committed as revision 7253 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-12-07 19:27:00 +00:00
Måns Rullgård
8da9266cea use the standard INT64_C() macro for 64-bit constants
Originally committed as revision 7240 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-12-06 23:46:11 +00:00
Måns Rullgård
cd10789691 move more macros to internal.h
Originally committed as revision 7239 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-12-06 23:23:20 +00:00
Måns Rullgård
5403f8576b move some __attribute__ macros to internal.h
Originally committed as revision 7238 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-12-06 21:27:08 +00:00
Reimar Döffinger
cf1e119bb2 Move BE_*/LE_*/ST*/LD* macros to a common place. Some further
optimization/cleanup would be desirable (e.g. LE_* and LD*
should be the same on x86).

Originally committed as revision 7218 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-12-03 16:35:30 +00:00
Måns Rullgård
7e5f82dc06 move comment
Originally committed as revision 7072 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-14 21:57:27 +00:00
Måns Rullgård
f940f7c9d2 merge CONFIG_WINCE sections
Originally committed as revision 7047 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-14 03:37:44 +00:00
Måns Rullgård
635eb0cc3d indentation
Originally committed as revision 7046 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-14 03:35:50 +00:00
Måns Rullgård
36cd306907 rename inverse -> ff_inverse
Originally committed as revision 6990 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-12 18:49:36 +00:00
Diego Biurrun
3cd52279c9 Use common define for x86_32 and x86_64.
Originally committed as revision 6859 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-01 18:34:40 +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
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
Diego Biurrun
b78e7197a8 Change license headers to say 'FFmpeg' instead of 'this program/this library'
and fix GPL/LGPL version mismatches.

Originally committed as revision 6577 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-07 15:30:46 +00:00
Siarhei Siamashka
eeebe6ad1f add FASTDIV macro for ARM. Reported speed-up on MPEG-4 decoding: 1.8%
Patch by Siarhei Siamashka %siarhei P siamashka A gmail P com%
Original thread:
Date: Sep 28, 2006 2:26 AM
Subject: [Ffmpeg-devel] [PATCH] ARM implementation of FASTDIV

Originally committed as revision 6366 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-28 08:04:16 +00:00
Diego Biurrun
04d7f60143 Add official LGPL license headers to the files that were missing them.
Originally committed as revision 6219 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-10 14:02:42 +00:00
Panagiotis Issaris
af0ad8f0c1 Remove unused defines, patch by takis P issaris A uhasselt P be
Original thread:
Re: [Ffmpeg-devel] [PATCH] Remove unused internal macros
Sep 7 2006, 14:05

Originally committed as revision 6188 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-07 13:42:36 +00:00
Diego Biurrun
f4bd289a04 Explicitly include fastmemcpy.h from libvo/.
Originally committed as revision 6021 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-18 13:38:24 +00:00
Reimar Döffinger
aab7715910 do not include bswap.h in common.h for external programs, since the former
is not installed currently.

Originally committed as revision 5809 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-21 19:36:59 +00:00
Reimar Döffinger
05020c89eb Split common.h in two parts, purely internal stuff (internal.h) and things
available to external programs as well.
Also make more things available to external programs like GET_UTF8, MKTAG etc.

Originally committed as revision 5765 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-16 16:32:48 +00:00