Commit Graph

46 Commits

Author SHA1 Message Date
Måns Rullgård
49bd8e4b84 Fix grammar errors in documentation
Originally committed as revision 23904 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-30 15:38:06 +00:00
Måns Rullgård
276fc8a4e2 Add missing avutil.h include to libavutil/mem.h
Originally committed as revision 23803 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-26 18:14:31 +00:00
Carl Eugen Hoyos
ed00fe49d7 icc 12 finally fixed attribute(used) so gcc's DECLARE_ASM_CONST can be used.
Originally committed as revision 23624 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-16 10:35:56 +00:00
Diego Biurrun
ba87f0801d Remove explicit filename from Doxygen @file commands.
Passing an explicit filename to this command is only necessary if the
documentation in the @file block refers to a file different from the
one the block resides in.

Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-20 14:45:34 +00:00
Måns Rullgård
2ed6f39944 Replace many includes of libavutil/common.h with what is actually needed
This reduces the number of false dependencies on header files and
speeds up compilation.

Originally committed as revision 22407 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-09 17:39:19 +00:00
Måns Rullgård
84dc2d8afa Remove DECLARE_ALIGNED_{8,16} macros
These macros are redundant.  All uses are replaced with the generic
DECLARE_ALIGNED macro instead.

Originally committed as revision 22233 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-06 14:24:59 +00:00
Måns Rullgård
4b9905d1dc Move DECLARE_ALIGNED_{8,16} macros to mem.h
These macros naturally belong next to the generic DECLARE_ALIGNED
macro.

Originally committed as revision 22230 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-06 12:40:43 +00:00
Måns Rullgård
34e52abb62 DECLARE_ALIGNED macro for TMS470 compiler
This compiler supports gcc-style alignment attributes for struct,
but not for global variables.  For the latter, alignment can be
specified with a pragma, which does not work for struct members or
local variables.  By using both pragma and attribute, one or the
other will always take effect.

Unfortunately, no means exists for aligning stack variables.

Originally committed as revision 21379 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-01-22 03:25:25 +00:00
Måns Rullgård
8a24e98d50 Make DECLARE_ALIGNED macros work with external array specifiers
The macro implementation might need the name of the variable being
declared for compiler-specific syntax.  Moving array specifiers outside
the macro invocation allows this to work.

Originally committed as revision 21363 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-01-21 12:59:22 +00:00
Stefano Sabatini
702d0a9e85 Remove residual use of the doxygen markup which is deprecated,
consistent with r19122.

Originally committed as revision 20989 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-01-01 12:28:18 +00:00
Ramiro Polla
16c2e21488 Move DECLARE_ALIGNED and DECLARE_ASM_CONST back from lavu/internal.h to
lavu/mem.h.

Originally committed as revision 19384 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-09 02:20:29 +00:00
Carl Eugen Hoyos
06be9d9d8e Icc 11.1 does not support attributes force_align_arg_pointer, alloc_size and cold.
Originally committed as revision 19282 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-27 08:34:04 +00:00
Stefano Sabatini
bf7e799c9e Remove '\p', '\c' and '\e' doxygen markup from doxy, as it should
improve plain text doxy readability.

See the thread: "[RFC] Should we use doxygen markup?".

Originally committed as revision 19122 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-06 09:35:15 +00:00
Diego Biurrun
bad5537e2c Use full internal pathname in doxygen @file directives.
Otherwise doxygen complains about ambiguous filenames when files exist
under the same name in different subdirectories.

Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-01 02:00:19 +00:00
Diego Biurrun
89c9ff504b spelling/grammar/consistency review part I
Originally committed as revision 16840 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-28 00:16:05 +00:00
Diego Biurrun
4ce9492339 Move DECLARE_ALIGNED and DECLARE_ASM_CONST to internal.h.
Their definition depends on preprocessor directives from config.h,
thus they cannot be declared in a public header since public headers
cannot #include config.h.

Originally committed as revision 16781 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-25 19:18:56 +00:00
Diego Biurrun
dfcb6b56f9 Directly #include a bunch of indirectly #included headers.
Originally committed as revision 16748 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-24 14:55:30 +00:00
Aurelien Jacobs
b250f9c66d Change semantic of CONFIG_*, HAVE_* and ARCH_*.
They are now always defined to either 0 or 1.

Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-13 23:44:16 +00:00
Carl Eugen Hoyos
af4c0bcb6e Silence the following icc warnings:
warning #1292: attribute "force_align_arg_pointer" ignored
warning #1292: attribute "alloc_size" ignored
warning #1292: attribute "cold" ignored

