summaryrefslogtreecommitdiff
path: root/libavutil
Commit message (Collapse)AuthorAge
...
* | Merge commit '439929859ae0eb9542d3bb8a0c856bd5a1d1ec48'Derek Buitenhuis2016-04-21
|\| | | | | | | | | | | | | * commit '439929859ae0eb9542d3bb8a0c856bd5a1d1ec48': testprogs: Clean up #includes Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * testprogs: Clean up #includesDiego Biurrun2016-03-24
| |
* | x86inc: Enable AVX emulation in additional casesAnton Mitrofanov2016-04-20
| | | | | | | | | | Allows emulation to work when dst is equal to src2 as long as the instruction is commutative, e.g. `addps m0, m1, m0`.
* | x86inc: Improve handling of %ifid with multi-token parametersAnton Mitrofanov2016-04-20
| | | | | | | | | | | | The yasm/nasm preprocessor only checks the first token, which means that parameters such as `dword [rax]` are treated as identifiers, which is generally not what we want.
* | x86inc: Fix AVX emulation of some instructionsAnton Mitrofanov2016-04-20
| |
* | x86inc: Fix AVX emulation of scalar float instructionsHenrik Gramner2016-04-20
| | | | | | | | | | Those instructions are not commutative since they only change the first element in the vector and leave the rest unmodified.
* | Merge commit '564b4591bbe223bdc5f36a1131eaef103f23f5d0'Derek Buitenhuis2016-04-19
|\| | | | | | | | | | | | | * commit '564b4591bbe223bdc5f36a1131eaef103f23f5d0': opt: Add av_opt_copy() Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * opt: Add av_opt_copy()Michael Niedermayer2016-03-24
| | | | | | | | | | | | | | This includes documentation and other modifications by Lukasz Marek and Martin Storsjö. Signed-off-by: Martin Storsjö <martin@martin.st>
| * opt: Add const to av_opt_nextLukasz Marek2016-03-24
| | | | | | | | | | | | | | Also add const to pointers in static functions within opt.c where possible/necessary. Signed-off-by: Martin Storsjö <martin@martin.st>
| * opt-test: Merge struct declaration and initializationDiego Biurrun2016-03-23
| |
| * opt-test: Move some variable declarations to avoid block bracesDiego Biurrun2016-03-23
| |
| * parseutils-test: Move some variable declarations to avoid block bracesDiego Biurrun2016-03-23
| |
* | Merge commit '52385410b7de012c2562fb5ba8f07a4e1112c4e7'Derek Buitenhuis2016-04-17
|\| | | | | | | | | | | | | * commit '52385410b7de012c2562fb5ba8f07a4e1112c4e7': des-test: Move a variable declaration to avoid an ifdef Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * des-test: Move a variable declaration to avoid an ifdefDiego Biurrun2016-03-23
| |
* | Merge commit '551c6775abb5e0ad34c26d7e23bc6fbbe8ccc9d4'Derek Buitenhuis2016-04-14
|\| | | | | | | | | | | | | * commit '551c6775abb5e0ad34c26d7e23bc6fbbe8ccc9d4': lavu: VAAPI hwcontext implementation Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * lavu: VAAPI hwcontext implementationMark Thompson2016-03-19
| | | | | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | Merge commit 'd264c720f7b74286840719e506daba39f83b438b'Derek Buitenhuis2016-04-14
|\| | | | | | | | | | | | | * commit 'd264c720f7b74286840719e506daba39f83b438b': lavu: deprecate AV_PIX_FMT_VAAPI_*, replace with AV_PIX_FMT_VAAPI Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * lavu: deprecate AV_PIX_FMT_VAAPI_*, replace with AV_PIX_FMT_VAAPIMark Thompson2016-03-19
| | | | | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | Merge commit 'b1f01e85a92d401a9b29c79f23db36b7685e8c09'Derek Buitenhuis2016-04-14
|\| | | | | | | | | | | | | * commit 'b1f01e85a92d401a9b29c79f23db36b7685e8c09': lavu: add a way to query hwcontext frame constraints Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * lavu: add a way to query hwcontext frame constraintsMark Thompson2016-03-19
| | | | | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | Merge commit '328e9a15c568843580ff3ff490748d545f16def8'Derek Buitenhuis2016-04-13
|\| | | | | | | | | | | | | * commit '328e9a15c568843580ff3ff490748d545f16def8': buffer: drop a reference to a non-existing function from the docs Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * buffer: drop a reference to a non-existing function from the docsAnton Khirnov2016-03-07
| | | | | | | | This function only ever existed in the draft versions of the API.
* | Merge commit '7480d001312d9ba706333ec970264ed9df3f82cb'Derek Buitenhuis2016-04-13
|\| | | | | | | | | | | | | * commit '7480d001312d9ba706333ec970264ed9df3f82cb': pixfmt: fix the AV_PIX_FMT_VAAPI_VLD doxy Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * pixfmt: fix the AV_PIX_FMT_VAAPI_VLD doxyAnton Khirnov2016-03-07
| |
* | Merge commit '7a6cf2771414c7ab8bca0811d589f6091a6e2b71'Derek Buitenhuis2016-04-13
|\| | | | | | | | | | | | | * commit '7a6cf2771414c7ab8bca0811d589f6091a6e2b71': lavu: improve documentation of some AVFrame functions Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * lavu: improve documentation of some AVFrame functionswm42016-03-05
| | | | | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | lavu/base64: add AV_BASE64_DECODE_SIZE() macroStefano Sabatini2016-04-02
| | | | | | | | | | This is consistent with the AV_BASE64_SIZE macro and avoids the literal use of constants in the code.
* | lavu: improve documentation of some AVFrame functionswm42016-04-01
| |
* | fix some a/an typosLou Logan2016-03-28
| | | | | | | | Signed-off-by: Lou Logan <lou@lrcd.com>
* | lavu/dict: Add new flag to allow multiple equal keys.Thilo Borgmann2016-03-25
| |
* | avutil/parseutils: mark args as static constMichael Niedermayer2016-03-24
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Added more tests to libavutil/parseutils.cPetru Rares Sincraian2016-03-24
| | | | | | | | | | | | | | - Added tests for av_find_info_tag(). - Added test for av_get_known_color_name() Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Refactor libavutil/parseutils.cPetru Rares Sincraian2016-03-24
| | | | | | | | | | | | | | | | | | | | All tests were in the main method which produces a long main. Now, each test is in his own method. I think this produces a more clear code and follows more with the main priority of FFmpeg "simplicity and small code size" Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | all: move ff_exp10, ff_exp10f, ff_fast_powf to lavu/ffmath.hGanesh Ajjanagadde2016-03-22
| | | | | | | | | | | | | | | | | | | | | | The idea is to use ffmath.h for internal implementations of math functions. Currently, it is used for variants of libm functions, but is by no means limited to such things. Note that this is not exported; use lavu/mathematics for such purposes. Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanag@gmail.com>
* | Added a selftest to libavutil/display.cPetru Rares Sincraian2016-03-22
| | | | | | | | | | | | | | | | - Check if av_display_rotation_get() gets the correct degrees - Check if av_display_rotation_set() sets the correct matrix - Check if av_display_matrix_flip() changes correct the matrix Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | lavc/aacenc_utils: replace powf(x,y) by expf(logf(x), y)Ganesh Ajjanagadde2016-03-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is ~2x faster for y not an integer on Haswell+GCC, and should generally be faster due to the fact that anyway powf essentially does this under the hood. Made an inline function in lavu/internal.h for this purpose. Note that there are some accuracy differences, that should generally be negligible. In particular, FATE still passes on this platform. Results in ~ 7% speedup in aac encoding with -march=native, Haswell+GCC. before: ffmpeg -i sin.flac -acodec aac -y sin_new.aac 6.05s user 0.06s system 104% cpu 5.821 total after: ffmpeg -i sin.flac -acodec aac -y sin_new.aac 5.67s user 0.03s system 105% cpu 5.416 total This is also faster than an alternative approach that pulls in powf, gets rid of the crufty NaN checks and other special cases, exploits knowledge about the intervals, etc. This of course does not exclude smarter approaches; just suggests that there would need to be significant work on this front of lower utility than searches for hotspots elsewhere. Reviewed-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanag@gmail.com>
* | avutil/dict: add warning to docs about invalidating existing entries when ↵Marton Balint2016-03-15
| | | | | | | | | | | | | | adding a new entry Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Marton Balint <cus@passwd.hu>
* | avutil/dict: do not realloc entries when deleting a non-existing itemMarton Balint2016-03-15
| | | | | | | | | | | | | | | | Deleting a non-existing item should not invalidate existing entries returned with av_dict_get. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Marton Balint <cus@passwd.hu>
* | lavu/lfg-test: add simple sample mean, stddev checksGanesh Ajjanagadde2016-03-13
| | | | | | | | | | | | | | Also added a TODO to change to a proper normality test in the future. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanag@gmail.com>
* | avutil/file: Move av_tempfile() to avutil/file_open ff_tempfile()Michael Niedermayer2016-03-12
| | | | | | | | | | | | | | document the issue with av_tempfile() Tested-by: Hendrik Leppkes <h.leppkes@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avutil/random_seed: Add the runtime in cycles of the main loop to the ↵Michael Niedermayer2016-03-10
| | | | | | | | | | | | | | | | entropy pool This should theoretically improve the randomness slightly Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avutil/channel_layout: AV_CH_LAYOUT_6POINT1_BACK not reachable in parsingMartin Cracauer2016-03-10
| | | | | | | | | | | | | | | | | | | | | | Trying to make heads and tails out of DTS 6.1 I can across this typo. I also noticed that this wiki page is incorrect or misleading, the channel order for 6.1 given does not match the source code. At the least it should be clarified that the layout given does not apply to DTS. https://trac.ffmpeg.org/wiki/AudioChannelManipulation Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Add tests for functions in hash.cNagaChaitanya Vellanki2016-03-09
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | mips: add support for R6Vicente Olivert Riera2016-03-09
| | | | | | | | | | | | | | | | | | | | | | Understanding the mips32r6 and mips64r6 ISAs in the configure script is not enough. In order to have full support for MIPS R6 in FFmpeg we need to be able to build it, and for that we need to make sure we don't use incompatible assembler code which makes the build fail. Ifdefing the offending code is sufficient to fix the problem. Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avutil/color_utils: Mark test_data as static constMichael Niedermayer2016-03-03
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Add test for avpriv_get_trc_function_from_trc functionNagaChaitanya Vellanki2016-03-03
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | lavu/rational: add more info regarding floor(x+0.5) usageGanesh Ajjanagadde2016-02-29
| | | | | | | | | | | | | | | | Add some more verbose info regarding why the imprecise and slow floor(x+0.5) hack is used; helpful for future maintenance. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanag@gmail.com>
* | Document and validate AVFrame plane pointers.Reimar Döffinger2016-02-28
| | | | | | | | | | | | | | | | | | | | Check that the required plane pointers and only those are set up. Currently does not enforce anything for the palette pointer of pseudopal formats as I am unsure about the requirements. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | avutil/imgutils: Assert that the 2nd av_image_fill_linesizes() call in ↵Michael Niedermayer2016-02-28
| | | | | | | | | | | | | | | | av_image_fill_linesizes() still succeeds Fixes CID1271742 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Merge commit '29c2d06d67724e994980045afa055c6c34611b30'Derek Buitenhuis2016-02-24
|\| | | | | | | | | | | | | * commit '29c2d06d67724e994980045afa055c6c34611b30': cosmetics: Drop empty comment lines Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>