summaryrefslogtreecommitdiff
path: root/libavutil
Commit message (Collapse)AuthorAge
* x86inc: Clear __SECT__Timothy Gu2015-05-28
| | | | | | | | | | | | | | | | | | | | | | | | | This commit silences warning(s) like: libavcodec/x86/fft.asm:93: warning: section flags ignored on section redeclaration The cause of this warning is that because `struc` and `endstruc` attempts to revert to the previous section state [1]. The section state is stored in the macro __SECT__, defined by x86inc.asm to be `.note.GNU-stack ...`, through the `SECTION` directive [2]. Thus, the `.note.GNU-stack` section is defined twice (once in x86inc.asm, once during `endstruc`), causing the warning. That is the first part of the commit: using the primitive `[section]` format for .note.GNU-stack etc., which does not update `__SECT__` [2]. That fixes only half of the problem. Even without any `SECTION` directives, `__SECT__` is predefined as `.text`, which conflicting with the later `SECTION_TEXT` (which expands to `.text align=16`). [1]: http://www.nasm.us/doc/nasmdoc6.html#section-6.4 [2]: http://www.nasm.us/doc/nasmdoc6.html#section-6.3 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* x86/cpu: add AV_CPU_FLAG_AVXSLOW flagJames Almer2015-05-27
| | | | | Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
* avutil: Add av_q2intfloat()Michael Niedermayer2015-05-26
| | | | | | | This function allows writing AVRationals as IEEE floats without the need of platform dependant float operations Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit 'd8039ef8d221ea273aa4f1e62e5df21bf618c772'Michael Niedermayer2015-05-25
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'd8039ef8d221ea273aa4f1e62e5df21bf618c772': D3D11va: add a Direct3D11 video decoder similar to DXVA2 Conflicts: Changelog configure libavcodec/Makefile libavcodec/allcodecs.c libavcodec/dxva2_vc1.c libavcodec/version.h libavutil/pixdesc.c libavutil/pixfmt.h libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * D3D11va: add a Direct3D11 video decoder similar to DXVA2Steve Lhomme2015-05-25
| | | | | | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | avutil/pixfmt: Clarify DV example comments for AVChromaLocationTim Nicholson2015-05-22
| | | | | | | | | | Signed-off-by: Tim Nicholson <tim.nicholson@bbc.co.uk> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/pixfmt: s/luma sample positions/horizontal luma sample positions/Michael Niedermayer2015-05-21
| | | | | | | | | | | | Better to be explicit before someone thinks this could be the time axis ... Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/pixfmt: make luma sample positions even more explicit in the ↵Michael Niedermayer2015-05-21
| | | | | | | | | | | | AVChromaLocation ASCII art Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/pixfmt: Clarify mpeg example comments for AVChromaLocationMichael Niedermayer2015-05-21
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/pixfmt: clarify chroma location text further, as "first" is ambigousMichael Niedermayer2015-05-21
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/pixfmt: Clarify that the ASCII art describes the location of the ↵Michael Niedermayer2015-05-21
| | | | | | | | | | | | first chroma sample of AVChromaLocation Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/pixfmt: Improve ascii art showing the meaning of the AVChromaLocation ↵Michael Niedermayer2015-05-19
| | | | | | | | | | | | values Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavutil/softfloat: Add test case for av_add_sfNedeljko Babic2015-05-14
| | | | | | | | | | | | | | | | | | | | | | | | | | Recently normalization (av_normalize_sf) of output was added to av_add_sf. This normalization is used for better precision for small values and the purpose of this (quite simple) test case is to test difference between double and softfloat. The values used are tailored to maximally highlighte problem with precison when normalization is not used. Signed-off-by: Nedeljko Babic <nedeljko.babic@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | imgutils: initialize palette padding bytes in av_image_allocAndreas Cadhalpun2015-05-13
| | | | | | | | | | | | | | | | | | | | | | | | | | av_image_fill_pointers always aligns the palette, but the padding bytes don't (and can't) get initialized in av_image_copy. Thus initialize them in av_image_alloc. This fixes 'Syscall param write(buf) points to uninitialised byte(s)' valgrind warnings. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/avstring: Use size_t in av_strlcatf()Michael Niedermayer2015-05-11
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/dict: Use size_t for appending stringsMichael Niedermayer2015-05-10
| | | | | | | | | | | | the string length is not constrained to INT_MAX Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavutil/mem: use size_t for the length in av_strdup()Michael Niedermayer2015-05-10
| | | | | | | | | | | | the string length is not constrained to INT_MAX Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for HEVC uni copy, uni ↵Shivraj Patil2015-05-07
| | | | | | | | | | | | | | | | horizontal and uni vertical mc functions Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com> Reviewed-by: Nedeljko Babic <Nedeljko.Babic@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | ripemd: move ripemd{256, 320} into separate functionsJames Almer2015-05-07
| | | | | | | | | | | | | | | | | | | | | | | | | | This allows the removal of a few branches. Before: lavu RIPEMD-160 size: 1048576 runs: 1024 time: 7.052 +- 0.010 After: lavu RIPEMD-160 size: 1048576 runs: 1024 time: 6.865 +- 0.015 Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavu: add yuv440p10/12 pixfmts.Ronald S. Bultje2015-05-06
| |
* | avutil/internal: Suppress empty body warning from emms_c()Michael Niedermayer2015-05-06
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/opt: Avoid division by 0Michael Niedermayer2015-05-03
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/cast5: Make iv array staticMichael Niedermayer2015-05-02
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/cast5: Mark key_bits as constMichael Niedermayer2015-05-02
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for H264 lpf and ↵Shivraj Patil2015-05-01
| | | | | | | | | | | | | | weight/biweight functions Reviewed-by: Nedeljko Babic <Nedeljko.Babic@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/softfloat_tables: add missing stdint.h includeJames Almer2015-04-30
| | | | | | | | | | | | Fixes make checkheaders Signed-off-by: James Almer <jamrial@gmail.com>
* | libavutil/softfloat: Add functions.Nedeljko Babic2015-04-30
| | | | | | | | | | | | | | Functions av_gt_sf, av_sqrt_sf and av_sincos_sf added to softfloat Signed-off-by: Nedeljko Babic <nedeljko.babic@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavutil/softfloat: Added av_normalize_sf in av_add_sfNedeljko Babic2015-04-30
| | | | | | | | | | | | | | | | This will normalize sums for which mantissa is smaller than the lower boundary (needed for implementation of fixed point aac decoder). Signed-off-by: Nedeljko Babic <nedeljko.babic@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavutil/softfloat: exponent adjusted for aac fixed point decNedeljko Babic2015-04-30
| | | | | | | | | | | | | | | | Exponent usage and calculation in softfloat adjusted to the format used in implementation of fixed point aac decoder. Signed-off-by: Nedeljko Babic <nedeljko.babic@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | OpenCL: Fix ABI incompatibility issuesManeesh Gupta2015-04-28
| | | | | | | | | | | | | | | | | | AVOpenCLDeviceNode and AVOpenCLPlatformNode used fixed static buffer for holding the device and platform name. This patch modifies these structures to use pointers instead. The memory required to hold the names is now dynamically allocated, the size for which is determined by querying appropriate OpenCL runtime APIs. Signed-off-by: Maneesh Gupta <maneesh.gupta@amd.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/log: more complete description of av_log functionMatteo Nastasi (mop)2015-04-26
| |
* | avutil/softfloat: document av_int2sf()Michael Niedermayer2015-04-25
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for HEVC copy and hv mc ↵Shivraj Patil2015-04-24
| | | | | | | | | | | | | | | | | | | | | | functions Incorporated review comment. Removed "__" from volatile. Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com> Reviewed-by: Nedeljko Babic <Nedeljko.Babic@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/frame: fix everythnig/everything typoClément Bœsch2015-04-24
| |
* | Merge commit 'eaa2d123f0a643664721593d248ece6bcd85f1e6'Michael Niedermayer2015-04-20
|\| | | | | | | | | | | | | | | | | | | | | * commit 'eaa2d123f0a643664721593d248ece6bcd85f1e6': log: Print a full backtrace along with error messages under Valgrind Conflicts: libavutil/log.c libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * log: Print a full backtrace along with error messages under ValgrindVittorio Giovara2015-04-20
| | | | | | | | | | | | | | | | Useful to understand where and in what execution state a certain message is generated. It is enabled only when optimizations are disabled, since function names are not printed otherwise. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
| * avutil: remove pointless bmi1 defineJames Almer2015-04-19
| | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com>
* | avutil/mips/generic_macros_msa: volatile doesnt need __Michael Niedermayer2015-04-20
| | | | | | | | | | Reviewed-by: Nedeljko Babic <Nedeljko.Babic@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'c253340ae6f74ffd8798bbd476e46d1b33a2d56e'Michael Niedermayer2015-04-20
|\| | | | | | | | | | | | | | | | | | | | | | | | | * commit 'c253340ae6f74ffd8798bbd476e46d1b33a2d56e': log: Introduce a more verbose debug level Conflicts: doc/APIchanges doc/fftools-common-opts.texi libavutil/log.c libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * log: Introduce a more verbose debug levelVittorio Giovara2015-04-19
| | | | | | | | And deprecate av_dlog macro.
* | avutil: remove pointless bmi1 defineJames Almer2015-04-18
| | | | | | | | | | Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for HEVC horizontal and ↵Shivraj Patil2015-04-17
| | | | | | | | | | | | | | | | vertical mc functions Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com> Reviewed-by: Nedeljko Babic <Nedeljko.Babic@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavutil/softfloat: Change order of fields in SoftFloat structure.Nedeljko Babic2015-04-15
| | | | | | | | | | | | | | | | | | Softfloat will be used in implementation of AAC fixed point decoder. This change is needed in order to more easily integrate ffmpegs softfloat in already developed algorithm for AAC. Signed-off-by: Nedeljko Babic <nedeljko.babic@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/mips/intreadwrite: build fix for mips64r6 (instruction 'lwl' not ↵Shivraj Patil2015-04-10
| | | | | | | | | | | | | | | | supported) Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com> Reviewed-by: Nedeljko Babic <Nedeljko.Babic@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/x86/Makefile: fix conditional x86/emms.o buildMichael Niedermayer2015-04-09
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/x86/Makefile: Make building and linking of emms.c conditionalRonald S. Bultje2015-04-08
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '27f274628234c1f934b9a6a6380ed567c1b4ceae'Michael Niedermayer2015-04-07
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '27f274628234c1f934b9a6a6380ed567c1b4ceae': parseutils: Make av_small_strptime public Conflicts: doc/APIchanges libavformat/utils.c libavutil/parseutils.c libavutil/version.h See: 29e972f67c914d35417bc7368493d2617abdd26e Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * parseutils: Make av_small_strptime publicLuca Barbato2015-04-07
| | | | | | | | | | | | And use it in libavformat. Based on a similar patch by Stefano Sabatini <stefasab@gmail.com>.
* | Merge commit '108f2f381acb93827fb4add0517eeae859afa3bf'Michael Niedermayer2015-04-07
|\| | | | | | | | | | | | | | | | | | | * commit '108f2f381acb93827fb4add0517eeae859afa3bf': parseutils: Extend small_strptime to be used in avformat Conflicts: libavutil/parseutils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * parseutils: Extend small_strptime to be used in avformatLuca Barbato2015-04-06
| | | | | | | | The strptime implementation is supposed to support whitespace and %T.