summaryrefslogtreecommitdiff
path: root/libavutil/common.h
Commit message (Collapse)AuthorAgeFilesLines
* Fixed warnings about int64 to int32 conversionMichael Bradshaw2012-05-251-2/+2
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavu: document av_reverse.Nicolas George2012-02-221-0/+3
|
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-01-041-0/+13
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: fate: add dxtory test adx_parser: rewrite. adxdec: Validate channel count to fix a division by zero. adxdec: Do not require extradata. cmdutils: K&R reformatting cosmetics alacdec: implement the 2-pass prediction type. alacenc: implement the 2-pass prediction type. alacenc: do not generate invalid multi-channel ALAC files alacdec: fill in missing or guessed info about the extradata format. utvideo: proper median prediction for interlaced videos lavu: bump lavu minor for av_popcount64 dca: K&R formatting cosmetics dct: K&R formatting cosmetics lavf: flush decoders in avformat_find_stream_info(). win32: detect number of CPUs using affinity Add av_popcount64 snow: Restore three mistakenly removed casts. Conflicts: cmdutils.c doc/APIchanges libavcodec/adx_parser.c libavcodec/adxdec.c libavcodec/alacenc.c libavutil/avutil.h tests/fate/screen.mak Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Add av_popcount64Daniel Verkamp2012-01-031-0/+13
| | | | | | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-11-261-2/+2
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: swscale: Readd #define _SVID_SOURCE Fix av_get_channel_layout_string() for positions >31 configure: Store vda lib flags in extralibs instead of ldflags Make channel layout masks unsigned dca: ARMv6 optimised decode_blockcode() nullenc: drop AVFMT_RAWPICTURE from the flags frame-mt: return consumed packet size in ff_thread_decode_frame aacdec: add more fate tests covering SBR and PS MK(BE)TAG: avoid undefined shifts Conflicts: configure libavcodec/arm/dca.h libavcodec/dca.c libavcodec/mlp_parser.c libavcodec/version.h libavfilter/asrc_anullsrc.c libavfilter/avfilter.c libavfilter/avfilter.h libavfilter/defaults.c libavutil/audioconvert.c libavutil/avutil.h libswscale/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * MK(BE)TAG: avoid undefined shiftsMans Rullgard2011-11-251-2/+2
| | | | | | | | | | | | | | | | 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>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-06-241-10/+10
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: doxygen: Consistently use '@' instead of '\' for Doxygen markup. Use av_printf_format to check the usage of printf style functions Add av_printf_format, for marking printf style format strings and their parameters ARM: enable thumb for Cortex-M* CPUs nsvdec: Propagate error values instead of returning 0 in nsv_read_header(). build: remove SRC_PATH_BARE variable build: move basic rules and variables to main Makefile build: move special targets to end of main Makefile lavdev: improve feedback in case of invalid frame rate/size vfwcap: prefer "framerate_q" over "fps" in vfw_read_header() v4l2: prefer "framerate_q" over "fps" in v4l2_set_parameters() fbdev: prefer "framerate_q" over "fps" in device context bktr: prefer "framerate" over "fps" for grab_read_header() ALSA: implement channel layout for playback. alsa: support unsigned variants of already supported signed formats. alsa: add support for more formats. ARM: allow building in Thumb2 mode Conflicts: common.mak doc/APIchanges libavcodec/vdpau.h libavdevice/alsa-audio-common.c libavdevice/fbdev.c libavdevice/libdc1394.c libavutil/avutil.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * doxygen: Consistently use '@' instead of '\' for Doxygen markup.Diego Biurrun2011-06-241-10/+10
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | Merge remote branch 'qatar/master'Michael Niedermayer2011-05-141-0/+15
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | * qatar/master: swscale: properly inline bits/endianness in yuv2yuvX16inC(). (We didnt pull the bug) swscale: fix clipping of 9/10bit YUV420P. Add av_clip_uintp2() function (our patch / duplicate) dfa: fix buffer overflow checks to avoid integer overflows. (our patch / duplicate) movenc: always write esds descriptor length using 4 bytes. (our patch / duplicate) ffmpeg: use parse_number_and_die() when it makes sense (No thanks) ffmpeg: get rid of the 'q' key schizofrenia Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Add av_clip_uintp2() functionMans Rullgard2011-05-131-0/+15
| | | | | | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
| * Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
| | | | | | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
| * Force inlining of avutil common routinesJason Garrett-Glaser2011-02-171-11/+11
| | | | | | | | | | | | 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.
* | avutil: add divide & modulo that round like unsigned ones do that is down.Michael Niedermayer2011-05-091-0/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Force inlining of avutil common routinesJason Garrett-Glaser2011-02-181-11/+11
|/ | | | | | | 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 eb3755a5aa65da685d81399cfae4bd35e4a178b6)
* Add av_popcount() to libavutil/common.h and bump minor versionTomas Härdin2010-09-141-0/+17
| | | | Originally committed as revision 25120 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add missing parentheses to AV_NE macro.Benoit Fouet2010-08-231-2/+2
| | | | Originally committed as revision 24885 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix out-of-tree buildMåns Rullgård2010-08-171-1/+1
| | | | Originally committed as revision 24816 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Define macro AV_NE() and use it in libavdevice.Stefano Sabatini2010-08-171-0/+7
| | | | | | 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-071-8/+32
| | | | 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-071-6/+14
| | | | Originally committed as revision 24086 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Improve GET_UTF{8,16} documentationMåns Rullgård2010-06-301-23/+18
| | | | Originally committed as revision 23909 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix grammar errors in documentationMåns Rullgård2010-06-301-12/+12
| | | | 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-221-0/+11
| | | | Originally committed as revision 23713 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add missing parentheses in MKTAG and MKBETAG macros.Benoit Fouet2010-06-221-2/+2
| | | | Originally committed as revision 23711 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reindent after r22968.Ronald S. Bultje2010-04-261-4/+4
| | | | 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-261-3/+3
| | | | 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-261-1/+1
| | | | | | | 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-211-0/+11
| | | | | | 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-201-1/+1
| | | | | | | | 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-091-10/+13
| | | | | | | 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-081-1/+1
| | | | Originally committed as revision 22348 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Merge two adjacent ifdef blocksMåns Rullgård2010-03-081-3/+0
| | | | 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-081-78/+1
| | | | Originally committed as revision 22346 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add PUT_UTF16() macro.Anton Khirnov2010-02-241-0/+30
| | | | | | 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-141-0/+8
| | | | | | 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-091-0/+2
| | | | | | 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-231-0/+24
| | | | | | 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-301-0/+9
| | | | | | 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-131-0/+11
| | | | 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-301-1/+4
| | | | | | | 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-281-1/+1
| | | | 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-271-1/+1
| | | | | | 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-221-0/+1
| | | | 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-221-1/+5
| | | | Originally committed as revision 17508 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Silence one icc warning:Carl Eugen Hoyos2009-02-101-1/+1
| | | | | | 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-101-1/+1
| | | | Originally committed as revision 17114 to svn://svn.ffmpeg.org/ffmpeg/trunk
* av_flatten to make the similarly named attribute available.Michael Niedermayer2009-02-091-0/+8
| | | | 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-091-0/+8
| | | | | | deoptimizing code. Originally committed as revision 17104 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full internal pathname in doxygen @file directives.Diego Biurrun2009-02-011-1/+1
| | | | | | | 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
* spelling/grammar/consistency review part IDiego Biurrun2009-01-281-12/+12
| | | | Originally committed as revision 16840 to svn://svn.ffmpeg.org/ffmpeg/trunk