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

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/compat
AgeCommit message (Collapse)Author
2017-11-07compat/w32dlfcn: add missing config.h includeJames Almer
Fixes warnings about undefined HAVE_WINRT Signed-off-by: James Almer <jamrial@gmail.com>
2017-08-30compat/cuda/ptx2c: strip CR from each lineRicardo Constantino
Windows nvcc + cl.exe produce a .ctx file with CR+LF newlines which need to be stripped to work with gcc. Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
2017-07-30win32_dlfcn: Support WinRT/UWP.Matt Oliver
This only enables dlls that are packaged with the application to be loaded. Due to the limitations of WinRT/UWP it is not allowed to load external/system dlls so this cannot be used as a complete replacement for normal win32 dll loading. Signed-off-by: Matt Oliver <protogonoi@gmail.com>
2017-06-01compat/cuda: make cuvidGetDecoderCaps optionalTimo Rothenpieler
2017-05-15compat/cuda/ptx2c: remove bashism and harden against arbitrary inputTimo Rothenpieler
2017-05-15build: add support for building .cu files via nvccTimo Rothenpieler
Original work by Yogender Gupta <ygupta@nvidia.com>
2017-05-09compat/cuda: fix cast warnings on windowsTimo Rothenpieler
2017-05-09compat/cuda: update cuvid/nvdec headers to Video Codec SDK 8.0.14Timo Rothenpieler
This raises the required minimum NVIDIA display driver versions: NVIDIA Linux display driver 378.13 or newer NVIDIA Windows display driver 378.66 or newer
2017-05-09compat/nvenc: bump nvEncodeAPI.h to Video Codec SDK 8.0.14Timo Rothenpieler
This raises the required minimum NVIDIA display driver versions: NVIDIA Linux display driver 378.13 or newer NVIDIA Windows display driver 378.66 or newer
2017-05-05compat/strtod: Add missing const qualifiers.Carl Eugen Hoyos
Fixes many warnings: initialization discards 'const' qualifier from pointer target type
2017-04-14Support building C++ files with MSVCAaron Levinson
Made appropriate changes to be able to successfully build C++ files using a Visual C++ build on Windows. Based on an earlier patch by Kyle Schwarz. Comments: -- compat/w32pthreads.h: Made appropriate changes to w32pthreads.h to get it to build when it is being included in a C++ file and built with Visual C++. This is mostly a copy of Kyle Schwarz's patch as described above. -- configure: a) Now calling set_ccvars CXX to cause the various CXX_ variables to be setup properly. For example, with MSVC (Microsoft Visual C++), this causes CXX_O to be set to -Fo$@ instead of using the default value. The default value does not work with Visual C++. This change will also have the impact of correcting CXX_O (and possibly CXX_C) for other compilers, although this is really only relevant for the Intel compiler, in addition to MSVC. b) Now using cl for the C++ compiler for the MSVC toolchain. This is currently only relevant for building the Blackmagic/Decklink-related files under avdevice. Signed-off-by: Hendrik Leppkes <h.leppkes@gmail.com>
2017-04-14Merge commit '6a93b596c5c3af31b843d63013a7985ffeea354d'James Almer
* commit '6a93b596c5c3af31b843d63013a7985ffeea354d': compat/atomics: add typecasts in atomic_compare_exchange_strong() Merged-by: James Almer <jamrial@gmail.com>
2017-04-09Merge commit '3794062ab1a13442b06f6d76c54dce51ffa54697'Clément Bœsch
* commit '3794062ab1a13442b06f6d76c54dce51ffa54697': Remove Plan 9 support Merged-by: Clément Bœsch <u@pkh.me>
2017-04-04Merge commit 'bd9cd04626a98a752c5771d057a6b86779359904'James Almer
* commit 'bd9cd04626a98a752c5771d057a6b86779359904': w32pthreads: Fix function pointer casts Merged-by: James Almer <jamrial@gmail.com>
2017-04-04stdatomic/win32: only include the lean windows headers to avoid conflictsHendrik Leppkes
2017-04-02compat/atomics: fix atomic_fetch_xorJames Almer
2017-03-18compat/atomics/gcc: use __typeof__ instead of typeofJames Almer
The typeof keyword is apparently not available when using the -std=c99 option. Fixes the use of C11 atomic functions with old GCC. Reviewed-by: Muhammad Faiz <mfcc64@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
2017-03-01compat/cuda: fix ulong size on cygwinTimo Rothenpieler
2016-12-08compat/atomics: add typecasts in atomic_compare_exchange_strong()Wan-Teh Chang
The Solaris and Windows emulations of atomic_compare_exchange_strong() need typecasts to avoid compiler warnings, because the functions they call expect a void* pointer but an intptr_t integer is passed. Note that the emulations of atomic_compare_exchange_strong() (except the gcc version) only work for atomic_intptr_t because of the type of the second argument (|expected|). See http://en.cppreference.com/w/c/atomic: _Bool atomic_compare_exchange_strong( volatile A* obj, C* expected, C desired ); The types of the first argument and second argument are different (|A| and |C|, respectively). |C| is the non-atomic type corresponding to |A|. In the emulations of atomic_compare_exchange_strong(), |C| is intptr_t. This implies |A| can only be sig_intptr_t. Signed-off-by: Wan-Teh Chang <wtc@google.com>
2016-12-03Remove Plan 9 supportDiego Biurrun
Supporting the system was a nice joke for the 9 release, but it has run its course. Nowadays Plan 9 receives no testing and has no practical usefulness.
2016-12-03compat/atomics: rename header guardsJames Almer
Fixes fate-source. Signed-off-by: James Almer <jamrial@gmail.com>
2016-12-02Add a compat dummy stdatomic.h used when threading is disabledAnton Khirnov
Adapted from the code by Rémi Denis-Courmont from VLC This merges libav commit eb34d40354e2474517c9b9bd787e0dadc89c2a81. Signed-off-by: Wan-Teh Chang <wtc@google.com> Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: James Almer <jamrial@gmail.com>
2016-12-02Add a compat stdatomic.h implementation based on pthreadsAnton Khirnov
Adapted from the code by Rémi Denis-Courmont from VLC This merges libav commit f9a6a80e065cdb95b233978f1d96ec9bc863daa1. Signed-off-by: Wan-Teh Chang <wtc@google.com> Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: James Almer <jamrial@gmail.com>
2016-12-02Add a compat stdatomic.h implementation based on suncc atomicsAnton Khirnov
Adapted from the code by Rémi Denis-Courmont from VLC This merges libav commit bb81ed476569b912a37ed553e756e123b6b13b14. Signed-off-by: Wan-Teh Chang <wtc@google.com> Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: James Almer <jamrial@gmail.com>
2016-12-02Add a compat stdatomic.h implementation based on windows atomicsAnton Khirnov
Adapted from the code by Rémi Denis-Courmont from VLC This merges libav commit c2755864afadfbaa349e8d583665c86fe99fa90b. Signed-off-by: Wan-Teh Chang <wtc@google.com> Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: James Almer <jamrial@gmail.com>
2016-12-02Add a compat stdatomic.h implementation based on GCC atomicsAnton Khirnov
Adapted from the code by Rémi Denis-Courmont from VLC This merges libav commit 4e928ef340ac20325f529d92fcbc51e768085358. Signed-off-by: Wan-Teh Chang <wtc@google.com> Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: James Almer <jamrial@gmail.com>
2016-11-24w32pthreads: Fix function pointer castsDiego Biurrun
This eliminates a handful of warnings at every inclusion of the header.
2016-11-22avcodec/cuvid: Add support for P010/P016 as an output surface formatPhilip Langdale
The nvidia 375.xx driver introduces support for P016 output surfaces, for 10bit and 12bit HEVC content (it's also the first driver to support hardware decoding of 12bit content). The cuvid api, as far as I can tell, only declares one output format that they appear to refer to as P016 in the driver strings. Of course, 10bit content in P016 is identical to P010, and it is useful for compatibility purposes to declare the format to be P010 to work with other components that only know how to consume P010 (and to avoid triggering swscale conversions that are lossy when they shouldn't be). For simplicity, this change does not maintain the previous ability to output dithered NV12 for 10/12 bit input video - the user will need to update their driver to decode such videos.
2016-11-22avcodec/cuvid: use dynamically loaded CUDA/CUVIDTimo Rothenpieler
And remove the now obsolete compat headers.
2016-11-22compat/cuda: add dynamic loaderTimo Rothenpieler
2016-11-05compat/w32dlfcn.h: Add safe win32 dlopen/dlclose/dlsym functions.Matt Oliver
Signed-off-by: Matt Oliver <protogonoi@gmail.com>
2016-10-02Add a compat dummy stdatomic.h used when threading is disabledAnton Khirnov
Adapted from the code by Rémi Denis-Courmont from VLC
2016-10-02Add a compat stdatomic.h implementation based on pthreadsAnton Khirnov
Adapted from the code by Rémi Denis-Courmont from VLC
2016-10-02Add a compat stdatomic.h implementation based on suncc atomicsAnton Khirnov
Adapted from the code by Rémi Denis-Courmont from VLC
2016-10-02Add a compat stdatomic.h implementation based on windows atomicsAnton Khirnov
Adapted from the code by Rémi Denis-Courmont from VLC
2016-10-02Add a compat stdatomic.h implementation based on GCC atomicsAnton Khirnov
Adapted from the code by Rémi Denis-Courmont from VLC
2016-09-23compat/cuda: convert to unix line endingsTimo Rothenpieler
2016-09-23cuvid: Use bundled headersPhilip Langdale
We need to remove the dynlink fanciness and replace it with normal function prototypes and update the include paths and configure logic. We don't need to explicitly check for PICPARMS now - they're going to be there.
2016-09-23cuvid: Add MIT licenced nvcuid headers from Video SDK 7.0Philip Langdale
For unknown reasons, the only accurately descriptive version of cuviddec.h is in the Video SDK - the one in CUDA 7.5 lacks vp8 PICPARAMS and the vp9 struct definition is inaccurate. The CUDA 8 RC includes an ancient version of this file from many many years go. However, the one in the Video SDK is modified to work through a dynamic link mechanism which we don't really want to use, so the next change will modify the files to just declare functions in the normal way. I've split the changes so it's clear to see what changed between the original files and ones that work for us.
2016-08-28avcodec/nvenc: include nvEncodeAPI v7 SDK headerTimo Rothenpieler
As Nvidia has put the most recent Video Codec SDK behind a double registration wall, of which one needs manual approval of a lenghty application, bundling this header saves everyone trying to use NVENC from that headache. The header is still MIT licensed and thus fine to bundle with ffmpeg. Not bundling this header would get ffmpeg stuck at SDK v6, which is still freely available, holding back future development of the NVENC encoder.
2016-08-17compat/avisynth: update AviSynth+ headerStephen Hutchinson
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-05-09Merge commit '6bb99757b780144d9fa27cdce09d3621e1a0ed43'Derek Buitenhuis
* commit '6bb99757b780144d9fa27cdce09d3621e1a0ed43': jack: Support OSX Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-03-31jack: Support OSXJosh de Kock
Previously, with JACK installed, the configure script would enable the JACK indev; this broke on OS X due to an incomplete pthreads implementation. Add some simple macros to map libdispatch to pthreads on OS X. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2016-02-14compat/os2threads: split long linesKO Myung-Hun
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-02-14compat/os2threads: support the return value of joined threadKO Myung-Hun
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-02-14compat/os2threads: Improve pthread_cond_xxx() functionsKO Myung-Hun
1. Manipulate waiting count in pthread_cond_wait() 2. Use builtin atomic functions to manipulate waiting count Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-02-01all: Make header guard names consistentTimothy Gu
2016-01-29all: Add missing header guardsTimothy Gu
2015-11-13os2threads: Add pthread_once()KO Myung-Hun
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-11-02Merge commit '407ac22322e5ce67996ec54ef619cafa4c9ceb78'Hendrik Leppkes
* commit '407ac22322e5ce67996ec54ef619cafa4c9ceb78': w32pthreads: Map MemoryBarrier to __sync_synchronize on mingw Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>