Statistics
| Branch: | Revision:

ffmpeg / libavutil / common.h @ 490a022d

History | View | Annotate | Download (10.4 KB)

# Date Author Comment
2912e87a 03/19/2011 01:33 PM Mans Rullgard

Replace FFmpeg with Libav in licence headers

Signed-off-by: Mans Rullgard <>

eb3755a5 02/17/2011 11:25 PM Jason Garrett-Glaser

Force inlining of avutil common routines

On some versions of gcc, these weren't always getting inlined due to hitting
the inline cap limit in some files. This is generally bad, as most of these
functions are smaller inlined than not.

bc6f0af2 09/14/2010 02:45 PM Tomas Härdin

Add av_popcount() to libavutil/common.h and bump minor version

Originally committed as revision 25120 to svn://svn.ffmpeg.org/ffmpeg/trunk

573af754 08/23/2010 03:31 PM Benoit Fouet

Add missing parentheses to AV_NE macro.

Originally committed as revision 24885 to svn://svn.ffmpeg.org/ffmpeg/trunk

6a36facc 08/17/2010 06:48 PM Måns Rullgård

Fix out-of-tree build

Originally committed as revision 24816 to svn://svn.ffmpeg.org/ffmpeg/trunk

4f2d2e4e 08/17/2010 06:25 PM Stefano Sabatini

Define macro AV_NE() and use it in libavdevice.

Help further refactoring.

Originally committed as revision 24814 to svn://svn.ffmpeg.org/ffmpeg/trunk

216b43ae 07/07/2010 05:27 PM Måns Rullgård

Allow arch-overrides for all common.h clip and log2 functions

Originally committed as revision 24087 to svn://svn.ffmpeg.org/ffmpeg/trunk

a955b596 07/07/2010 05:27 PM Måns Rullgård

Remove macro duplication between common.h and intmath.h

Originally committed as revision 24086 to svn://svn.ffmpeg.org/ffmpeg/trunk

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

Improve GET_UTF{8,16} documentation

Originally committed as revision 23909 to svn://svn.ffmpeg.org/ffmpeg/trunk

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

Fix grammar errors in documentation

Originally committed as revision 23904 to svn://svn.ffmpeg.org/ffmpeg/trunk

45a1b86a 06/22/2010 07:11 PM Ronald S. Bultje

Add av_clip_int8(), used in the upcoming VP8 decoder.

Originally committed as revision 23713 to svn://svn.ffmpeg.org/ffmpeg/trunk

1c7c0e2d 06/22/2010 03:02 PM Benoit Fouet

Add missing parentheses in MKTAG and MKBETAG macros.

Originally committed as revision 23711 to svn://svn.ffmpeg.org/ffmpeg/trunk

90bc36b0 04/26/2010 09:01 PM Ronald S. Bultje

Reindent after r22968.

Originally committed as revision 22969 to svn://svn.ffmpeg.org/ffmpeg/trunk

ad640896 04/26/2010 09:00 PM Ronald S. Bultje

Write clip-related decimal numbers into hex, where they make more sense.

Originally committed as revision 22968 to svn://svn.ffmpeg.org/ffmpeg/trunk

2d0525c2 04/26/2010 01:36 PM Ronald S. Bultje

Fix broken 32-bit clipping, and write numbers in hex instead of decimal so
they are easier to understand. Also give the add a 'u' postfix to silence
a pre-c99 compiler warning.

Originally committed as revision 22965 to svn://svn.ffmpeg.org/ffmpeg/trunk

b1078e9f 04/21/2010 05:57 PM Ronald S. Bultje

Move clipping of audio samples (for those codecs outputting float) from decoder
to the audio conversion routines.

Originally committed as revision 22937 to svn://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

b90b1b4c 03/09/2010 01:19 AM Måns Rullgård

Fix build on configurations without fast av_log2()

This is a bit hackish. I will try to think of something nicer, but
this will do for now.

Originally committed as revision 22366 to svn://svn.ffmpeg.org/ffmpeg/trunk

3369888a 03/08/2010 09:29 PM Måns Rullgård

cosmetics: indent

Originally committed as revision 22348 to svn://svn.ffmpeg.org/ffmpeg/trunk

2acb5e10 03/08/2010 09:28 PM Måns Rullgård

Merge two adjacent ifdef blocks

Originally committed as revision 22347 to svn://svn.ffmpeg.org/ffmpeg/trunk

2791730d 03/08/2010 09:28 PM Måns Rullgård

Move gcc attribute macros to new header libavutil/attributes.h

Originally committed as revision 22346 to svn://svn.ffmpeg.org/ffmpeg/trunk

ae529ddb 02/24/2010 06:08 PM Anton Khirnov

Add PUT_UTF16() macro.

