| Branch: | Revision:

ffmpeg / libavutil / internal.h @ 08675bb3

History | View | Annotate | Download (6.03 KB)

# Date Author Comment
6841c8c5 05/09/2011 02:50 AM Michael Niedermayer

Merge remote branch 'qatar/master'

  • qatar/master:
    log: Fix an oob array read.
    cosmetics: trim trailing whitespace in postproc
    Ban strncpy() it's too easy to misuse.
    psymodel: Remove wrapper functions.
    aacenc: Replace loop counters in aac_encode_frame() with more descriptive 'ch' and 'w'....
15695541 05/08/2011 07:49 PM Alex Converse

Ban strncpy() it's too easy to misuse.

2fd41c90 03/24/2011 01:16 AM Michael Niedermayer

Merge remote-tracking branch 'newdev/master'

  • newdev/master:
    avio: make udp_set_remote_url/get_local_port internal.
    asfdec: also subtract preroll when reading simple index object
    matroskaenc: remove a variable that's unused after bc17bd9.
    avio: cosmetics - nicer vertical alignment....
820818a3 03/23/2011 12:39 PM Mans Rullgard

Remove unnecessary icc version checks

With unknown attribute warnings disabled, these checks are no
longer needed. Removing them improves readability while having
no effect on generated code.

Signed-off-by: Mans Rullgard <>

d375c104 03/22/2011 09:36 PM Michael Niedermayer

Fake-Merge remote-tracking branch 'ffmpeg-mt/master'

2912e87a 03/19/2011 01:33 PM Mans Rullgard

Replace FFmpeg with Libav in licence headers

Signed-off-by: Mans Rullgard <>

a5b13b14 03/02/2011 12:38 PM Carl Eugen Hoyos

Use macro __INTEL_COMPILER instead of __ICC.

__ICC is not supported on all platforms, this is an Intel documentation
bug that is supposed to be fixed in a future release.
(Intel issue 612289)

b38f008e 02/11/2011 01:53 AM Alexander Strange

Frame-based multithreading framework using pthreads

See doc/multithreading.txt for details on use in codecs.

Signed-off-by: Ronald S. Bultje <>

37b00b47 02/09/2011 02:17 PM Alexander Strange

Frame-based multithreading framework using pthreads

See doc/multithreading.txt for details on use in codecs.

Signed-off-by: Ronald S. Bultje <>

0374152f 01/31/2011 05:25 PM Mans Rullgard

Rename attribute_used to av_used and move it to attributes.h

This is consistent with most of the other attribute macros.

Signed-off-by: Mans Rullgard <>
(cherry picked from commit 365e3c7878e4e821d5dec922d2d51f92ce13f926)

365e3c78 01/31/2011 04:01 PM Mans Rullgard

Rename attribute_used to av_used and move it to attributes.h

This is consistent with most of the other attribute macros.

Signed-off-by: Mans Rullgard <>

9ef5a9de 01/30/2011 02:41 AM Luca Barbato

Replace dprintf with av_dlog

dprintf clashes with POSIX.1-2008
(cherry picked from commit dfd2a005eb29e4b9f2fdb97036eb7d5c38ae4bd4)

dfd2a005 01/29/2011 10:55 PM Luca Barbato

Replace dprintf with av_dlog

dprintf clashes with POSIX.1-2008

086e997e 11/10/2010 12:45 PM Carl Eugen Hoyos

Intel C compiler 12.0 does not suport these attributes: may_alias, force_align_arg_pointer and alloc_size.

Originally committed as revision 25716 to svn://

eedc4ee5 07/17/2010 04:35 PM Carl Eugen Hoyos

Use attribute force_align_arg_pointer only on x86_32.

Originally committed as revision 24290 to svn://

cae70f99 06/30/2010 08:09 PM Måns Rullgård

Improve FF_SYMVER documentation

Originally committed as revision 23911 to svn://

49bd8e4b 06/30/2010 03:38 PM Måns Rullgård

Fix grammar errors in documentation

Originally committed as revision 23904 to svn://

33586ee7 06/16/2010 04:53 AM Michael Niedermayer

Document FF_SYMVER and attribute_used

Originally committed as revision 23622 to svn://

ccc87908 06/15/2010 03:24 PM Måns Rullgård

Fix symbol version compat wrappers on systems with export prefixes

Originally committed as revision 23615 to svn://

b462d132 06/15/2010 01:26 PM Måns Rullgård

Add compatibility wrappers for functions moved from lavf to lavc

When symbol versioning is enabled, moving symbols from one library to
another breaks binary compatibility. This adds wrappers with the old
version tag for the av_*packet functions recently moved to lavc....

