summaryrefslogtreecommitdiffstats
path: root/compat
Commit message (Collapse)AuthorAgeFilesLines
...
* | compat/cuda: add dynamic loaderTimo Rothenpieler2016-11-224-0/+1475
| |
* | compat/w32dlfcn.h: Add safe win32 dlopen/dlclose/dlsym functions.Matt Oliver2016-11-051-0/+83
| | | | | | | | Signed-off-by: Matt Oliver <protogonoi@gmail.com>
* | compat/cuda: convert to unix line endingsTimo Rothenpieler2016-09-232-1148/+1148
| |
* | cuvid: Use bundled headersPhilip Langdale2016-09-222-58/+29
| | | | | | | | | | | | | | | | 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.
* | cuvid: Add MIT licenced nvcuid headers from Video SDK 7.0Philip Langdale2016-09-222-0/+1177
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | avcodec/nvenc: include nvEncodeAPI v7 SDK headerTimo Rothenpieler2016-08-281-0/+3219
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | compat/avisynth: update AviSynth+ headerStephen Hutchinson2016-08-171-37/+219
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Merge commit '6bb99757b780144d9fa27cdce09d3621e1a0ed43'Derek Buitenhuis2016-05-081-0/+42
|\ \ | |/ | | | | | | | | | | * commit '6bb99757b780144d9fa27cdce09d3621e1a0ed43': jack: Support OSX Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * jack: Support OSXJosh de Kock2016-03-311-0/+42
| | | | | | | | | | | | | | | | | | 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>
* | compat/os2threads: split long linesKO Myung-Hun2016-02-141-5/+12
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | compat/os2threads: support the return value of joined threadKO Myung-Hun2016-02-141-21/+18
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | compat/os2threads: Improve pthread_cond_xxx() functionsKO Myung-Hun2016-02-141-11/+15
| | | | | | | | | | | | | | 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>
* | all: Make header guard names consistentTimothy Gu2016-01-315-15/+15
| |
* | all: Add missing header guardsTimothy Gu2016-01-281-0/+5
| |
* | os2threads: Add pthread_once()KO Myung-Hun2015-11-121-0/+27
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Merge commit '407ac22322e5ce67996ec54ef619cafa4c9ceb78'Hendrik Leppkes2015-11-021-2/+2
|\ \ | |/ | | | | | | | | | | * commit '407ac22322e5ce67996ec54ef619cafa4c9ceb78': w32pthreads: Map MemoryBarrier to __sync_synchronize on mingw Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * w32pthreads: Map MemoryBarrier to __sync_synchronize on mingwMartin Storsjö2015-10-301-2/+2
| | | | | | | | | | | | | | This fixes building on older mingw (both mingw.org and mingw64; mingw64 from before May 2011). Signed-off-by: Martin Storsjö <martin@martin.st>
| * w32pthreads: fix mingw build on x86 with -msse2 or higherHendrik Leppkes2015-10-161-0/+5
| | | | | | | | | | | | | | | | When SSE2 or higher compiler optimizations are used, mingw uses the _mm_mfence intrinsic for MemoryBarrier, however it doesn't include the appropriate headers automatically. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | compat/solaris/make_sunver.pl: Use /usr/bin/env perl instead of /usr/bin/perlMichael Niedermayer2015-10-201-1/+1
| | | | | | | | | | | | | | This is how the other perl scripts in git call perl Reviewed-by: Ganesh Ajjanagadde <gajjanag@mit.edu> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | w32pthreads: fix mingw build on x86 with -msse2 or higherHendrik Leppkes2015-10-161-0/+5
| | | | | | | | | | | | When SSE2 or higher compiler optimizations are used, mingw uses the _mm_mfence intrinsic for MemoryBarrier, however it doesn't include the appropriate headers automatically.
* | winrt: multithreading supportwang-bin2015-10-161-0/+5
| | | | | | | | | | | | _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>
* | Merge commit 'c1aac39eaccd32dc3b74ccfcce701d3d888fbc6b'Hendrik Leppkes2015-10-141-0/+352
|\ \ | |/ | | | | | | | | | | * commit 'c1aac39eaccd32dc3b74ccfcce701d3d888fbc6b': build: add Solaris symbol versioning Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * build: add Solaris symbol versioningSean McGovern2015-10-111-0/+352
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The versioning facility in the Solaris linker differs from Linux in 3 ways: 1. It does not support globs in linker scripts for symbol versioning -- this is a GNU extension. 2. The linker argument is '-M', instead of '--version-script'. 3. It is picky about line endings. Each symbol or directive must be on a line of it's own. Let's use make_sunver.pl from GCC to generate a version script that works correctly with the Solaris linker. It's function is to correctly expand the globs in the original generated version script. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge commit '2830bce47e2eb29c76202f19017031ddc1f95dd3'Hendrik Leppkes2015-10-101-0/+10
|\ \ | |/ | | | | | | | | | | * commit '2830bce47e2eb29c76202f19017031ddc1f95dd3': w32pthreads: Load dynamically loaded functions on demand Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * w32pthreads: Load dynamically loaded functions on demandHendrik Leppkes2015-10-071-0/+10
| | | | | | | | | | | | | | This removes the requirement of calling w32thread_init before being able to use the threading primitives. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge commit 'b22693b06d1e5d73454a65c203b4d31c1ca5b69a'Hendrik Leppkes2015-10-101-0/+72
|\ \ | |/ | | | | | | | | | | * commit 'b22693b06d1e5d73454a65c203b4d31c1ca5b69a': w32pthreads: Add pthread_once emulation Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * w32pthreads: Add pthread_once emulationHendrik Leppkes2015-10-071-0/+73
| | | | | | | | | | | | | | | | The emulation uses native InitOnce* APIs on Windows Vista+, and a lock-free/allocation-free approach using atomics and spinning for Windows XP. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
| * use a wrapper script to call MS link.exe to avoid mixing with /usr/bin/link.exeSteve Lhomme2015-07-241-0/+9
| | | | | | | | | | | | Fallback to "link" in the path if the one next to cl is not found. Signed-off-by: Martin Storsjö <martin@martin.st>
| * w32pthreads: use the condition variable API directly when targeting newer ↵James Almer2014-10-101-22/+38
| | | | | | | | | | | | | | | | | | | | versions of Windows Wrap the function calls in a similar fashion to how it's being done with the critical section API. Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Martin Storsjö <martin@martin.st>
| * w32pthreads: use the CONDITION_VARIABLE typedef if availableJames Almer2014-10-101-10/+13
| | | | | | | | | | | | | | | | This silences warnings about passing arguments from incompatible pointer type when targeting Windows Vista or newer. Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Martin Storsjö <martin@martin.st>
* | compat/w32pthreads: Add return values to match the simulated pthread functions.Matt Oliver2015-09-301-13/+23
| |
* | use a wrapper script to call MS link.exe to avoid mixing with /usr/bin/link.exeSteve Lhomme2015-07-241-0/+9
| | | | | | | | | | | | | | favor link over link.exe in case some wrapper script already exists fallback to "link" in the path if the one next to cl is not found Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | compat/os2threads: Check av_malloc() return codeMichael Niedermayer2015-06-021-0/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avisynth: drop support of AviSynth 2.5Stephen Hutchinson2015-03-251-68/+0
| | | | | | | | | | | | | | If the user attempts to use AviSynth 2.5, an error message will now tell them they need to upgrade. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avisynth: ifdef to avoid implicit function declaration errorsStephen Hutchinson2015-03-251-0/+8
| | | | | | | | | | | | | | | | The demuxer doesn't use these functions, so it shouldn't affect anything. Investigate whether this can be fixed by how headers are checked in configure. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avisynth: update headers against AviSynth+Stephen Hutchinson2015-03-254-151/+313
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | compat/avisynth/windowsPorts/windows2linux: Add () to protect macro argumentsMichael Niedermayer2015-02-181-2/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | compat/avisynth/avxsynth_c: Clear all unused fields in returned structsMichael Niedermayer2014-12-111-7/+7
| | | | | | | | | | | | Fixes: CID1257658 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | compat/w32pthreads: use the condition variable API directly when targeting ↵James Almer2014-10-091-22/+39
| | | | | | | | | | | | | | | | | | | | newer versions of Windows Wrap the function calls in a similar fashion to how it's being done with the critical section API. Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
* | compat/w32pthreads: use the CONDITION_VARIABLE typedef if availableJames Almer2014-10-091-10/+13
| | | | | | | | | | | | | | | | | | This silences warnings about passing arguments from incompatible pointer type when targeting Windows Vista or newer. Tested-by: Matt Oliver <protogonoi@gmail.com> Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
* | Merge commit 'f929ab0569ff31ed5a59b0b0adb7ce09df3fca39'Michael Niedermayer2014-08-152-3/+3
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f929ab0569ff31ed5a59b0b0adb7ce09df3fca39': cosmetics: Write NULL pointer equality checks more compactly Conflicts: cmdutils.c ffmpeg_opt.c ffplay.c libavcodec/dvbsub.c libavcodec/dvdsubdec.c libavcodec/dvdsubenc.c libavcodec/dxa.c libavcodec/libxvid_rc.c libavcodec/mpegvideo.c libavcodec/mpegvideo_enc.c libavcodec/rv10.c libavcodec/tiffenc.c libavcodec/utils.c libavcodec/vc1dec.c libavcodec/zmbv.c libavdevice/v4l2.c libavformat/matroskadec.c libavformat/movenc.c libavformat/sdp.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * cosmetics: Write NULL pointer equality checks more compactlyGabriel Dume2014-08-151-1/+1
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | Merge commit '6baeadd11083774ebd823dd5e1a744c2150a3bfc'Michael Niedermayer2014-08-151-10/+11
|\ \ | |/ | | | | | | | | | | | | | | | | * commit '6baeadd11083774ebd823dd5e1a744c2150a3bfc': w32pthreads: Mark functions in compatibility wrapper as av_unused Conflicts: compat/w32pthreads.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * w32pthreads: Mark functions in compatibility wrapper as av_unusedDiego Biurrun2014-08-151-10/+11
| | | | | | | | | | | | This avoids annoying warnings about unused functions. The compatibility wrapper is designed to provide a complete (stub) API, so some functions being unused by some files is natural and no reason for a warning.
* | Merge commit '428b0578c64241fc677fed7083cc8fe65e10f32e'Michael Niedermayer2014-08-131-0/+12
|\ \ | |/ | | | | | | | | | | * commit '428b0578c64241fc677fed7083cc8fe65e10f32e': w32threads: Use newer thread synchronization functions when targeting Vista Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * w32threads: Use newer thread synchronization functions when targeting VistaMartin Storsjö2014-08-131-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When explicitly targeting Vista or newer (which only happens if the caller explicitly sets _WIN32_WINNT to a high enough value via the extra cflags option - otherwise configure script sets -D_WIN32_WINNT=0x0502), we already unconditionally link to the ConditionVariable functions, since 4622f11f9. Similarly use the newer -Ex versions of CreateEvent, CreateSemaphore, InitializeCriticalSection and WaitForSingleObject, that all appeared in Vista. When building Windows Store applications, the older versions of these functions aren't available, only the -Ex functions. When doing such a build, the user can set -D_WIN32_WINNT=0x0600 to forcibly use the newer functions instead. Signed-off-by: Martin Storsjö <martin@martin.st>
* | compat/w32pthreads: add return value to pthread_cond_init().Nicolas George2014-05-261-5/+6
| |
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2014-03-102-0/+57
|\ \ | |/ | | | | | | | | | | * qatar/master: Work around broken floating point limits on some systems. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Work around broken floating point limits on some systems.Anton Khirnov2014-03-102-0/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | The values of {FLT,DBL}_{MAX,MIN} macros on some systems (older musl libc, some BSD flavours) are not exactly representable, i.e. (double)DBL_MAX == DBL_MAX is false This violates (at least some interpretations of) the C99 standard and breaks code (e.g. in vf_fps) like double f = DBL_MAX; [...] if (f == DBL_MAX) { // f has not been changed yet [....] }
* | Correct the FSF address for two avisynth files to '51 Franklin Street, Fifth ↵Andreas Cadhalpun2014-03-062-2/+4
| | | | | | | | | | | | Floor, Boston, MA 02110-1301 USA' Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
OpenPOWER on IntegriCloud