| Branch: | Revision:

ffmpeg / libavutil @ 490a022d

# Date Author Comment
490a022d 04/19/2011 05:04 PM Anton Khirnov

lavu: remove misc disabled cruft

9e5c62c9 04/19/2011 05:04 PM Anton Khirnov

lavu: remove FF_API_OLD_IMAGE_NAMES cruft

516fb5e4 04/19/2011 05:03 PM Anton Khirnov

lavu: remove FF_API_OLD_EVAL_NAMES cruft

139f3ac4 04/18/2011 06:19 PM Anton Khirnov

Bump major versions of all libraries.

They've accumulated enough new APIs and corresponding deprecated cruft.

This breaks API and ABI.

6001dad6 04/17/2011 05:31 PM Diego Biurrun

Replace more FFmpeg references by Libav.

a3a0af4f 04/14/2011 08:14 PM Alexis Ballier

avutil: make aes and sha api public

The functions are already av_ prefixed and sha1 header is already provided.
Install libavutil/{aes,sha}.h

Signed-off-by: Michael Niedermayer <>
Signed-off-by: Luca Barbato <>

5ae4251c 04/10/2011 07:24 AM Stefano Sabatini

eval: add support for trunc, ceil, and floor functions

Signed-off-by: Stefano Sabatini <>
Signed-off-by: Anton Khirnov <>

3028b6ed 04/10/2011 03:02 AM Brad

os: fix OpenBSD/PowerPC compilation

When attempting to re-enable the AltiVec support it was noticed
that we need to undefine _POSIX_C_SOURCE to appease the headers
for ff_get_cpu_flags_ppc() to be able to compile.

Signed-off-by: Luca Barbato <>

73389754 04/10/2011 02:44 AM Peter Ross

pixfmt: add PIX_FMT_BGR48LE and PIX_FMT_BGR48BE

PIX_FMT_BGR48LE is used by PhantomCINE demuxer.

Signed-off-by: Luca Barbato <>

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

45ed8225 03/22/2011 01:11 PM Justin Ruggles

cosmetics: indentation

eba586b0 03/22/2011 01:11 PM Justin Ruggles

Add a CPU flag for the Atom processor.

The Atom has SSSE3 support, which is useful in many cases, but sometimes the
SSSE3 version is slower than the SSE2 equivalent on the Atom, but is generally
faster on other processors supporting SSSE3. This flag allows for selectively...

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

Replace FFmpeg with Libav in licence headers

Signed-off-by: Mans Rullgard <>

a03be6e1 03/16/2011 08:54 PM Janne Grunau


29ba0911 03/16/2011 08:54 PM Janne Grunau


also update the multiple inclusion guards in config.h|mak

bafa4dd3 03/15/2011 12:09 PM Nicolas George


This is different from AVERROR because calls that fail with EINTR
should usually be restarted.

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

ef669538 02/20/2011 05:31 PM Mans Rullgard

x86: use raw opcode for xgetbv instruction

This allows the CPU detection to work with assemblers not supporting
the xgetbv mnemonic. These include clang and some BSD versions.

All AVX code will be written for yasm, where the main assembler
is not involved....

87f1355f 02/20/2011 01:20 PM Mans Rullgard

x86: check for AVX support

This adds configure and runtime checks for AVX support on x86 CPUs.

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.

09d171b9 02/17/2011 02:40 PM Anton Khirnov

lavf, lavu: bump minor versions and add an APIChanges entry for av_ prefixes

Signed-off-by: Janne Grunau <>

ab0287fc 02/17/2011 02:35 PM Anton Khirnov

Move find_info_tag to lavu and add av_ prefix to it

Signed-off-by: Janne Grunau <>

f6c7375a 02/16/2011 11:39 PM Stefano Sabatini

Deprecate parse_date() in favor of av_parse_time().

The new av_parse_time() is created in libavutil/parseutils.h, all the
internal functions used by parse_date are moved to
libavutil/parseutils.c and made static.

Signed-off-by: Mans Rullgard <>

737eb597 02/15/2011 03:18 PM Reinhard Tartler

Merge libavcore into libavutil

It is pretty hopeless that other considerable projects will adopt
libavutil alone in other projects. Projects that need small footprint
are better off with more specialized libraries such as gnulib or rather
just copy the necessary parts that they need. With this in mind, nobody...

74b1f968 02/11/2011 09:58 PM Justin Ruggles