a74d707c 05/13/2010 04:30 PM Michael Niedermayer

av_alias is an attribute and belongs to attributes.h
also attributes.h is public and external api and can thus not depend
on configure tested compiler support thus this part is removed. A
different solution must be found if this breaks for some compiler
which i hope it does not....

ba87f080 04/20/2010 02:45 PM Diego Biurrun

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://

2ed6f399 03/09/2010 05:39 PM Måns Rullgård

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://

335ee1aa 03/09/2010 03:10 PM Måns Rullgård

Move libm replacements to new header libm.h

ffmpeg.c uses lrintf(), which is missing on some systems. Previously
it picked up the replacement via libavutil/internal.h due to
HAVE_AV_CONFIG_H being erroneously defined.

Moving these replacements to a separate header enables ffmpeg.c to...

94ca624f 03/08/2010 09:19 PM Måns Rullgård

Move ff_sqrt() to libavutil/intmath.h

Originally committed as revision 22345 to svn://

7ed63ca2 02/20/2010 04:02 PM Måns Rullgård

Add casts to correct return type in macros for missing libm funcs

Originally committed as revision 21922 to svn://

8e339d4a 02/20/2010 12:22 PM Carl Eugen Hoyos

Gcc attribute may_alias is not supported (or silently ignored) by all supported compilers.

Originally committed as revision 21917 to svn://

8e05f069 02/09/2010 10:55 PM Måns Rullgård

Define missing llrint() as macro instead of inline function

This fixes building on some broken systems.

Originally committed as revision 21735 to svn://

788627de 01/29/2010 03:26 AM Måns Rullgård

Define av_alias if supported by compiler

Originally committed as revision 21523 to svn://

5e7dfb7d 01/20/2010 06:01 AM Måns Rullgård

Move COPY3_IF_LT to lavc/mathops.h

This obscure macro is only used in motion_est.c so having it in lavc
makes more sense. See discussion here:

Originally committed as revision 21346 to svn://

75fb5c24 01/19/2010 11:25 PM Måns Rullgård

Move FASTDIV macro to intmath.h

Originally committed as revision 21335 to svn://

06cb7a1c 01/16/2010 01:27 AM Vitor Sessak

Use macros instead of inline functions to replace the following missing C99
functions: exp2, exp2f, log2, log2f.

Should fix compilation in systems where these functions are defined in math.h
but not implemented.

Originally committed as revision 21231 to svn://

6b7c7703 01/12/2010 02:19 AM Vitor Sessak

Add replacements for log2f(), exp2() and exp2f() for platforms that lacks it.

Should fix build breakage on some platforms introduced in r21125.

Originally committed as revision 21155 to svn://

7fc58b1e 11/10/2009 12:59 PM Reimar Döffinger

Remove code checking for PIC or pic and setting PIC from libavutil/internal.h,
configure is supposed to take care of that already.

Originally committed as revision 20498 to svn://

1a918c08 09/21/2009 03:01 AM Loren Merritt

extend ff_inverse[], and fix its documentation

Originally committed as revision 19942 to svn://

d31dbec3 09/06/2009 12:08 AM Ramiro Polla

Rename CHECKED_ALLOC(Z) to FF_ALLOC(Z)_OR_GOTO and add context and label

Originally committed as revision 19776 to svn://

5ce6934e 09/04/2009 04:59 PM Ramiro Polla

Add a newline in error message in CHECKED_ALLOC(Z).

Originally committed as revision 19758 to svn://

ee155011 09/01/2009 04:00 PM Diego Biurrun

whitespace cosmetics, prettyprinting

Originally committed as revision 19751 to svn://

e48a0966 08/29/2009 10:38 PM Ramiro Polla

It works the same as CHECKED_ALLOCZ except that it does not zero the allocated

Originally committed as revision 19742 to svn://

291fd18a 07/10/2009 07:20 PM Alex Converse

Add a log2 replacement for systems that haven't quite caught up with the C99
standard library.

Originally committed as revision 19395 to svn://

16c2e214 07/09/2009 02:20 AM Ramiro Polla

Move DECLARE_ALIGNED and DECLARE_ASM_CONST back from lavu/internal.h to

Originally committed as revision 19384 to svn://

4b2be143 07/09/2009 02:18 AM Ramiro Polla

Do not throw compiler error if asm code needs alignment, but we do not know
how to do it for this compiler. This removes a dependency of config.h on the
DECLARE_* macros.

Originally committed as revision 19383 to svn://