Patch by Anton Khirnov <wyskas gmail com>.

Originally committed as revision 22030 to svn://svn.ffmpeg.org/ffmpeg/trunk

544f5a92 01/14/2010 07:58 PM Måns Rullgård

Optimise av_log2 with clz when available

10% faster flac decoding on x86 and ARM.

Originally committed as revision 21217 to svn://svn.ffmpeg.org/ffmpeg/trunk

91cc5d37 11/09/2009 09:11 AM Francesco Lavra

Move ff_reverse in libavcodec to av_reverse in libavutil.

Patch by Francesco Lavra, francescolavra interfree it

Originally committed as revision 20484 to svn://svn.ffmpeg.org/ffmpeg/trunk

20c68378 09/23/2009 06:22 PM Anton Khirnov

id3v2: Add support for UTF-16 encoding.
patch by Anton Khirnov, wyskas gmail com

Originally committed as revision 20006 to svn://svn.ffmpeg.org/ffmpeg/trunk

c6dbbc45 08/30/2009 03:50 PM Thilo Borgmann

Add function to compute ceil(log2(x)).
Patch by Thilo Borgmann <thilo.borgmann at googlemail.com>

Originally committed as revision 19747 to svn://svn.ffmpeg.org/ffmpeg/trunk

f51fb686 08/13/2009 06:47 PM Ramiro Polla

Introduce av_clip_uint16().

Originally committed as revision 19636 to svn://svn.ffmpeg.org/ffmpeg/trunk

75af0749 07/30/2009 09:58 PM Diego Biurrun

Revert addition of '#undef av_always_inline' to config.h in the small case.
Instead, #include config.h at the top of common.h so that av_always_inline
does not get doubly defined.

Originally committed as revision 19553 to svn://svn.ffmpeg.org/ffmpeg/trunk

a3a55b78 06/28/2009 06:28 PM Carl Eugen Hoyos

Icc does not support attribute flatten, do not try to use it.

Originally committed as revision 19286 to svn://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

ef516f73 05/22/2009 09:32 PM David Conrad

Move ALIGN macro to libavutil/common.h and use it in various places

Originally committed as revision 18898 to svn://svn.ffmpeg.org/ffmpeg/trunk

03bc0f37 02/22/2009 12:13 AM Måns Rullgård

Avoid warnings from AV_GCC_VERSION_AT_LEAST with some non-gcc compilers

Originally committed as revision 17508 to svn://svn.ffmpeg.org/ffmpeg/trunk

0dd89666 02/10/2009 09:12 AM Carl Eugen Hoyos

Silence one icc warning:
variable "..." is used before its value is set

Originally committed as revision 17127 to svn://svn.ffmpeg.org/ffmpeg/trunk

b7d3a8c1 02/10/2009 01:24 AM Diego Biurrun

Use AV_GCC_VERSION_AT_LEAST instead of complicated GNUC version check.

Originally committed as revision 17114 to svn://svn.ffmpeg.org/ffmpeg/trunk

3b49f690 02/09/2009 09:47 PM Michael Niedermayer

av_flatten to make the similarly named attribute available.

Originally committed as revision 17105 to svn://svn.ffmpeg.org/ffmpeg/trunk

51066987 02/09/2009 09:47 PM Michael Niedermayer

av_uninit() to suppress false uninitialized warnings from gcc without deoptimizing code.

Originally committed as revision 17104 to svn://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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

spelling/grammar/consistency review part I

Originally committed as revision 16840 to svn://svn.ffmpeg.org/ffmpeg/trunk

8076c473 01/25/2009 11:21 PM Diego Biurrun

Reorganize header #includes: Unconditionally #include standard C headers,
group all local #includes together.

Originally committed as revision 16796 to svn://svn.ffmpeg.org/ffmpeg/trunk

6b8b7258 01/25/2009 02:00 PM Diego Biurrun

Move internal.h #include to the end of the file so that it is after
the declaration of av_log2_16bit, which it uses.

Originally committed as revision 16772 to svn://svn.ffmpeg.org/ffmpeg/trunk

199436b9 01/18/2009 10:57 PM Aurelien Jacobs

moves mid_pred() into mathops.h (with arch specific code split by directory)

Originally committed as revision 16681 to svn://svn.ffmpeg.org/ffmpeg/trunk

2bb6eba2 01/17/2009 12:21 PM Aurelien Jacobs

remove ff_get_fourcc() and use AV_RL32() instead

Originally committed as revision 16654 to svn://svn.ffmpeg.org/ffmpeg/trunk

9ce6c138 01/17/2009 11:13 AM Aurelien Jacobs

export gcd function as av_gcd()

Originally committed as revision 16653 to svn://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

