Commit Graph

991 Commits

Author SHA1 Message Date
Michael Niedermayer
fd3064b65e Make sure "Last message repeated" is printed.
Originally committed as revision 24573 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-28 12:08:26 +00:00
Stefano Sabatini
448524777a Add the M_PHI constant, contains an approximation of the golden ratio
irrational number.

Originally committed as revision 24439 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-22 22:05:21 +00:00
Diego Pettenò
3fc548df28 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
like FASTDIV), but if CONFIG_SMALL is unset, then a different copy is made
available to libavcodec, to avoid the performance penalty of using an
external look up table.

Dynamic linking works, because the libraries are linked with -Bsymbolic, so
the local copy of the symbol has priority over the external; static linking
works because the table is on a standalone object file in both libraries,
so the linker is able to discard one of the two.

Tested on Linux/x86-64 and Mac OS X/x86-64.

Originally committed as revision 24383 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-21 12:37:37 +00:00
Carl Eugen Hoyos
eedc4ee5d8 Use attribute force_align_arg_pointer only on x86_32.
Originally committed as revision 24290 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-17 16:35:01 +00:00
Stefano Sabatini
617d56cafa Update lavu minor and add APIchanges entry after r24174 (add bswap.h
and intreadwrite.h API public interface).

Originally committed as revision 24190 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-11 11:49:44 +00:00
Måns Rullgård
b91d08f4a3 Install bswap.h and intreadwrite.h
Originally committed as revision 24174 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-10 22:22:07 +00:00
Måns Rullgård
8681669272 Make intreadwrite.h installation-safe
Originally committed as revision 24173 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-10 22:22:03 +00:00
Måns Rullgård
1fc81e73dd Make bswap.h safe to install as public API
Originally committed as revision 24171 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-10 22:21:55 +00:00
Måns Rullgård
8fc0162ac4 Add av_ prefix to bswap macros
Originally committed as revision 24170 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-10 22:12:30 +00:00
Måns Rullgård
e6b22522c9 bswap: change ME to NE in macro names
Other parts of FFmpeg use NE (native endian) rather than ME (machine).
This makes it consistent.

Originally committed as revision 24169 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-10 22:09:01 +00:00
Måns Rullgård
7918375f88 intreadwrite: common.h is not needed, attributes.h is sufficient
Originally committed as revision 24155 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-10 00:40:59 +00:00
Måns Rullgård
f4d80ecb22 lfg: add missing includes
Originally committed as revision 24154 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-10 00:40:55 +00:00
Måns Rullgård
47bfd50a4b pixdesc: add missing includes
Originally committed as revision 24153 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-10 00:40:53 +00:00
Stefano Sabatini
9699a96a80 Bump minor after read/write_line() to av_read/write_image_line()
rename, done in r24101.

Originally committed as revision 24128 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-08 22:13:32 +00:00
Stefano Sabatini
ee4355808c Reindent after r24101.
Originally committed as revision 24126 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-08 22:05:33 +00:00
Michael Niedermayer
6a522c49c2 Fix infinite loop with clock() returning (clock_t)-1.
Originally committed as revision 24116 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-08 18:13:31 +00:00
Michael Niedermayer
b65c1ccfe1 Change i to unsigned in get_generic_seed().
This is clearer than comparing against an unsigned number to force an unsigned
comparison that we need.

Originally committed as revision 24114 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-08 17:49:39 +00:00
Diego Biurrun
e51f04968e Restore array sizes in doxygen parameter names.
Originally committed as revision 24108 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-08 13:35:46 +00:00
Michael Niedermayer
c84d5aa74f get_generic_seed() for the cases without /dev/random and AV_READ_TIME
Originally committed as revision 24102 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-07 23:47:48 +00:00
Stefano Sabatini
ce1cd1cba2 Rename read/write_line() to av_read/write_image_line().
The old names were not av_ prefixed, and they were causing linking
failure on many platforms.  The new names are also more descriptive.

Patch by Stefano Sabatini.

Originally committed as revision 24101 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-07 23:41:42 +00:00
Måns Rullgård
9077e29ecc ARM: optimised integer clip functions
Originally committed as revision 24089 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-07 17:27:51 +00:00
Måns Rullgård
edd7fa82d7 ARM: intmath.h cosmetics
Originally committed as revision 24088 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-07 17:27:48 +00:00
Måns Rullgård
216b43aed2 Allow arch-overrides for all common.h clip and log2 functions
Originally committed as revision 24087 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-07 17:27:45 +00:00
Måns Rullgård
a955b59658 Remove macro duplication between common.h and intmath.h
Originally committed as revision 24086 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-07 17:27:43 +00:00
Måns Rullgård
2e874c7704 intmath: whitespace cosmetics
Originally committed as revision 24085 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-07 17:27:39 +00:00
Måns Rullgård
c184bb44db aes: fix array index out of bounds warning
Originally committed as revision 24048 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-04 20:38:46 +00:00
Eli Friedman
b7cdddcd1f Silence "comparison of unsigned expression >= 0 is always true" warning.
Patch by Eli Friedman, eli d friedman a gmail