06be9d9d 06/27/2009 08:34 AM Carl Eugen Hoyos

Icc 11.1 does not support attributes force_align_arg_pointer, alloc_size and cold.

Originally committed as revision 19282 to svn://

7d9beec7 05/25/2009 01:50 AM Ramiro Polla

Add LABEL_MANGLE() to export label symbols from inside asm blocks.

Originally committed as revision 18934 to svn://

9f5da4d1 03/21/2009 04:16 PM Diego Biurrun

When warning about forbidden pseudo random number generation functions,
suggest the correct replacement functions.

Originally committed as revision 18114 to svn://

35690321 03/05/2009 09:20 PM Måns Rullgård

ARM: disable inline asm for armcc

Originally committed as revision 17831 to svn://

28499cc8 02/21/2009 04:03 PM Måns Rullgård

Correct, portable definition of INT_BIT

Originally committed as revision 17480 to svn://

bad5537e 02/01/2009 02:00 AM Diego Biurrun

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://

9d52d54d 01/30/2009 06:52 PM Diego Biurrun

Add required header mem.h, av_malloc and friends are used.

Originally committed as revision 16863 to svn://

dbef3f46 01/30/2009 06:46 PM Diego Biurrun

cosmetics: Move all #includes together at the beginning of the file.

Originally committed as revision 16862 to svn://

7d685b48 01/28/2009 11:16 PM Diego Biurrun

spelling/grammar/consistency review part III

Originally committed as revision 16849 to svn://

bfe3676f 01/28/2009 11:03 PM Diego Biurrun

spelling/grammar/consistency review part II

Originally committed as revision 16848 to svn://

89c9ff50 01/28/2009 12:16 AM Diego Biurrun

spelling/grammar/consistency review part I

Originally committed as revision 16840 to svn://

b58f29a1 01/25/2009 10:05 PM Diego Biurrun

Disambiguate the macros used to disable fprintf/printf/puts functions.

Originally committed as revision 16790 to svn://

ed0fd852 01/25/2009 09:54 PM Diego Biurrun

Add required limits.h header.

Originally committed as revision 16789 to svn://

0f73b510 01/25/2009 07:51 PM Diego Biurrun

Restore _MSC_VER case in DECLARE_ALIGNED/DECLARE_ASM_CONST macro declaration.
This compiler might be supported in the future or we might some day decide
to export these macros.

Originally committed as revision 16786 to svn://

3bb13a47 01/25/2009 07:24 PM Diego Biurrun

Drop _MSC_VER case from macro declaration.
This compiler will never see our internal headers.

Originally committed as revision 16783 to svn://

4ce94923 01/25/2009 07:18 PM Diego Biurrun

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://

f3c04c13 01/25/2009 02:01 PM Diego Biurrun

Remove redundant av_log2_16bit forward declaration, fixes checkheaders warning:
libavutil/internal.h:167: warning: redundant redeclaration of `av_log2_16bit'
libavutil/common.h:143: warning: previous definition of `av_log2_16bit' was here

Originally committed as revision 16773 to svn://

9c868219 01/18/2009 11:04 PM Stefano Sabatini

Replace calls to the deprecated function av_init_random() with
corresponding calls to av_random_init().

Originally committed as revision 16682 to svn://

d80a7fe5 01/15/2009 11:01 PM Aurelien Jacobs

move NULL_IF_CONFIG_SMALL() definition into internal header

Originally committed as revision 16619 to svn://

2f5421d5 01/15/2009 10:58 PM Aurelien Jacobs

move timer related code in a new timer.h file

Originally committed as revision 16618 to svn://

b250f9c6 01/13/2009 11:44 PM Aurelien Jacobs

Change semantic of CONFIG_*, HAVE_* and ARCH_*.
They are now always defined to either 0 or 1.

Originally committed as revision 16590 to svn://

7b04b8a0 01/11/2009 10:10 PM Michael Kostylev

Add truncf() replacement function.
Patch by Michael Kostylev <mik at it-1 dot ru>

Originally committed as revision 16555 to svn://

ff8769e2 01/11/2009 08:26 PM Diego Biurrun

Drop unnecessary intreadwrite.h and bswap.h #includes.

Originally committed as revision 16546 to svn://

af4c0bcb 12/21/2008 10:51 PM Carl Eugen Hoyos

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://

52476c1b 12/20/2008 05:33 PM Carl Eugen Hoyos

Use AV_GCC_VERSION_AT_LEAST() to simplify gcc version checks.

Originally committed as revision 16246 to svn://

f8c5adaf 12/17/2008 08:04 PM Måns Rullgård