Add check for Athlon64 and similar AMD processors with slow SSE2.

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

523d9407 02/04/2011 10:00 AM Clément Bœsch

Remove a few if (p) av_freep(&p) forms

Signed-off-by: Mans Rullgard <>

dc75d6db 02/03/2011 01:36 AM Clément Bœsch

Avoid pointless check before calling free

Signed-off-by: Mans Rullgard <>

4868bebe 02/02/2011 09:42 PM Anton Khirnov

Add forgotten minor API bumps and APIChanges entries

The bumps are for adding version.h and avio_{get/put}_str functions in
lavf and making av_dlog public in lavu.

Signed-off-by: Janne Grunau <>

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

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

Replace dprintf with av_dlog

dprintf clashes with POSIX.1-2008

e781c4e6 01/25/2011 03:57 PM Mans Rullgard

intfloat_readwrite: include "mathematics.h" for fallback macros

This allows this file to build on systems lacking NAN or INFINITY
in math.h.

Signed-off-by: Mans Rullgard <>

032f4068 01/24/2011 08:25 PM Reimar Döffinger

Handle input or output len of 0 properly in lzo decoder.

(cherry picked from commit 7d5082600ee63d879c2a325974ea09c8ace05019)

7a5a168a 01/23/2011 07:05 PM Mans Rullgard

MIPS: use inline asm only when supported by compiler

ec5f5719 01/18/2011 08:48 PM Mans Rullgard

cpu-test: include stdio.h only for test prog

324e7ee2 01/18/2011 08:48 PM Mans Rullgard

Use INFINITY and NAN macros instead of 1/0 and 0/0

2c3589bf 01/18/2011 08:32 PM Janne Grunau

consolidate .gitignore patters into a single file

Signed-off-by: Janne Grunau <>

348b8218 01/17/2011 02:50 PM Janne Grunau

convert svn:ignore properties to .gitignore files

Signed-off-by: Janne Grunau <>

73f6d31e 01/05/2011 05:16 AM Daniel Verkamp

Win32 support for av_file_map()

Originally committed as revision 26221 to svn://

dfaa9f3c 01/01/2011 08:08 PM Daniel Verkamp

Recognize FFMPEG_FORCE_NOCOLOR environment variable on Win32

Fixes issue 2461

Originally committed as revision 26186 to svn://

f02cbc45 12/22/2010 04:16 PM Stefano Sabatini

Fix av_file_map(): replace stat(filename, &st) with fstat(fd, &st).

The file might be replaced between open() and stat().
Spotted by Mans.

Originally committed as revision 26075 to svn://

1b31037d 12/22/2010 03:32 PM Stefano Sabatini

Replace lstat() with stat() in av_file_map(). The lstat() use was wrong.

Originally committed as revision 26074 to svn://

0328b9ea 12/22/2010 02:13 PM Stefano Sabatini

Add av_file_map() and av_file_unmap() functions.

Originally committed as revision 26073 to svn://

0bc55f5d 12/19/2010 09:01 AM Nicolas George


Originally committed as revision 26056 to svn://

e3c011c8 12/07/2010 03:25 PM Ramiro Polla

fix building of cpu-test by including required header

Originally committed as revision 25917 to svn://

3011ecde 12/06/2010 09:47 PM Stefano Sabatini

Introduce FFMPEG_FORCE_NOCOLOR, with the same meaning and use of
NO_COLOR (but properly prefixed for avoiding namespace conflicts).

Originally committed as revision 25899 to svn://

12998340 12/05/2010 01:56 PM Etienne Buira

Allow to force colored output.

Patch by Etienne Buira, etienne d buira d lists a free d fr

Originally committed as revision 25888 to svn://

bb4afa13 12/04/2010 12:56 PM Stefano Sabatini

Deprecate avcodec_pix_fmt_string() in favor of
av_get_pix_fmt_string(), added to libavutil/pixdesc.h.

Originally committed as revision 25879 to svn://

b47541c7 12/04/2010 04:00 AM Michael Niedermayer

Change the argument of memory allocation functions from unsigned int to size_t
with the next major bump in libavutil.

Originally committed as revision 25871 to svn://

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

d2af7205 11/08/2010 02:06 PM Stefano Sabatini

Use hierarchic names convention (prefix them with av_expr) for the
eval API.

More grep-friendly and more consistent with the rest of the FFmpeg

