summaryrefslogtreecommitdiff
path: root/libavutil
Commit message (Collapse)AuthorAge
* avutil/mem: simplify av_reallocp_array() by using av_realloc_f()Michael Niedermayer2013-06-05
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit '3b4feac1ec14f861bdd7f494f288f4d8dd7f449e'Michael Niedermayer2013-06-05
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '3b4feac1ec14f861bdd7f494f288f4d8dd7f449e': movenc: Keep track of the allocated size for the cluster array mem: Add av_realloc_array and av_reallocp_array Conflicts: doc/APIchanges libavformat/movenc.c libavutil/mem.c libavutil/mem.h libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mem: Add av_realloc_array and av_reallocp_arrayMartin Storsjö2013-06-04
| | | | | | | | | | | | These help avoiding overflows and simplify error handling. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit 'c011ceef78eae66039efc66d9551a7146e08838a'Michael Niedermayer2013-06-03
|\| | | | | | | | | | | | | | | | | | | | | | | * commit 'c011ceef78eae66039efc66d9551a7146e08838a': swscale: ppc: Remove commented-out define cruft nsvdec: Remove commented-out debug cruft cpu: Restructure code to avoid pointless ret variable indirection Conflicts: libavutil/cpu.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * cpu: Restructure code to avoid pointless ret variable indirectionDiego Biurrun2013-06-02
| | | | | | | | libavutil/cpu.c:133:9: warning: unused variable ‘ret’ [-Wunused-variable]
* | avutil/sha: reorder Maj argumentsMichael Niedermayer2013-06-02
| | | | | | | | | | | | about 1% speedup Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/sha512: Reshuffle Maj() operandsMichael Niedermayer2013-06-02
| | | | | | | | | | | | This reduces dependancy chains and improves speed by about 2% Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavu: Add SHA-2 512 hashingJames Almer2013-06-02
| | | | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/crc: Dont limit CRC32 standard tablesJames Almer2013-06-01
| | | | | | | | | | | | | | | | | | Currently, standard tables like AV_CRC_32_IEEE and such are being generated (or provided in case the user compiles with hardcoded tables) with only 257 elements. We're missing a considerable boost in performance by not making them with a size of 1024 elements instead. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | av_d2q: Add a special case for |value| > MAX and |value| < 1/MAXMichael Niedermayer2013-05-31
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Add AV_HASH_MAX_SIZE.Reimar Döffinger2013-05-29
| | | | | | | | | | | | Makes it easier to use static allocation for the result buffer. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-05-27
|\| | | | | | | | | | | | | | | * qatar/master: arm: Only output eabi attributes if building for ELF fix scalarproduct_and_madd_int16_altivec() for orders > 16 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * arm: Only output eabi attributes if building for ELFMartin Storsjö2013-05-27
| | | | | | | | | | | | | | | | This matches the other eabi attribute in the same file. This is required in order to build for arm/hardfloat with other object file formats than ELF. Signed-off-by: Martin Storsjö <martin@martin.st>
* | av_cpu_count: factorize "detected %d logical cores" messageMichael Niedermayer2013-05-26
| | | | | | | | | | | | Also print the message just once Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | av_d2q: Avoid llrint(), its not correctly implemented in old netbsdMichael Niedermayer2013-05-26
| | | | | | | | | | | | This should fix some fate failure Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/md5: reindent after previous commitsGiorgio Vazzana2013-05-25
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | av_d2q: fix rounding for negative valuesMichael Niedermayer2013-05-25
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | av_d2q: Fix infinity checkMichael Niedermayer2013-05-25
| | | | | | | | | | | | | | | | The old check would fail on huge but not infinite values and the later code could then fail to handle them correctly in some cases. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-05-24
|\| | | | | | | | | | | | | * qatar/master: cpu: Include common.h for av_popcount64 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * cpu: Include common.h for av_popcount64Martin Storsjö2013-05-24
| | | | | | | | | | | | This fixes build failures on windows since 2a6eaeaa8. Signed-off-by: Martin Storsjö <martin@martin.st>
* | avutil/bprint: Fix doxygen commentsMichael Niedermayer2013-05-24
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '2a6eaeaa85d17b27ee0dd449183ec197c35c9675'Michael Niedermayer2013-05-24
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '2a6eaeaa85d17b27ee0dd449183ec197c35c9675': Move get_logical_cpus() from lavc/pthread to lavu/cpu. Conflicts: doc/APIchanges libavcodec/pthread.c libavutil/cpu.c libavutil/cpu.h libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Move get_logical_cpus() from lavc/pthread to lavu/cpu.Anton Khirnov2013-05-24
| | | | | | | | | | It will be useful in lavfi, and could conceivably be useful to the user applications as well.
| * pixdesc: mark gray8 as pseudopalAnton Khirnov2013-05-22
| | | | | | | | | | | | | | Many functions treat it as such already. Fixes Bug 499. CC:libav-stable@libav.org
* | lavu/opencl: remove semi-colon from macro.Clément Bœsch2013-05-24
| | | | | | | | | | | | | | | | Fixes compilation when the macros are empty and the label above ends up containing no statement. Also makes usage of these macro consistent (some already have a semi colon, some others don't). Fixes Ticket #2603
* | lavu/opt: check if class is NULL tooPaul B Mahol2013-05-21
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avutil/pixfmt: add forgotten deprecated to YUVJ411Michael Niedermayer2013-05-21
| | | | | | | | | | Found-by: wm4 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | add YUVJ411PMichael Niedermayer2013-05-21
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/frame: continue to process bufs even if some are emptyXidorn Quan2013-05-20
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/md5: move loop inside inner functionGiorgio Vazzana2013-05-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AMD Athlon(tm) II X3 450 Processor size: 1048576 runs: 1024 time: 5.660 +- 0.023 size: 1048576 runs: 1024 time: 5.661 +- 0.030 size: 1048576 runs: 1024 time: 5.656 +- 0.022 size: 1048576 runs: 1024 time: 5.647 +- 0.026 size: 1048576 runs: 1024 time: 5.428 +- 0.037 size: 1048576 runs: 1024 time: 5.426 +- 0.034 size: 1048576 runs: 1024 time: 5.426 +- 0.034 size: 1048576 runs: 1024 time: 5.428 +- 0.038 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/hmac: silence pointer type warningsMichael Niedermayer2013-05-20
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | md5: optimize second round by using 4-operation form of G()Giorgio Vazzana2013-05-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4-operation form is preferred over 3-operation because it breaks a long dependency chain, thus allowing a superscalar processor to execute more operations in parallel. The idea was taken from: http://www.zorinaq.com/papers/md5-amd64.html AMD Athlon(tm) II X3 450 Processor, x86_64 $ for i in $(seq 1 4); do ./avutil_md5_test2; done size: 1048576 runs: 1024 time: 5.821 +- 0.019 size: 1048576 runs: 1024 time: 5.822 +- 0.019 size: 1048576 runs: 1024 time: 5.841 +- 0.018 size: 1048576 runs: 1024 time: 5.821 +- 0.018 $ for i in $(seq 1 4); do ./avutil_md5_test2; done size: 1048576 runs: 1024 time: 5.646 +- 0.019 size: 1048576 runs: 1024 time: 5.646 +- 0.018 size: 1048576 runs: 1024 time: 5.642 +- 0.019 size: 1048576 runs: 1024 time: 5.641 +- 0.019 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '40020e171a3549a2c0b65ce6f2649aec868872f2'Michael Niedermayer2013-05-18
|\| | | | | | | | | | | | | | | | | | | * commit '40020e171a3549a2c0b65ce6f2649aec868872f2': doxy: add a section about versioning. Conflicts: libavutil/avutil.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * doxy: add a section about versioning.Anton Khirnov2013-05-17
| |
* | Merge commit 'bc8c1cdc7bfe7b1fe56df812aabdac3de2555cec'Michael Niedermayer2013-05-18
|\| | | | | | | | | | | | | | | | | | | | | | | | | * commit 'bc8c1cdc7bfe7b1fe56df812aabdac3de2555cec': lavfi doxy: add a page for lavfi. jpegls: check the scan offset Conflicts: libavcodec/jpeglsdec.c libavfilter/avfilter.h libavutil/avutil.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavfi doxy: add a page for lavfi.Anton Khirnov2013-05-17
| |
* | md5: avoid unnecessary copying.Reimar Döffinger2013-05-17
| | | | | | | | | | | | | | | | | | Where necessary use memcpy instead. Thanks to Giorgio Vazzana [mywing81 gmail] for spotting this loop as the cause for the bad performance. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | lavu/opt: add AV_OPT_TYPE_COLORPaul B Mahol2013-05-17
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | Rename ffadler to ffhash and expand it using the generic hash APIJames Almer2013-05-16
| | | | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'd46c588f3cb1963a00e990ceaf4ba9ffa05a716d'Michael Niedermayer2013-05-16
|\| | | | | | | | | | | | | | | | | | | | | | | * commit 'd46c588f3cb1963a00e990ceaf4ba9ffa05a716d': Remove commented-out #includes h263dec: Remove broken and disabled debug cruft vc1: Reindent INIT_LUT(), align backslashes Conflicts: libavcodec/vc1.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Remove commented-out #includesDiego Biurrun2013-05-15
| |
* | lavu/hash: Fix CRC32 calculationJames Almer2013-05-15
| | | | | | | | | | | | | | | | Initialize it with UINT32_MAX and xor the result with UINT32_MAX as well. Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavu/hash: Fix adler32 calculationJames Almer2013-05-15
| | | | | | | | | | | | | | Adler must be initialized with a non zero value. Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | murmur3: fix memleakMichael Niedermayer2013-05-15
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | replace remaining PIX_FMT_* flags with AV_PIX_FMT_FLAG_*Michael Niedermayer2013-05-15
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-05-15
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: pixdesc: rename PIX_FMT_* flags to AV_PIX_FMT_FLAG_* Conflicts: doc/APIchanges libavcodec/avpicture.c libavcodec/ffv1dec.c libavcodec/ffv1enc.c libavcodec/imgconvert.c libavcodec/tiffenc.c libavfilter/vf_pixdesctest.c libavfilter/vf_scale.c libavutil/imgutils.c libavutil/pixdesc.c libavutil/version.h libswscale/swscale_internal.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * pixdesc: rename PIX_FMT_* flags to AV_PIX_FMT_FLAG_*Anton Khirnov2013-05-15
| |
* | Merge commit '096696ef0dd391d9430376d1444c1a3cde9171fd'Michael Niedermayer2013-05-15
|\| | | | | | | | | | | | | | | * commit '096696ef0dd391d9430376d1444c1a3cde9171fd': avfiltergraph: simplify inserting conversion filters. Clarify output of av_get_bits_per_pixel Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Clarify output of av_get_bits_per_pixelKieran Kunhya2013-05-15
| | | | | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | lavu/hash: Fix name of SHA224James Almer2013-05-14
| | | | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>