Originally committed as revision 24022 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-03 17:06:12 +00:00
Reimar Döffinger
19c039ee3d Make mix function more readable.
Compiler output unchanged with gcc 4.4.

Originally committed as revision 24006 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-02 17:33:45 +00:00
Ramiro Polla
08b317a238 avutil: bump minor version for r23985 (install lfg.h)
Originally committed as revision 23997 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-02 14:23:17 +00:00
Ramiro Polla
89eec74a52 avutil: install lfg.h
Originally committed as revision 23985 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-02 12:12:06 +00:00
Diego Biurrun
e669590a0a Fix parameter name and position in av_crc_init Doxygen documentation.
Originally committed as revision 23981 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-02 11:49:17 +00:00
Diego Biurrun
3fa7626863 Avoid square brackets in Doxygen comments; Doxygen chokes on them.
Originally committed as revision 23979 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-02 11:44:58 +00:00
Diego Biurrun
eee9119ad1 Add parameter names to av_log/av_vlog function declarations.
Doxygen gets confused without an explicit parameter name.

Originally committed as revision 23972 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-02 11:03:23 +00:00
Diego Biurrun
9a58234fea Fix misspelled parameter names in Doxygen documentation.
This fixes one Doxygen warning each.

Originally committed as revision 23970 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-02 10:49:29 +00:00
Stefano Sabatini
2b4abbd6f5 Move colorspace.h from libavcodec to libavutil.
Avoid a compile-time dependency of the pad filter on libavcodec.

Originally committed as revision 23940 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-01 18:49:44 +00:00
Måns Rullgård
16bfbfd078 random_seed: simplify
Originally committed as revision 23932 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-01 11:43:30 +00:00
Måns Rullgård
9958096ea2 Reindent
Originally committed as revision 23931 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-01 11:40:54 +00:00
Måns Rullgård
b7fa5c5abb random_seed: allow to block on /dev/random
If both /dev/random and /dev/urandom failed to return data, an
uninitialised value might be returned.  Since most systems have a
non-blocking /dev/urandom or have /dev/random with similar properties,
the chance of blocking is minimal, and the alternative of returning
non-random data is worse.

Originally committed as revision 23930 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-01 11:40:50 +00:00
Måns Rullgård
cae70f99a3 Improve FF_SYMVER documentation
Originally committed as revision 23911 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-30 20:09:55 +00:00
Måns Rullgård
2eaf7e49c7 Improve av_strerror() documentation
Originally committed as revision 23910 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-30 20:09:52 +00:00
Måns Rullgård
c2a5b4731b Improve GET_UTF{8,16} documentation
Originally committed as revision 23909 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-30 20:09:48 +00:00
Måns Rullgård
12633044b1 aes: improve av_aes_crypt() documentation
Originally committed as revision 23908 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-30 20:09:44 +00:00
Måns Rullgård
8201261996 adler32: add API documentation
Originally committed as revision 23907 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-30 20:09:40 +00:00
Måns Rullgård
ffd31cfef3 base64: improve documentation
Originally committed as revision 23905 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-30 20:09:32 +00:00
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
38e23c88db Make av_get_random_seed() non-blocking
Attempt to read from /dev/urandom and /dev/random with O_NONBLOCK set.
If neither succeeds, proceed with fallbacks.

Originally committed as revision 23903 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-30 10:38:04 +00:00
Reimar Döffinger
dd025f25da Change AES code to be strict-aliasing-safe.
Makes it give correct results with e.g. gcc 4.4.
For unknown reasons the generate asm code also changes
on e.g. gcc 4.3, making the code a bit larger but also
a bit faster.

Originally committed as revision 23896 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-30 04:50:35 +00:00
Reimar Döffinger
2ad4a3bc78 Pass subshift an argument of the proper type.
No changes in generated code.

Originally committed as revision 23856 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-28 17:19:55 +00:00
Reimar Döffinger
17c78b087a Use a consistent type for multbl array function parameters.
Originally committed as revision 23855 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-28 17:11:48 +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