summaryrefslogtreecommitdiff
path: root/libavutil/common.h
Commit message (Collapse)AuthorAge
* lavu: add AV_CEIL_RSHIFT and use it in various placesClément Bœsch2016-01-11
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* libavutil: move FFALIGN macro from common.h to macros.hJanne Grunau2015-12-14
| | | | | | | | | Include macros.h explicitly in common.h so that external code using FFALIGN does not break. It was already implicitly included through version.h. Include macros.h in lls.h and internal.h for FFALIGN. lls.h was including common.h only for FFALIGN and internal.h was missing the include for FFALIGN. `make checkheaders` did not catch it because it's an internal header.
* lavu: Drop deprecated av_reverse functionVittorio Giovara2015-08-28
| | | | Deprecated in 10/2012.
* libavutil: Add av_clip_intp2Peter Meerwald2015-02-21
| | | | | | | | | | | | | | | | | there already is a function, av_clip_uintp2() that clips a signed integer to an unsigned power-of-two range, i.e. 0,2^p-1 this patch adds a function av_clip_intp2() that clips a signed integer to a signed power-of-two range, i.e. -(2^p),(2^p-1) the new function can be used as a special case for av_clip(), e.g. av_clip(x, -8192, 8191) can be rewritten as av_clip_intp2(x, 13) there are ARM instructions, usat and ssat resp., which map nicely to these functions (see next patch) Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* Add missing #includes for *INT64_MAX and *INT64_CDiego Biurrun2013-11-23
|
* Use the avstring.h locale-independent character type functionsReimar Döffinger2013-03-07
| | | | | | Make sure the behavior does not change with the locale. Signed-off-by: Martin Storsjö <martin@martin.st>
* avutil: change GET_UTF8 to not use av_log2()Mans Rullgard2012-11-14
| | | | | | | This removes an inter-library dependency on ff_log2_tab causing linking errors in some configurations. Signed-off-by: Mans Rullgard <mans@mansr.com>
* avutil: remove inline av_log2 from public APIMans Rullgard2012-10-20
| | | | | | | | 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>
* Move av_reverse table to libavcodecDiego Biurrun2012-10-12
| | | | It is only used in that library.
* libavutil: add saturating addition functionsMans Rullgard2012-08-13
| | | | | | | Fixed-point audio codecs often use saturating arithmetic, and special instructions for these operations are common. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Add av_popcount64Daniel Verkamp2012-01-03
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* MK(BE)TAG: avoid undefined shiftsMans Rullgard2011-11-25
| | | | | | | | 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>
* doxygen: Consistently use '@' instead of '\' for Doxygen markup.Diego Biurrun2011-06-24
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Add av_clip_uintp2() functionMans Rullgard2011-05-13
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Force inlining of avutil common routinesJason Garrett-Glaser2011-02-17
| | | | | | 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.
* Add av_popcount() to libavutil/common.h and bump minor versionTomas Härdin2010-09-14
| | | | Originally committed as revision 25120 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add missing parentheses to AV_NE macro.Benoit Fouet2010-08-23
| | | | Originally committed as revision 24885 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix out-of-tree buildMåns Rullgård2010-08-17
| | | | Originally committed as revision 24816 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Define macro AV_NE() and use it in libavdevice.Stefano Sabatini2010-08-17
| | | | | | Help further refactoring. Originally committed as revision 24814 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Allow arch-overrides for all common.h clip and log2 functionsMåns Rullgård2010-07-07
| | | | Originally committed as revision 24087 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove macro duplication between common.h and intmath.hMåns Rullgård2010-07-07
| | | | Originally committed as revision 24086 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Improve GET_UTF{8,16} documentationMåns Rullgård2010-06-30
| | | | Originally committed as revision 23909 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix grammar errors in documentationMåns Rullgård2010-06-30
| | | | Originally committed as revision 23904 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add av_clip_int8(), used in the upcoming VP8 decoder.Ronald S. Bultje2010-06-22
| | | | Originally committed as revision 23713 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add missing parentheses in MKTAG and MKBETAG macros.Benoit Fouet2010-06-22
| | | | Originally committed as revision 23711 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reindent after r22968.Ronald S. Bultje2010-04-26
| | | | Originally committed as revision 22969 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Write clip-related decimal numbers into hex, where they make more sense.Ronald S. Bultje2010-04-26
| | | | Originally committed as revision 22968 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix broken 32-bit clipping, and write numbers in hex instead of decimal soRonald S. Bultje2010-04-26
| | | | | | | 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
* Move clipping of audio samples (for those codecs outputting float) from decoderRonald S. Bultje2010-04-21
| | | | | | to the audio conversion routines. Originally committed as revision 22937 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-20
| | | | | | | | 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
* Fix build on configurations without fast av_log2()Måns Rullgård2010-03-09
| | | | | | | 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
* cosmetics: indentMåns Rullgård2010-03-08
| | | | Originally committed as revision 22348 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Merge two adjacent ifdef blocksMåns Rullgård2010-03-08
| | | | Originally committed as revision 22347 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move gcc attribute macros to new header libavutil/attributes.hMåns Rullgård2010-03-08
| | | | Originally committed as revision 22346 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add PUT_UTF16() macro.Anton Khirnov2010-02-24
| | | | | | Patch by Anton Khirnov <wyskas gmail com>. Originally committed as revision 22030 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Optimise av_log2 with clz when availableMåns Rullgård2010-01-14
| | | | | | 10% faster flac decoding on x86 and ARM. Originally committed as revision 21217 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move ff_reverse in libavcodec to av_reverse in libavutil.Francesco Lavra2009-11-09
| | | | | | Patch by Francesco Lavra, francescolavra interfree it Originally committed as revision 20484 to svn://svn.ffmpeg.org/ffmpeg/trunk
* id3v2: Add support for UTF-16 encoding.Anton Khirnov2009-09-23
| | | | | | patch by Anton Khirnov, wyskas gmail com Originally committed as revision 20006 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add function to compute ceil(log2(x)).Thilo Borgmann2009-08-30
| | | | | | Patch by Thilo Borgmann <thilo.borgmann _at_ googlemail.com> Originally committed as revision 19747 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Introduce av_clip_uint16().Ramiro Polla2009-08-13
| | | | Originally committed as revision 19636 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Revert addition of '#undef av_always_inline' to config.h in the small case.Diego Biurrun2009-07-30
| | | | | | | 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
* Icc does not support attribute flatten, do not try to use it.Carl Eugen Hoyos2009-06-28
| | | | Originally committed as revision 19286 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Icc 11.1 does not support attributes force_align_arg_pointer, alloc_size and ↵Carl Eugen Hoyos2009-06-27
| | | | | | cold. Originally committed as revision 19282 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move ALIGN macro to libavutil/common.h and use it in various placesDavid Conrad2009-05-22
| | | | Originally committed as revision 18898 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Avoid warnings from AV_GCC_VERSION_AT_LEAST with some non-gcc compilersMåns Rullgård2009-02-22
| | | | Originally committed as revision 17508 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Silence one icc warning:Carl Eugen Hoyos2009-02-10
| | | | | | variable "..." is used before its value is set Originally committed as revision 17127 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use AV_GCC_VERSION_AT_LEAST instead of complicated __GNUC__ version check.Diego Biurrun2009-02-10
| | | | Originally committed as revision 17114 to svn://svn.ffmpeg.org/ffmpeg/trunk
* av_flatten to make the similarly named attribute available.Michael Niedermayer2009-02-09
| | | | Originally committed as revision 17105 to svn://svn.ffmpeg.org/ffmpeg/trunk
* av_uninit() to suppress false uninitialized warnings from gcc without ↵Michael Niedermayer2009-02-09
| | | | | | deoptimizing code. Originally committed as revision 17104 to svn://svn.ffmpeg.org/ffmpeg/trunk