ARM: make FASTDIV an inline function

Originally committed as revision 16193 to svn://

a2fc0f6a 12/17/2008 12:54 AM Måns Rullgård

ARM: replace "armv4l" with "arm"

Originally committed as revision 16179 to svn://

b98f10c0 10/25/2008 06:54 PM Måns Rullgård


Originally committed as revision 15712 to svn://

be449fca 10/16/2008 01:34 PM Diego Pettenò

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...

6123abad 09/06/2008 07:26 AM Stefano Sabatini

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://

98790382 08/31/2008 07:39 AM Stefano Sabatini

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_"....

2b409ca9 08/14/2008 08:40 PM Diego Biurrun

Remove hackish support for fastmemcpy from MPlayer.

Originally committed as revision 14764 to svn://

5af4f1f3 08/13/2008 04:01 PM Aurelien Jacobs

move M_PI definition along with other math definitions

Originally committed as revision 14727 to svn://

c8fd5da4 07/31/2008 02:38 AM Måns Rullgård

fix ARMv6 FASTDIV for divisor <=2

Originally committed as revision 14481 to svn://

9f31c7ef 07/30/2008 12:02 PM Diego Biurrun


Originally committed as revision 14475 to svn://

80a61f08 07/24/2008 10:53 AM Diego Biurrun

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...

6651ce17 07/15/2008 07:06 PM Måns Rullgård

ARM: ARMv6 optimised FASTDIV

Originally committed as revision 14242 to svn://

d7bd0b3d 07/05/2008 08:10 AM Peter Ross

Only define AltiVec vector syntax macro when AltiVec is enabled.
patch by Peter Ross, pross xvid org

Originally committed as revision 14073 to svn://

b006b26c 05/30/2008 10:58 AM Diego Biurrun

Implement a proper configure test for AltiVec vector declaration syntax.

Originally committed as revision 13555 to svn://

df22c35d 03/22/2008 06:15 PM Alexander Strange

so that LOCAL_MANGLE can be used without EXTERN_PREFIX.
patch by Alexander Strange, astrange ithinksw com

Originally committed as revision 12558 to svn://

85074d3c 03/19/2008 06:17 AM Zuxy Meng

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://

2119bb8f 03/18/2008 04:29 PM Benoit Fouet

revert r12489.

Originally committed as revision 12490 to svn://

6544f48f 03/18/2008 03:27 PM Zuxy Meng

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://

b4d96ba2 03/18/2008 02:01 AM Måns Rullgård

check for prefix on extern symbols in configure

Originally committed as revision 12484 to svn://

08e89160 03/17/2008 09:22 AM Diego Biurrun

cosmetics: indentation

Originally committed as revision 12471 to svn://

edfd6975 03/17/2008 09:22 AM Diego Biurrun

Simplify MANGLE macro preprocessor condition checks.

Originally committed as revision 12470 to svn://

8e9ccb6c 03/17/2008 07:49 AM İsmail Dönmez

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://

a087028a 03/13/2008 06:04 PM Diego Biurrun

Add #include "config.h" to headers that need it.

Originally committed as revision 12431 to svn://

7e14b808 02/28/2008 05:01 PM Reimar Döffinger

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://

c448a096 01/21/2008 01:33 PM Michael Niedermayer

Faster ff_sqrt()

Originally committed as revision 11586 to svn://

59ec6991 01/17/2008 08:32 AM Diego Biurrun

Disallow puts(), av_log() should be used instead.

Originally committed as revision 11548 to svn://

a33cab3a 12/27/2007 01:53 AM Michael Kostylev

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://

52d08608 12/27/2007 01:42 AM Diego Biurrun

Remove outdated comment.

Originally committed as revision 11325 to svn://

4f365f37 12/24/2007 12:49 PM Michael Kostylev

djgpp port, first part
patch by Michael Kostylev, mik niipt ru

Originally committed as revision 11313 to svn://

c5a2fe8f 11/19/2007 10:40 AM Luca Abeni

Generate a linking error if perror() is used in libav*

Originally committed as revision 11061 to svn://

7f0cd6a5 11/19/2007 07:39 AM Luca Abeni

Remove perror() usage from libavutil

Originally committed as revision 11057 to svn://

4f9c008c 10/19/2007 03:39 PM Jeremy Mordkoff

Fix typo.
Patch by Jeremy Mordkoff: jlm zazzletech com

Originally committed as revision 10812 to svn://

5b21bdab 10/17/2007 09:37 AM Diego Biurrun

Add FFMPEG_ prefix to all multiple inclusion guards.

Originally committed as revision 10765 to svn://