Originally committed as revision 16258 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-21 22:51:33 +00:00
Carl Eugen Hoyos
52476c1bee Use AV_GCC_VERSION_AT_LEAST() to simplify gcc version checks.
Originally committed as revision 16246 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-20 17:33:35 +00:00
Carl Eugen Hoyos
aaa0df02d3 Allow using DECLARE_ALIGNED with Sun cc.
Originally committed as revision 15509 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-10-02 10:47: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
Måns Rullgård
40c13fecfa alloc_size attribute is new to gcc 4.3; don't use it with lesser versions
Originally committed as revision 13665 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-05 19:49:47 +00:00
Rafaël Carré
d326dd9797 Fix embarassing __GNU__ vs. __GNUC__ typo in preprocessor condition.
patch by Rafaël Carré, funman videolan org

Originally committed as revision 13652 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-03 22:10:53 +00:00
Zuxy Meng
e6e70d9bdc Cosmetic change: remove the whitespace after 'defined'
Originally committed as revision 12501 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-19 07:43:43 +00:00
Zuxy Meng
0fd48faca5 'malloc' attribute isn't supported in old gcc.
Originally committed as revision 12500 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-19 07:42:50 +00:00
Zuxy Meng
cca6d953c2 Apply "alloc_size" attribute to av_alloc, av_realloc and av_mallocz
Originally committed as revision 12499 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-19 07:30:34 +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
Diego Biurrun
c123486e44 #error in case we do not know how to provide alignment.
Originally committed as revision 12382 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-08 20:30:15 +00:00
Eddie Pang
a02dd7ebdd Fix MSVC identification, patch by Eddie Pang.
Originally committed as revision 12218 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-25 18:32:55 +00:00
Michael Niedermayer
4fa1f6cc5c Make code C conformant.
Originally committed as revision 12217 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-25 18:25:49 +00:00
Diego Biurrun
4bfc91a07b cosmetics: prettyprint
Originally committed as revision 12213 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-25 14:53:55 +00:00
Eddie Pang
5cbd67ea43 10l: Correctly use preprocessor conditionals.
patch by Eddie Pang, eddpang gmail com

Originally committed as revision 12159 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-20 18:48:49 +00:00
Diego Biurrun
7cb1fc766b Add fallback for DECLARE_ALIGNED and DECLARE_ASM_CONST.
Originally committed as revision 11919 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-13 08:36:04 +00:00
Diego Biurrun
b89bb8581d Mark MSVC compiler macros as such.
Originally committed as revision 11918 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-13 08:33:05 +00:00
Diego Biurrun
7433ca2982 Disentangle nested preprocessor directives.
Originally committed as revision 11917 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-13 08:08:03 +00:00
Carl Eugen Hoyos
7ce3e4a882 Allow compilation with icc 10.1.
Originally committed as revision 11889 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-09 20:47:11 +00:00
Reimar Döffinger
766324fc49 Add and use DECLARE_ASM_CONST for constants used in assembler code.
Should make it easier to work around compilation problems with e.g. ICC.

Originally committed as revision 11641 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-27 20:50:16 +00:00
Stefano Sabatini
0ee97f0d3f Doxyfication, patch by Stefano Sabatini %stefano P sabatini-lala A poste P it%
Originally committed as revision 10906 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-11-02 19:48:13 +00:00
Stefano Sabatini
22baf42c83 doxy/cosmetics fixes. Patch by Stefano Sabatini %stefano P sabatini-lala A posteP it %
Originally committed as revision 10893 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-11-01 11:51:51 +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
8a2d973dfc misc Doxygen spelling/grammar fixes
Originally committed as revision 10754 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-15 23:07:03 +00:00
Stefano Sabatini
d3de3ee2bd Document libavutil/mem.h:av_strdup.
patch by Stefano Sabatini, stefano.sabatini-lala poste it

Originally committed as revision 10456 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-09 13:23:34 +00:00
Panagiotis Issaris
792098c2ec Move the memory related functions out of common.h into their own header file
mem.h.

Originally committed as revision 8342 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-12 14:45:49 +00:00