Originally committed as revision 25708 to svn://

20fcd079 11/03/2010 07:44 PM Stefano Sabatini

Implement isnan() function evaluation.

Originally committed as revision 25666 to svn://

4cabef0a 11/01/2010 09:34 AM Stefano Sabatini

Make strmatch() return 1 only if the string compared against the
prefix does not contain other characters which may belong to an

This allows to distinguish for example to have different constants
with the same prefix (e.g. "foo" and "foobar")....

2b59fbe9 11/01/2010 09:34 AM Stefano Sabatini

Add st, ld, while examples/tests.

Originally committed as revision 25625 to svn://

8bb12e71 11/01/2010 09:34 AM Stefano Sabatini

Add examples of unary operators.

Originally committed as revision 25624 to svn://

63b16303 11/01/2010 09:34 AM Stefano Sabatini

Fix evaluation of expressions of the form: E1;E2.

The pointer to the char ';' has to be increased before to evaluate

Originally committed as revision 25623 to svn://

4ddade62 10/08/2010 11:42 PM Stefano Sabatini

Install libavutil/opt.h, its API is public.

Fix issue #2265.

Originally committed as revision 25420 to svn://

6f74fb03 10/06/2010 01:26 AM Ramiro Polla

Check whether compiler supports xmm registers in asm clobber list

Originally committed as revision 25362 to svn://

3a1429ec 10/05/2010 08:44 AM Stefano Sabatini

Update av_cmp_q() documentation after r25338.

Originally committed as revision 25340 to svn://

59a3bf0e 10/05/2010 01:43 AM Michael Niedermayer

Add selftest code for av_cmp_q().

Originally committed as revision 25339 to svn://

dec11269 10/05/2010 01:43 AM Michael Niedermayer

Make av_cmp_q() work with infinities and NAN.

Originally committed as revision 25338 to svn://

6b4ed22f 10/04/2010 01:41 PM Stefano Sabatini

Make av_d2q() manage the case in which the value to convert is inf.

Originally committed as revision 25332 to svn://

9276bddd 10/04/2010 01:08 PM İsmail Dönmez

snowdsp: Explicitly state the operand sizes

Fixes compilation with clang's builtin assembler

Patch by İsmail Dönmez, ismail at namtrac dot org

Originally committed as revision 25331 to svn://

1405782c 10/02/2010 09:50 AM Stefano Sabatini

Avoid cast of double nan to int.
It may cause exceptions on some platform.

Originally committed as revision 25311 to svn://

0795b861 10/01/2010 01:55 PM Måns Rullgård

avassert: add missing #include <stdlib.h>

Originally committed as revision 25286 to svn://

f23ceeb8 10/01/2010 01:55 PM Måns Rullgård

avassert: prettify macro

Originally committed as revision 25285 to svn://

b64b4134 10/01/2010 01:55 PM Måns Rullgård

Rename libavutil/assert.h to avassert.h

This avoids conflicts with the system assert.h.

Originally committed as revision 25284 to svn://

8a47d90b 10/01/2010 12:00 PM Michael Niedermayer

Fix av_cmp_q() with negative denominators.

Originally committed as revision 25283 to svn://

c619572a 09/30/2010 10:52 PM Michael Niedermayer

Fix a typo in the nameing of av_assert0() in currently not compiled code.

Originally committed as revision 25279 to svn://

b926b628 09/30/2010 09:57 PM Michael Niedermayer

av_assert() system.
With this the developer can now choose if he wants an assert always enabled or at which
compile time assert level. This can thus replace the #define NDEBUG hacks

Originally committed as revision 25278 to svn://

584b8edb 09/29/2010 09:42 PM Stefano Sabatini

Add missing case for FF_OPT_TYPE_DOUBLE in av_opt_set_defaults2().

Originally committed as revision 25265 to svn://

c85eef4e 09/27/2010 10:09 PM Stefano Sabatini

Move av_set_options_string() from libavfilter to libavutil.

Originally committed as revision 25236 to svn://

372e2884 09/27/2010 04:23 PM Stefano Sabatini

Move av_get_token() from libavfilter to libavutil.

Originally committed as revision 25225 to svn://

be0e596a 09/27/2010 10:34 AM Stefano Sabatini

Simplify include, since opt.c is now in libavutil there is no need
to use the library path prefix for eval.h.

Originally committed as revision 25220 to svn://