79cb09b2 12/27/2008 11:33 AM Diego Biurrun

consistency cosmetics: Rename POWERPC identifiers to PPC.

Originally committed as revision 16359 to svn://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

03092e14 10/21/2008 02:57 PM Michael Niedermayer

Port read_time() that works on x86_32 and 64 from noe.

Originally committed as revision 15661 to svn://svn.ffmpeg.org/ffmpeg/trunk

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

ac809e81 10/15/2008 07:24 AM Benoit Fouet

Add a macro to get the number of elements in a table.

Originally committed as revision 15619 to svn://svn.ffmpeg.org/ffmpeg/trunk

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

4138ad96 07/13/2008 07:59 PM Vitor Sessak

Add av_clipf() function to common.h and use it in ra288.c

Originally committed as revision 14213 to svn://svn.ffmpeg.org/ffmpeg/trunk

8cd8eaa5 06/08/2008 10:55 AM Michael Niedermayer

Make START/STOP_TIMER not require -v 2.

Originally committed as revision 13711 to svn://svn.ffmpeg.org/ffmpeg/trunk

4a567b40 06/01/2008 07:37 AM Stefano Sabatini

Macro suggested by Michael which will be used to disable the
definition of long_name strings in libavcodec and libavformat.
Patch by: Stefano Sabatini, stefano.sabatini-lala poste it

Originally committed as revision 13595 to svn://svn.ffmpeg.org/ffmpeg/trunk

b842ecbe 04/26/2008 12:47 PM Baptiste Coudurier

add FFMIN3

Originally committed as revision 12982 to svn://svn.ffmpeg.org/ffmpeg/trunk

159ef4b0 04/19/2008 05:07 PM Vladimir Voroshilov

Implement FFMAX3 - maximum over three arguments.

Originally committed as revision 12910 to svn://svn.ffmpeg.org/ffmpeg/trunk

c88c253d 04/17/2008 09:57 PM Diego Biurrun

cosmetics: asm volatile --> asm volatile

Originally committed as revision 12885 to svn://svn.ffmpeg.org/ffmpeg/trunk

98a6fff9 03/21/2008 03:11 AM Zuxy Meng

Apply 'cold' attribute to init/uninit functions in libavcodec

Originally committed as revision 12525 to svn://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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

revert r12489.

Originally committed as revision 12490 to svn://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

7ce68923 03/10/2008 06:42 PM Diego Biurrun

misc spelling fixes

Originally committed as revision 12410 to svn://svn.ffmpeg.org/ffmpeg/trunk

27af15dc 02/15/2008 02:58 PM Diego Biurrun

prettyprinting cosmetics

Originally committed as revision 11941 to svn://svn.ffmpeg.org/ffmpeg/trunk

89ef2c29 02/01/2008 01:33 AM Michael Niedermayer

Merge declaration and initialization.

Originally committed as revision 11701 to svn://svn.ffmpeg.org/ffmpeg/trunk

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

Add FFMPEG_ prefix to all multiple inclusion guards.

Originally committed as revision 10765 to svn://svn.ffmpeg.org/ffmpeg/trunk

ddb8ebe7 08/11/2007 09:59 PM Aurelien Jacobs

add a new av_clip_int16() function to libavutil

Originally committed as revision 10076 to svn://svn.ffmpeg.org/ffmpeg/trunk

b9c684a2 08/11/2007 09:52 PM Aurelien Jacobs

ensure av_noinline is always defined

Originally committed as revision 10075 to svn://svn.ffmpeg.org/ffmpeg/trunk

b6c748ed 08/09/2007 12:12 AM Roman Shaposhnik
  • Making [START|STOP]_TIMER work on architectures that support gethrtime()

Originally committed as revision 9998 to svn://svn.ffmpeg.org/ffmpeg/trunk

f70c2739 06/13/2007 11:09 AM Marc Hoffman

Blackfin - read_time primitive
note this primitive currently uses a union to concatenate 2x32bit registers because of poor compiler support
around DImode and asm.

Originally committed as revision 9302 to svn://svn.ffmpeg.org/ffmpeg/trunk

90b5b51e 06/12/2007 06:50 PM Diego Biurrun

misc typo fixes

Originally committed as revision 9291 to svn://svn.ffmpeg.org/ffmpeg/trunk

154e30f6 05/30/2007 09:32 AM Carl Eugen Hoyos

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

792098c2 03/12/2007 02:45 PM Panagiotis Issaris

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

0d8f16ac 03/09/2007 03:18 PM Panagiotis Issaris

Fix typo in Doxygen comments.

Originally committed as revision 8307 to svn://svn.ffmpeg.org/ffmpeg/trunk

d7f65469 03/05/2007 01:51 PM Panagiotis Issaris

