summaryrefslogtreecommitdiff
path: root/libavutil
Commit message (Collapse)AuthorAge
* Merge commit '01621202aad7e27b2a05c71d9ad7a19dfcbe17ec'Derek Buitenhuis2016-05-09
|\ | | | | | | | | | | | | * commit '01621202aad7e27b2a05c71d9ad7a19dfcbe17ec': build: miscellaneous cosmetics Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * build: miscellaneous cosmeticsDiego Biurrun2016-04-07
| | | | | | | | | | | | Restore alphabetical order in lists, break overly long lines, do some prettyprinting, add some explanatory section comments, group parts together that belong together logically.
* | libavutil/opt: add writing AV_OPT_TYPE_VIDEO_RATE AVOptionPrzemysław Sobala2016-05-09
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avutil/parsing: add '\r' as whitespaceMuhammad Faiz2016-05-06
| | | | | | | | | | | | | | for compatibility with platforms that treat it as newline Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* | avutil/log: Fix occured typoMichael Niedermayer2016-04-28
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avutil/log: added test case for av_log_format_line2Andreas Weis2016-04-27
| | | | | | | | | | Signed-off-by: Andreas Weis <github@ghulbus-inc.de> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avutil/log: added av_log_format_line2 which returns buffer lengthAndreas Weis2016-04-27
| | | | | | | | | | | | | | | | | | The new function behaves the same as av_log_format_line, but also forwards the return value from the underlying snprintf call. This will allow callers to accurately determine the size requirements for the line buffer. Signed-off-by: Andreas Weis <github@ghulbus-inc.de> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | pgssubdec: fix subpicture output colorspace and rangeJan Ekström2016-04-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Functionality used before didn't widen the values from limited to full range. Additionally, now the decoder uses BT.709 where it should be used according to the video resolution. Default for not yet set colorimetry is BT.709 due to most observed HDMV content being HD. BT.709 coefficients were gathered from the first two parts of BT.709 to BT.2020 conversion guide in ARIB STD-B62 (Pt. 1, Chapter 6.2.2). They were additionally confirmed by manually calculating values. Fixes #4637
* | avutil/aes: Remove duplicate includeMichael Niedermayer2016-04-23
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Merge commit '3b08d9d932eef09403074d5af31e10d8011e840b'Derek Buitenhuis2016-04-21
|\| | | | | | | | | | | | | * commit '3b08d9d932eef09403074d5af31e10d8011e840b': testprogs: K&R formatting cosmetics Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * testprogs: K&R formatting cosmeticsDiego Biurrun2016-03-24
| |
* | 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>