8f1afd3b 09/27/2010 10:01 AM Stefano Sabatini

Cosmetics: apply misc style fixes.

Originally committed as revision 25219 to svn://

41f87daa 09/27/2010 12:30 AM Stefano Sabatini

Bump version and update APIchanges after r25210.

Originally committed as revision 25216 to svn://

32881771 09/26/2010 09:01 PM Måns Rullgård

ARM: change return type of AV_RN16() to unsigned

This prevents gcc inserting useless UXTH instructions, at least
in some cases.

Originally committed as revision 25212 to svn://

6ed04040 09/26/2010 02:25 PM Michael Niedermayer

Move AVOptions from libavcodec to libavutil

Originally committed as revision 25210 to svn://

d7cd001f 09/24/2010 04:18 PM Michael Niedermayer


Originally committed as revision 25178 to svn://

8a190533 09/24/2010 04:18 PM Michael Niedermayer

Cosmetic (rename detect_repeats to is_atty which matches the truth)

Originally committed as revision 25177 to svn://

1c1c80f0 09/24/2010 03:37 PM Michael Niedermayer

2nd try to fix av_log() repeated detection

Originally committed as revision 25174 to svn://

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

c157fe63 09/14/2010 12:17 AM Michael Niedermayer

Limit av_log repeat detection to terminals so as to avoid filling files with
lots of mess.

Originally committed as revision 25117 to svn://

4660143a 09/12/2010 10:00 PM Stefano Sabatini

Apply minor simplification in av_read_image_line().

Originally committed as revision 25112 to svn://

78b19cf0 09/12/2010 09:39 PM Måns Rullgård

pixdesc: indent

Originally committed as revision 25111 to svn://

9525243f 09/12/2010 09:39 PM Måns Rullgård

pixdesc: use 8-bit accesses when possible in av_read/write_image_line()

This fixes out of bounds accesses for big endian formats and should be
a little faster.

Originally committed as revision 25110 to svn://

4b9ac6de 09/12/2010 09:31 PM Stefano Sabatini

Cosmetics: use x ? y : z construct and merge intialization and
definition for the val variable in av_read_image_line(). Simplify.

Originally committed as revision 25109 to svn://

65d45cea 09/09/2010 07:40 PM Måns Rullgård

Add missing #include <string.h> in x86/cpu.c

Originally committed as revision 25088 to svn://

a3f0d2b9 09/09/2010 06:51 PM Måns Rullgård

Cache detected CPU flags

Originally committed as revision 25085 to svn://

9275438a 09/09/2010 06:51 PM Måns Rullgård

Clean up av_get_cpu_flag()

Instead of defining functions in per-arch header files included
by the main cpu.c, define them normally and call them from the
generic one.

Originally committed as revision 25084 to svn://

c6c98d08 09/08/2010 03:07 PM Stefano Sabatini

Move mm_support() from libavcodec to libavutil, make it a public
function and rename it to av_get_cpu_flags().

Originally committed as revision 25076 to svn://

e778e50f 09/06/2010 12:04 AM Stefano Sabatini

Sort AV_CPU_FLAG* by value.

Originally committed as revision 25047 to svn://

d593b4ed 09/06/2010 12:04 AM Stefano Sabatini

Fix typo.

Originally committed as revision 25046 to svn://

7160bb71 09/04/2010 09:59 AM Stefano Sabatini

Rename FF_MM_ symbols related to CPU features flags as AV_CPU_FLAG_
symbols, and move them from libavcodec/avcodec.h to libavutil/cpu.h.

Originally committed as revision 25040 to svn://

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

Add missing parentheses to AV_NE macro.

Originally committed as revision 24885 to svn://

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

Fix out-of-tree build

Originally committed as revision 24816 to svn://

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

fd3064b6 07/28/2010 12:08 PM Michael Niedermayer

Make sure "Last message repeated" is printed.

Originally committed as revision 24573 to svn://

44852477 07/22/2010 10:05 PM Stefano Sabatini

Add the M_PHI constant, contains an approximation of the golden ratio
irrational number.

Originally committed as revision 24439 to svn://

3fc548df 07/21/2010 12:37 PM Diego Pettenò

Make ff_inverse stay with libavutil, and optional copy it to libavcodec.

The ff_inverse table is used by FASTDIV macro, defined in libavutil, but up
to now the table was defined only in libavcodec.

After this change, the main copy of ff_inverse is part of libavutil (just...

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