Move unaltered av_freep() comments to the header file.

Originally committed as revision 8253 to svn://svn.ffmpeg.org/ffmpeg/trunk

f690ee71 03/05/2007 01:50 PM Panagiotis Issaris

Move unaltered av_free() comments to the header file.

Originally committed as revision 8252 to svn://svn.ffmpeg.org/ffmpeg/trunk

d6def91a 03/05/2007 01:46 PM Panagiotis Issaris

Move unaltered av_realloc() comments to the header file.

Originally committed as revision 8251 to svn://svn.ffmpeg.org/ffmpeg/trunk

9a070299 03/05/2007 01:45 PM Panagiotis Issaris

Move unaltered av_malloc() comments to the header file.

Originally committed as revision 8250 to svn://svn.ffmpeg.org/ffmpeg/trunk

738940e8 02/25/2007 07:30 PM Måns Rullgård

remove [U]INT64_C definition

Originally committed as revision 8127 to svn://svn.ffmpeg.org/ffmpeg/trunk

f66e4f5f 02/25/2007 10:27 AM Reimar Döffinger

Add av_ prefix to clip functions

Originally committed as revision 8122 to svn://svn.ffmpeg.org/ffmpeg/trunk

410bf273 02/16/2007 09:19 PM Michael Niedermayer

av_noinline

Originally committed as revision 7992 to svn://svn.ffmpeg.org/ffmpeg/trunk

8fa36ae0 02/13/2007 06:26 PM François Revol

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

9b0dfb27 02/12/2007 02:25 PM Michael Niedermayer

slightly improve *_TIMER

Originally committed as revision 7948 to svn://svn.ffmpeg.org/ffmpeg/trunk

d0b456ba 01/13/2007 04:01 AM Christophe Mutricy

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

849f1035 12/08/2006 12:35 AM Måns Rullgård

rename always_inline to av_always_inline and move to common.h

Originally committed as revision 7256 to svn://svn.ffmpeg.org/ffmpeg/trunk

1845bf1f 12/07/2006 08:06 PM Måns Rullgård

merge #ifdef HAVE_AV_CONFIG_H sections

Originally committed as revision 7254 to svn://svn.ffmpeg.org/ffmpeg/trunk

a77caa4d 12/07/2006 07:27 PM Måns Rullgård

fix mingw shared build, and get rid of FF_IMPORT_ATTR

Originally committed as revision 7253 to svn://svn.ffmpeg.org/ffmpeg/trunk

8da9266c 12/06/2006 11:46 PM Måns Rullgård

use the standard INT64_C() macro for 64-bit constants

Originally committed as revision 7240 to svn://svn.ffmpeg.org/ffmpeg/trunk

cd107896 12/06/2006 11:23 PM Måns Rullgård

move more macros to internal.h

Originally committed as revision 7239 to svn://svn.ffmpeg.org/ffmpeg/trunk

5403f857 12/06/2006 09:27 PM Måns Rullgård

move some attribute macros to internal.h

Originally committed as revision 7238 to svn://svn.ffmpeg.org/ffmpeg/trunk

c48e633b 12/06/2006 08:31 PM Måns Rullgård

remove 'restrict' definition, it is always #defined in config.h

Originally committed as revision 7237 to svn://svn.ffmpeg.org/ffmpeg/trunk

c6c36725 12/02/2006 02:19 PM Diego Biurrun

spelling cosmetics: cliped --> clipped

Originally committed as revision 7208 to svn://svn.ffmpeg.org/ffmpeg/trunk

40a08c7e 11/19/2006 09:43 AM Reimar Döffinger

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

a99cfb0d 11/19/2006 09:33 AM Reimar Döffinger

Fix typo in comment

Originally committed as revision 7123 to svn://svn.ffmpeg.org/ffmpeg/trunk

576a85f7 11/14/2006 08:00 PM Måns Rullgård

remove workaround for missing inttypes.h

Originally committed as revision 7068 to svn://svn.ffmpeg.org/ffmpeg/trunk

81dc56e7 11/14/2006 04:02 AM Måns Rullgård

clean up inttypes.h and int_fastxx_t types detection

Originally committed as revision 7050 to svn://svn.ffmpeg.org/ffmpeg/trunk

d73427e3 11/06/2006 12:38 PM Guillaume Poirier

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

34d33769 11/06/2006 10:39 AM Guillaume Poirier

Fix wrong params name in PUT_UTF8 doxy comments

Originally committed as revision 6913 to svn://svn.ffmpeg.org/ffmpeg/trunk

0e8c148b 11/06/2006 10:35 AM Guillaume Poirier

woops, fix missplaced doxy comment

Originally committed as revision 6912 to svn://svn.ffmpeg.org/ffmpeg/trunk