Mans Rullgard
8c0a3d5fe0
avutil: remove inline av_log2 from public API
...
This removes inline av_log2 and av_log2_16bit from the public API,
instead exporting them as regular functions. In-tree code still
gets the inline and otherwise optimised variants.
Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years ago
Diego Biurrun
d5c62122a7
Move av_reverse table to libavcodec
...
It is only used in that library.
12 years ago
Mans Rullgard
6c4975eaaf
libavutil: add saturating addition functions
...
Fixed-point audio codecs often use saturating arithmetic, and
special instructions for these operations are common.
Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years ago
Michael Bradshaw
b0e1557fe7
Fixed warnings about int64 to int32 conversion
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
f16c950f32
lavu: document av_reverse.
13 years ago
Daniel Verkamp
b73ec05473
Add av_popcount64
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years ago
Mans Rullgard
6b34fbba9b
MK(BE)TAG: avoid undefined shifts
...
Casting the left-most byte to unsigned avoids an undefined
result of the shift by 24 if bit 7 is set. This affects
the rm demuxer.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Diego Biurrun
adbfc605f6
doxygen: Consistently use '@' instead of '\' for Doxygen markup.
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Mans Rullgard
1550f45a89
Add av_clip_uintp2() function
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Michael Niedermayer
5192788321
avutil: add divide & modulo that round like unsigned ones do that is down.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Jason Garrett-Glaser
545dc699f8
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.
(cherry picked from commit eb3755a5aa
)
14 years ago
Jason Garrett-Glaser
eb3755a5aa
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.
14 years ago
Tomas Härdin
bc6f0af289
Add av_popcount() to libavutil/common.h and bump minor version
...
Originally committed as revision 25120 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Benoit Fouet
573af7545e
Add missing parentheses to AV_NE macro.
...
Originally committed as revision 24885 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Måns Rullgård
6a36facc3d
Fix out-of-tree build
...
Originally committed as revision 24816 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Stefano Sabatini
4f2d2e4ed9
Define macro AV_NE() and use it in libavdevice.
...
Help further refactoring.
Originally committed as revision 24814 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
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
15 years ago
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
15 years ago
Måns Rullgård
c2a5b4731b
Improve GET_UTF{8,16} documentation
...
Originally committed as revision 23909 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
49bd8e4b84
Fix grammar errors in documentation
...
Originally committed as revision 23904 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ronald S. Bultje
45a1b86a05
Add av_clip_int8(), used in the upcoming VP8 decoder.
...
Originally committed as revision 23713 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Benoit Fouet
1c7c0e2d40
Add missing parentheses in MKTAG and MKBETAG macros.
...
Originally committed as revision 23711 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ronald S. Bultje
90bc36b063
Reindent after r22968.
...
Originally committed as revision 22969 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ronald S. Bultje
ad6408960b
Write clip-related decimal numbers into hex, where they make more sense.
...
Originally committed as revision 22968 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ronald S. Bultje
2d0525c27c
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
15 years ago
Ronald S. Bultje
b1078e9fe6
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
15 years ago
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
15 years ago
Måns Rullgård
b90b1b4c3c
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
15 years ago
Måns Rullgård
3369888aa5
cosmetics: indent
...
Originally committed as revision 22348 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
2acb5e10b9
Merge two adjacent ifdef blocks
...
Originally committed as revision 22347 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
2791730dbf
Move gcc attribute macros to new header libavutil/attributes.h
...
Originally committed as revision 22346 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Anton Khirnov
ae529ddb32
Add PUT_UTF16() macro.
...
Patch by Anton Khirnov <wyskas gmail com>.
Originally committed as revision 22030 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
544f5a922f
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
15 years ago
Francesco Lavra
91cc5d3767
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
15 years ago
Anton Khirnov
20c6837880
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
15 years ago
Thilo Borgmann
c6dbbc4576
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
15 years ago
Ramiro Polla
f51fb686de
Introduce av_clip_uint16().
...
Originally committed as revision 19636 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
75af07495a
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
16 years ago
Carl Eugen Hoyos
a3a55b7848
Icc does not support attribute flatten, do not try to use it.
...
Originally committed as revision 19286 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
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
16 years ago
David Conrad
ef516f7377
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
16 years ago
Måns Rullgård
03bc0f3744
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
16 years ago
Carl Eugen Hoyos
0dd8966638
Silence one icc warning:
...
variable "..." is used before its value is set
Originally committed as revision 17127 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
b7d3a8c13f
Use AV_GCC_VERSION_AT_LEAST instead of complicated __GNUC__ version check.
...
Originally committed as revision 17114 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
3b49f69077
av_flatten to make the similarly named attribute available.
...
Originally committed as revision 17105 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
51066987cf
av_uninit() to suppress false uninitialized warnings from gcc without deoptimizing code.
...
Originally committed as revision 17104 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
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
16 years ago
Diego Biurrun
89c9ff504b
spelling/grammar/consistency review part I
...
Originally committed as revision 16840 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
8076c4731f
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
16 years ago