Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-10-28lavu/aes: add runtime dispatch for crypt functionRodger Combs
2015-10-28lavu/aes: move AVAES to separate internal headerRodger Combs
2015-10-28lavu: add AESNI CPU flagRodger Combs
2015-10-28avutil/avstring: add av_warn_unused_resultGanesh Ajjanagadde
This does not trigger any warnings, but adds robustness. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2015-10-26timecode: Support HFR valuesVittorio Giovara
2015-10-26timecode: Do not fail for non-standard frameratesVittorio Giovara
Instead just warn, and use the parse fps normally. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
2015-10-26avutil/opt: print more meaningful default flags valuesClément Bœsch
Example: % ./ffmpeg -h encoder=gif [...] GIF encoder AVOptions: -gifflags <flags> E..V.... set GIF flags (default offsetting+transdiff) offsetting E..V.... enable picture offsetting transdiff E..V.... enable transparency detection between frames
2015-10-25avutil/tree: clean up pointer incompatibility warningsGanesh Ajjanagadde
Commit 7c8fcbbde3a299096974f9061c8b5be0e526f4c2 introduced some warnings that get triggered on the test build. This should fix them. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2015-10-25avutil/tree: Document the guaranteed ordering of compare arguments for ↵Michael Niedermayer
av_tree_find() Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-10-25avutil/tree: add additional const qualifier to the comparatorGanesh Ajjanagadde
libc's qsort comparator has a const qualifier on both arguments. This adds a missing const qualifier to exactly match the comparator API. Existing usages of av_tree_find, av_tree_insert are appropriately modified: type signature changes of the comparators, and removal of unnecessary void * casts of function pointers. Reviewed-by: Henrik Gramner <henrik@gramner.com> Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2015-10-25avutil/tree: improve documentation for av_tree_find, av_tree_insertGanesh Ajjanagadde
This documents the additional constness, and provides a useful libc reference for the API specification of the comparator. Reviewed-by: Henrik Gramner <henrik@gramner.com> Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2015-10-23avutil/qsort: use the do while form for AV_QSORT, AV_MSORTGanesh Ajjanagadde
Reviewed-by: Clément Bœsch <u@pkh.me> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2015-10-22avutil/intmath: fix undefined behavior in ff_ctzll_c()Michael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-10-21avutil: merge avpriv_float_dsp_init into avpriv_float_dsp_allocAndreas Cadhalpun
Also replace the last two usages of avpriv_float_dsp_init with avpriv_float_dsp_alloc. Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
2015-10-21avutil: install des.h, rc4.h and tree.h as public headersAndreas Cadhalpun
These headers contain functions supposed to be public. libavutil/des.h: av_des_alloc av_des_crypt av_des_init av_des_mac libavutil/rc4.h: av_rc4_alloc av_rc4_crypt av_rc4_init libavutil/tree.h av_tree_destroy av_tree_enumerate av_tree_find av_tree_insert av_tree_node_alloc av_tree_node_size Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
2015-10-19lavu/intmath.h: Move x86 only msvc/icl functions to x86 specific header.Matt Oliver
Signed-off-by: Matt Oliver <protogonoi@gmail.com>
2015-10-19lavu/intmath.h: Add msvc/icl ctzll optimisations.Matt Oliver
Signed-off-by: Matt Oliver <protogonoi@gmail.com>
2015-10-19avutil/opt: display a better default value for int/int64 optionsClément Bœsch
Example: % ./ffmpeg -h encoder=aac -aac_coder <int> E...A... Coding algorithm (from -1 to 3) (default twoloop) faac E...A... FAAC-inspired method anmr E...A... ANMR method twoloop E...A... Two loop searching method fast E...A... Constant quantizer [...]
2015-10-18avutil: use EINVAL instead of -1 for the return code of crypto related init ↵Ganesh Ajjanagadde
functions These functions return an error typically when the key size is an incorrect number. AVERROR(EINVAL) is more specific than -1. Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2015-10-17opencl: Force the use of 1.2 APIsTimothy Gu
Silences warnings regarding `clCreateCommandQueue` being deprecated. Only a very limited number of products support 2.0. Since the replacement API (`clCreateCommandQueueWithProperties`) is only available in 2.0, we should not update it just yet.
2015-10-17opencl: Use "opencl" as log context nameTimothy Gu
All other classes use lowercase names.
2015-10-17opencl: Print compilation logTimothy Gu
Useful when debugging.
2015-10-17opencl: Print error string when compilation failsTimothy Gu
2015-10-17avutil/mem: add av_warn_unused_resultGanesh Ajjanagadde
This adds av_warn_unused_result to functions whose return codes need to be checked. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2015-10-17avutil: undo FF_API_CRYPTO_CONTEXT deprecationJames Almer
It's been argued that the benefits of the current implementation far outweight those of making the structs opaque. This deprecation is not present in any release, so it can be safely removed. Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
2015-10-17avutil/file: add av_warn_unused_result to av_file_mapGanesh Ajjanagadde
The return code here should be checked. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2015-10-17avutil/internal: add av_warn_unused_result to avpriv_openGanesh Ajjanagadde
The open syscall can obviously fail, and its return code needs to be checked. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2015-10-16avutil/cast5: update Doxygen for av_cast5_init with return informationGanesh Ajjanagadde
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2015-10-16avutil/crc: use EINVAL instead of -1 for the return code of av_crc_init()Michael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-10-15winrt: multithreading supportwang-bin
_beginthreadex is for desktop only. CreateThread is available for windows store apps on windows (and phone) 8.1 and later. http://msdn.microsoft.com/en-us/library/ms682453%28VS.85%29.aspx Signed-off-by: Matt Oliver <protogonoi@gmail.com>
2015-10-15Merge commit 'c53e796f8b69799b7ad6d28fbab981d37edf1bc9'Hendrik Leppkes
* commit 'c53e796f8b69799b7ad6d28fbab981d37edf1bc9': thread: Provide no-op variants for pthread_once Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
2015-10-14avutil/fifo: add function av_fifo_generic_peek_at()Zhang Rui
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-10-14avutil/intmath: use de Bruijn based ff_ctzGanesh Ajjanagadde
It has already been demonstrated that the de Bruijn method has benefits over the current implementation: commit 971d12b7f9d7be3ca8eb98e6c04ed521f83cbd3c. That commit implemented it for long long, this extends it to the int version. Tested with FATE. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
2015-10-14thread: Provide no-op variants for pthread_onceLuca Barbato
2015-10-14Merge commit '11c5f438ff83da5040e85bfa6299f56b321d32ef'Hendrik Leppkes
* commit '11c5f438ff83da5040e85bfa6299f56b321d32ef': dict: Change return type of av_dict_copy() Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
2015-10-13avutil/fifo: Fix thread saftey of av_fifo_generic_peek()Michael Niedermayer
changing the context state and restoring it is not safe if another thread writes data into the fifo Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-10-12dict: Change return type of av_dict_copy()Vittorio Giovara
av_dict_set() could return an error, so forward it appropriately. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
2015-10-12intmath: remove av_ctz.Ronald S. Bultje
It's a non-installed header and only used in one place (flacenc). Since ff_ctz is static inline, it's fine to use that instead.
2015-10-11avutil/intmath: Change debruijn_ctz64 to use 8bit elementsMichael Niedermayer
This reduces the memory & cache need from 256 to 64 bytes the code also seems faster with this change Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-10-11avutil/mathematics: speed up av_gcd by using Stein's binary GCD algorithmGanesh Ajjanagadde
This uses Stein's binary GCD algorithm: https://en.wikipedia.org/wiki/Binary_GCD_algorithm to get a roughly 4x speedup over Euclidean GCD on standard architectures with a compiler intrinsic for ctzll, and a roughly 2x speedup otherwise. At the moment, the compiler intrinsic is used on GCC and Clang due to its easy availability. Quick note regarding overflow: yes, subtractions on int64_t can, but the llabs takes care of that. The llabs is also guaranteed to be safe, with no annoying INT64_MIN business since INT64_MIN being a power of 2, is shifted down before being sent to llabs. The binary GCD needs ff_ctzll, an extension of ff_ctz for long long (int64_t). On GCC, this is provided by a built-in. On Microsoft, there is a BitScanForward64 analog of BitScanForward that should work; but I can't confirm. Apparently it is not available on 32 bit builds; so this may or may not work correctly. On Intel, per the documentation there is only an intrinsic for _bit_scan_forward and people have posted on forums regarding _bit_scan_forward64, but often their documentation is woeful. Again, I don't have it, so I can't test. As such, to be safe, for now only the GCC/Clang intrinsic is added, the rest use a compiled version based on the De-Bruijn method of Leiserson et al: http://supertech.csail.mit.edu/papers/debruijn.pdf. Tested with FATE, sample benchmark (x86-64, GCC 5.2.0, Haswell) with a START_TIMER and STOP_TIMER in libavutil/rationsl.c, followed by a make fate. aac-am00_88.err: builtin: 714 decicycles in av_gcd, 4095 runs, 1 skips de-bruijn: 1440 decicycles in av_gcd, 4096 runs, 0 skips previous: 2889 decicycles in av_gcd, 4096 runs, 0 skips Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-10-09lavu/opt: add flag to return NULL when applicable in av_opt_getRodger Combs
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-10-09lavu/opt: switch AV_OPT flags to shift-based formattingRodger Combs
2015-10-05avutil/attributes: add av_warn_unused_resultGanesh Ajjanagadde
GCC 3.4 introduced an attribute warn_unused_result to warn when a programmer discards the return value. Applying this judiciously across the codebase can help in fixing a lot of problems. At a high level, functions which return error codes should always be checked. More concretely, consider the functions ff_add_format and the like in avfilter/formats.h. A quick examination shows that a large portion of libavfilter fails to handle the associated errors, usually AVERROR(ENOMEM). The above example was where I observed the utility of this, but it should be useful in many places across the code base. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-10-03avutil/avstring: Inline some tiny functionsHenrik Gramner
They're short enough that inlining them actually reduces code size due to all the overhead associated with making a function call. Signed-off-by: Anton Khirnov <anton@khirnov.net>
2015-10-03Merge commit '1aa24df74c052a73175c43e57d35b4835e537ec8'Hendrik Leppkes
* commit '1aa24df74c052a73175c43e57d35b4835e537ec8': lavu: Deprecate AVFrame.error[] Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
2015-10-01x86inc: Make cpuflag() and notcpuflag() return 0 or 1Henrik Gramner
Makes it possible to use them in arithmetic expressions.
2015-09-30lavu: Deprecate AVFrame.error[]Vittorio Giovara
These field are difficult to interpret, and are provided by a single encoder (mpegvideoenc). In general they do not belong to a structure containing raw data only, so remove them from AVFrame. Mpegvideoenc now uses a private field in Picture for its internal computations. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
2015-09-29mips: intreadwrite: Only execute that code for mips r1 or r2Vicente Olivert Riera
MIPS R6 supports unaligned memory access and does not have the load/store-left/right family of instructions. Signed-off-by: Vicente Olivert Riera <Vincent.Riera at imgtec.com> Signed-off-by: Luca Barbato <lu_zero at gentoo.org> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2015-09-26avutil/avstring: Inline some tiny functionsHenrik Gramner
They're short enough that inlining them actually reduces code size due to all the overhead associated with making a function call.
2015-09-26avutil/opencl: Fix volatile pointerTimo Rothenpieler
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>