Commit Graph

120 Commits

Author SHA1 Message Date
Michael Niedermayer 410bf2731d av_noinline
Originally committed as revision 7992 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-16 21:19:42 +00:00
François Revol 8fa36ae09d This fixes error handling for BeOS, removing the need for some ifdefs.
AVERROR_ defines are moved to avcodec.h as they are needed in there as well. Feel free to move that to avutil/common.h.
Bumped up avcodec/format version numbers as though it's binary compatible we will want to rebuild apps as error values changed.
Please from now on use return AVERROR(EFOO) instead of the ugly return -EFOO in your code.
This also removes the need for berrno.h.

Originally committed as revision 7965 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-13 18:26:14 +00:00
Michael Niedermayer 9b0dfb27ab slightly improve *_TIMER
Originally committed as revision 7948 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-12 14:25:48 +00:00
Christophe Mutricy d0b456ba1e Avoid "HAVE_CMOV not defined" warning.
patch by Christophe Mutricy, xtophe nxtelevision com

Originally committed as revision 7443 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-13 04:01:35 +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 1845bf1fdf merge #ifdef HAVE_AV_CONFIG_H sections
Originally committed as revision 7254 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-12-07 20:06:11 +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
Måns Rullgård c48e633b9e remove 'restrict' definition, it is always #defined in config.h
Originally committed as revision 7237 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-12-06 20:31:39 +00:00
Diego Biurrun c6c367254f spelling cosmetics: cliped --> clipped
Originally committed as revision 7208 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-12-02 14:19:49 +00:00
Reimar Döffinger 40a08c7e9a Correct GET/PUT_UTF8 comment: the get/put functions might be called up
to 7 times, though only up to 4 times for valid utf-8 values.

Originally committed as revision 7124 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-19 09:43:26 +00:00
Reimar Döffinger a99cfb0d0e Fix typo in comment
Originally committed as revision 7123 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-19 09:33:50 +00:00
Måns Rullgård 576a85f7c9 remove workaround for missing inttypes.h
Originally committed as revision 7068 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-14 20:00:55 +00:00
Måns Rullgård 81dc56e76e clean up inttypes.h and int_fastxx_t types detection
Originally committed as revision 7050 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-14 04:02:58 +00:00
Guillaume Poirier d73427e347 Add doxy comments for macro GET_UTF8
another fix in PUT_UTF8 doxy description

Originally committed as revision 6917 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-06 12:38:00 +00:00
Guillaume Poirier 34d3376902 Fix wrong params name in PUT_UTF8 doxy comments
Originally committed as revision 6913 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-06 10:39:07 +00:00
Guillaume Poirier 0e8c148b59 woops, fix missplaced doxy comment
Originally committed as revision 6912 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-06 10:35:54 +00:00
Zuxy Meng 360932f76d Fix ASF format parser's broken UTF-16 string handling
1. Add a PUT_UTF8 macro to common.h; code borrowed from libavcodec/flacenc.c.
2. Make use of the macro in flacenc.c
Patch by Zuxy Meng % zuxy P meng A gmail P com %
Original thread:
Date: Nov 5, 2006 9:56 AM
Subject: [Ffmpeg-devel] PUT_UTF8 & asf format enhancement

Originally committed as revision 6911 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-06 10:32:48 +00:00
Steve L'Homme 523fc7c17d Define fallback for PRIX64, taken from a patch by Steve L'Homme.
Originally committed as revision 6867 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-01 22:37:56 +00:00
Diego Biurrun 1345f4ed6c Rename SWAP macro to FFSWAP.
Originally committed as revision 6865 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-01 21:28: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 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
Diego Biurrun 02305ff38f Rename SIGN macro to FFSIGN to avoid clashes with system headers.
Originally committed as revision 6665 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-11 22:59:37 +00:00
Diego Biurrun a22b7322cc Move sign macro to libavutil.
Originally committed as revision 6620 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-10 07:49:10 +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
Luca Barbato 79e47000c8 move memory functions from avcodec to avutil
Originally committed as revision 6330 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-25 15:23:40 +00:00
Loren Merritt 8e06f20abf remove a division from STOP_TIMER
Originally committed as revision 6315 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-21 18:00:05 +00:00
Loren Merritt 7e611a0e8c simplify asm mid_pred, as suggested by michaelni.
Originally committed as revision 6314 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-21 17:48:45 +00:00
Loren Merritt 93a319f13b asm implementation of mid_pred.
20% faster huffyuv decoding, 4% faster ffv1.

Originally committed as revision 6254 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-15 00:36:49 +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
Luca Barbato 9814587500 Align the input buffer in ffplay, introduce a public macro for aligned declarations
Update the avcodec_decode_audio and the float_to_int16 descriptions accordingly

Originally committed as revision 6147 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-31 19:14:00 +00:00
Michael Niedermayer 955ab9a4d8 attribute_deprecated
Originally committed as revision 6033 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-20 10:42:11 +00:00
Michael Niedermayer 67eca72dc0 SWAP
Originally committed as revision 6030 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-19 20:55:02 +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
Luca Abeni cea8f6f323 Move av_malloc(), av_realloc(), and av_free() from libavcodec to libavutil
Originally committed as revision 5784 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-19 07:28:58 +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
Måns Rullgård 29e4710a70 indent
Originally committed as revision 5739 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-14 00:28:16 +00:00
Måns Rullgård 0339e2b49f simplify
Originally committed as revision 5738 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-14 00:25:58 +00:00
Måns Rullgård 6d3d62b3d3 simplify
Originally committed as revision 5737 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-14 00:20:04 +00:00
Måns Rullgård 1dd590619a remove impossible #ifdef case
Originally committed as revision 5736 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-14 00:04:40 +00:00
Måns Rullgård b2b48c77ca remove old msvc cruft
Originally committed as revision 5735 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-13 23:47:16 +00:00
Måns Rullgård 43756fa17f remove redundant #include <math.h>
Originally committed as revision 5734 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-13 23:10:28 +00:00
Diego Biurrun 2f30a81d19 CONFIG_WIN32 implies MinGW and Cygwin and possibly more, so use just
CONFIG_MINGW or __MINGW32__ instead.

