summaryrefslogtreecommitdiffstats
path: root/libavutil
Commit message (Collapse)AuthorAgeFilesLines
* pixfmt: fix YUV422/444 wrong endian commentCan Wu2011-06-291-6/+6
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* build: include sub-makefiles using full path instead of symlinksMans Rullgard2011-06-281-1/+1
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* avutil: Remove unused arbitrary precision integer code.Diego Biurrun2011-06-283-312/+0
|
* build: Remove redundant config.mak includes from subdirectory Makefiles.Diego Biurrun2011-06-251-2/+0
| | | | | Calling Make from subdirectories is not supported and config.mak has multiple inclusion guards anyway, so the top-level include is enough.
* doxygen: Consistently use '@' instead of '\' for Doxygen markup.Diego Biurrun2011-06-246-51/+51
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Use av_printf_format to check the usage of printf style functionsMartin Storsjö2011-06-232-6/+4
| | | | | | | | This helps catching cases where the format string doesn't match what is passed in, or injection bugs where user data is passed in as format string. Signed-off-by: Martin Storsjö <martin@martin.st>
* Add av_printf_format, for marking printf style format strings and their ↵Martin Storsjö2011-06-232-1/+3
| | | | | | parameters Signed-off-by: Martin Storsjö <martin@martin.st>
* ARM: allow building in Thumb2 modeMans Rullgard2011-06-231-0/+2
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* intreadwrite.h: fix AV_RL32/AV_RB32 signedness.Uoti Urpala2011-06-161-10/+10
| | | | | | | | | The output type of the AV_RL32/AV_RB32 macros was signed int. The resulting overflow broke at least some ASF streams with large timestamps. Fix by adding a cast to uint32_t. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Add minor bumps and APIChanges entries for lavf private options.Anton Khirnov2011-06-161-1/+1
|
* dict: add AV_DICT_APPEND flag.Anton Khirnov2011-06-162-1/+14
|
* AVOptions: add av_opt_find() as a replacement for av_find_opt.Anton Khirnov2011-06-164-5/+66
|
* AVOptions: add av_opt_set_dict() mapping a dictionary struct to a context.Anton Khirnov2011-06-162-0/+39
| | | | This way the caller can pass all the options in one nice package.
* libavutil/swscale: YUV444P10/YUV444P9 support.Ronald S. Bultje2011-06-102-0/+52
| | | | | | | Also add missing glue code for recently added YUV422P10 formats to swscale. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avoptions: Add an av_opt_flag_is_set function for inspecting flag fieldsMartin Storsjö2011-06-103-1/+21
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Move metadata API from lavf to lavu.Anton Khirnov2011-06-085-1/+197
| | | | | | Rename it to AVDictionary, since it will be used as such. Tags documentation and metadata conversion API is lavf-specific, so remains there.
* samplefmt: add av_get_bytes_per_sample()Stefano Sabatini2011-06-073-4/+25
| | | | | | | | | Deprecate av_get_bits_per_sample_fmt(), which was a misnamed function. For the moment we don't have sample formats with a non-integer number of bytes, in that case we may need to create a new av_get_bits_per_sample() function. In the meanwhile we prefer to adopt this variant, since avoids divisions by 8 all over the place.
* inverse.c: Replace unnecessary intmath.h header by necessary stdint.h.Diego Biurrun2011-06-071-1/+1
|
* Drop unnecessary directory prefixes from #include directives.Diego Biurrun2011-06-076-10/+11
|
* Remove unnecessary LIBAVFORMAT_BUILD #ifdef.Diego Biurrun2011-06-051-2/+0
|
* AVOptions: add av_opt_free convenience function.Anton Khirnov2011-06-053-1/+14
|
* Fix build of eval-test programMans Rullgard2011-06-051-1/+1
| | | | | | eval.c has moved to libavutil, move the TESTPROGS entry too. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Fix error check in av_file_map()Mans Rullgard2011-06-041-1/+1
| | | | | | On failure, mmap() returns MAP_FAILED, which may or may not be -1. Signed-off-by: Mans Rullgard <mans@mansr.com>
* ARM: simplify inline asm with 64-bit operandsMans Rullgard2011-05-301-9/+8
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* ARM: improve FASTDIV asmMans Rullgard2011-05-281-6/+6
| | | | | | This uses one register less. Also add missing "cc" clobber. Signed-off-by: Mans Rullgard <mans@mansr.com>
* lavu: add av_get_pix_fmt_name() convenience functionStefano Sabatini2011-05-283-1/+16
| | | | | | Also deprecate avcodec_get_pix_fmt_name() in its favor. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* ARM: add ARMv6 optimised av_clip_uintp2Mans Rullgard2011-05-261-0/+9
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* ARM: remove volatile from asm statements in libavutil/intmathMans Rullgard2011-05-261-16/+16
| | | | | | | The volatile qualifiers are not needed on these statements as their effects are fully specified by constraints. Signed-off-by: Mans Rullgard <mans@mansr.com>
* ARM: fix av_clipl_int32_arm()Mans Rullgard2011-05-261-0/+1
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* AVOptions: set string default values.Anton Khirnov2011-05-261-1/+3
|
* avoptions: Return explicitly NAN or {0,0} if the option isn't foundMartin Storsjö2011-05-251-2/+2
| | | | | | | | | | This actually matches what av_get_double did earlier, the 0.0/0.0 division was intentional, for producing NAN. Still keeping the check for the return value from av_get_number, for clarity. Signed-off-by: Martin Storsjö <martin@martin.st>
* Move emms_c() from libavcodec to libavutil.Ronald S. Bultje2011-05-241-0/+14
|
* avoptions: Check the return value from av_get_numberMartin Storsjö2011-05-221-3/+6
| | | | | | | This avoids doing a division by zero if the option wasn't found, or wasn't an option of an appropriate type. Signed-off-by: Martin Storsjö <martin@martin.st>
* multiple inclusion guard cleanupDiego Biurrun2011-05-212-2/+2
| | | | | Add missing multiple inclusion guards; clean up #endif comments; add missing library prefixes; keep guard names consistent.
* Add av_clip_uintp2() functionMans Rullgard2011-05-131-0/+15
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* configure: Do not unconditionally add -D_POSIX_C_SOURCE to CPPFLAGS.Diego Biurrun2011-05-121-2/+0
| | | | | | | | | | | | | | | | Adding _POSIX_C_SOURCE to CPPFLAGS globally produces all sorts of problems since it causes certain system functions to be hidden on some (BSD) systems. The solution is to only add the flag on systems that really require it, i.e. glibc-based ones. This change makes BSD systems compile out-of-the-box without the need for adding specific flags manually. It also allows dropping a number of flags set manually on a file-per-file basis, but were only present to work around breakage introduced by the presence of _POSIX_C_SOURCE. Also add _XOPEN_SOURCE to CPPFLAGS for glibc systems. We use XSI extensions in several places already, so it is preferable to define it globally instead of littering source files with individual #defines only needed for glibc.
* swscale: fix YUV420P 9/10bit support.Ronald S. Bultje2011-05-111-2/+2
| | | | | | | Fix handling of input if not in native endianness, and add support for 9/10-bit output. This allows us to force endianness of YUV420P 9/10bit in the H264/10bit fate tests, which should fix them on big-endian systems.
* swscale: extend YUV422p support to 10bits depthBaptiste Coudurier2011-05-112-0/+26
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Remove unused softfloat implementation.Diego Biurrun2011-05-113-199/+1
| | | | | | The softfloat functionality is unused, not installed and incomplete. On platforms without floating point units, the compiler provides a softfloat implementation so there is no point in carrying this code around locally.
* AVOptions: make default_val a union, as proposed in AVOption2.Anton Khirnov2011-05-102-58/+11
| | | | This breaks API and ABI.
* Add pixel formats for 9- and 10-bit yuv420p.Oskar Arvidsson2011-05-102-0/+52
| | | | | | | | Also add support for these formats in libswscale. Needed for high bit depth h264 decoding. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* log: Fix an oob array read.Alex Converse2011-05-081-1/+1
|
* Ban strncpy() it's too easy to misuse.Alex Converse2011-05-081-0/+2
|
* Replace strncpy() with av_strlcpy().Alex Converse2011-05-031-1/+2
|
* Fix races in default av_log handlerReinhard Tartler2011-04-291-3/+4
| | | | | | Prevent competing threads from overwriting (shared) buffers. Original patch by: Michael Niedermayer <michaelni@gmx.at>
* bswap.h: Remove disabled code.Diego Biurrun2011-04-291-6/+0
|
* Eliminate pointless '#if 1' statements without matching '#else'.Diego Biurrun2011-04-261-2/+1
|
* Increase alignment of av_malloc() as needed by AVX ASM.Vitor Sessak2011-04-261-9/+7
| | | | Signed-off-by: Reinhard Tartler <siretart@tauware.de>
* lavc: deprecate FF_*_TYPE macros in favor of AV_PICTURE_TYPE_* enumsStefano Sabatini2011-04-262-1/+34
| | | | | | | | | | | | Also deprecate av_get_pict_type_char() in favor of av_get_picture_type_char(). The new enum and av_get_picture_type_char() are defined in libavutil. This allows the use in libavfilter without the need to link against libavcodec. Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* bswap: use native types for av_bwap16().Jason Garrett-Glaser2011-04-221-2/+2
| | | | | | | | | | This prevents a call to bytestream_get_be16() using a movzwl both before and after the ror instruction, which is obviously inefficient. Arm uses the same trick also. Sintel decoding goes from (avg+SD) 9.856 +/- 0.003 to 9.797 +/- 0.003 sec. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
OpenPOWER on IntegriCloud