Originally committed as revision 5718 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-11 21:45:45 +00:00
Diego Biurrun f7facfbf23 cosmetics: Fix indentation after last commit.
Originally committed as revision 5710 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-11 14:17:28 +00:00
Diego Biurrun 4bbefe6b5e Remove old MSVC remnants.
Originally committed as revision 5709 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-11 14:15:56 +00:00
Michael Niedermayer 18769c0a79 cosmetic
Originally committed as revision 5690 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-09 10:56:39 +00:00
Michael Niedermayer a7702890bd remove STATS code (probably hasnt been used for years ..., and its not completely clear what it was good for anyway)
Originally committed as revision 5689 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-09 10:33:49 +00:00
Michael Niedermayer 9d82b0dda1 moving utf8 reading function to libavutil
Originally committed as revision 5664 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-07 22:43:32 +00:00
Luca Barbato 24dd8c616d Make ffmpeg better support pic - from Diego Pettenò <flameeyes@gentoo.org>
Originally committed as revision 5631 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-05 20:32:19 +00:00
Måns Rullgård 959e63c9ba floorf() is not used, and causes warnings on Solaris
Originally committed as revision 5617 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-04 22:39:23 +00:00
Diego Pettenò 72468a035a make sure NDEBUG is not defined already before defining it
Patch by Diego 'Flameeyes' Petteno flameeyes AA gentoo PP org
Original thread:
Date: Jun 30, 2006 1:09 AM
Subject: [Ffmpeg-devel] [PATCH] Avoid warning on NDEBUG redefinition

Originally committed as revision 5557 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-06-30 07:45:31 +00:00
Aurelien Jacobs 77177335f0 document clip functions
Originally committed as revision 5338 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-05-01 00:27:24 +00:00
Panagiotis Issaris 3a1fda0a37 clip_uint8 should return an uint8_t instead of an int (patch by Panagiotis Issaris < takis.issaris _at_ uhasselt.be >)
Originally committed as revision 5336 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-04-30 17:49:11 +00:00
Måns Rullgård d2fbcb3bc8 #define [U]INT32_{MIN,MAX} if missing
Originally committed as revision 5261 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-04-01 22:29:20 +00:00
Sam Hocevar 5f112e1f96 Proper mangling information for symbols in OS X Mach-O shared objects.
patch by Samuel Hocevar, sam ..at.. zoy ..dot.. org

Originally committed as revision 5120 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-03-06 22:06:33 +00:00
Diego Biurrun 320d060ae9 On MinGW it is not possible to build shared and static libraries at once.
Add means to disable building the static libraries and fix a few issues
with the MinGW build.
All the hard work done by Alexander Strasser, minor changes by myself.

Originally committed as revision 4909 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-01-30 00:22:41 +00:00
Gildas Bazin ac44871c77 WinCE cross-compilation support
patch by Gildas Bazin < gbazin **@** altern **.** org >

Originally committed as revision 4881 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-01-22 18:34:17 +00:00
Diego Biurrun bb270c0896 COSMETICS: tabs --> spaces, some prettyprinting
Originally committed as revision 4764 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-12-22 01:10:11 +00:00
Diego Biurrun 115329f160 COSMETICS: Remove all trailing whitespace.
Originally committed as revision 4749 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-12-17 18:14:38 +00:00
François Revol 86f77a493a Add some more PRIfooNN crap so it builds again here. Why can't ppl add defaults when they use such things ?
Originally committed as revision 4741 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-12-13 20:24:31 +00:00
Fredrik Orderud 765c344060 Define EMULATE_INTTYPES for all windows-systems, except Cygwin and MinGW
to simplify usage on Windows.
patch by Fredrik Orderud fredrik - . - orderud - @ - idi - . - ntnu - . - no

Originally committed as revision 4736 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-12-12 00:48:42 +00:00
François Revol e684b35d62 fix for systems not defining PRIu64, not everyone knows C99.
Originally committed as revision 4721 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-12-05 23:14:55 +00:00
Alexander Strasser e852beeee3 Fixed format specifier in STOP_TIMER macro.
Originally committed as revision 4713 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-12-01 18:20:15 +00:00
Diego Biurrun 7df6545556 Move lrintf implementation from libavcodec/dsputil.h to libavutil/common.h
where it makes more sense.

Originally committed as revision 4599 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-09-19 23:26:47 +00:00
Diego Biurrun 978844ccaa Wrong comment after #endif.
Noticed by Fred Rothganger < rothgang -- at -- uiuc -- dot -- edu >

Originally committed as revision 4566 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-09-06 15:06:16 +00:00
Alexander Strasser c11c2bc20b libavutil: Utility code from libavcodec moved to a separate library.
Originally committed as revision 4489 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-08-01 20:07:05 +00:00