Diego Biurrun and James Almer
5cae5a1def
configure: Move x86 assembler sanity check into assembler probe function
...
This allows for more graceful fallback from NASM to Yasm if the available
NASM version is too old.
(Cherry-picked from libav commit adfd7892e3 )
Signed-off-by: James Almer <jamrial@gmail.com >
2017-06-21 17:00:31 -03:00
Diego Biurrun and James Almer
4f9297ac3b
build: Prefer NASM assembler over YASM
...
NASM is more actively maintained and permits generating dependency information
as a sideeffect of assembling, thus cutting build times in half.
(Cherry-picked from libav commit 57b753b445 )
Signed-off-by: James Almer <jamrial@gmail.com >
2017-06-21 17:00:30 -03:00
Diego Biurrun and James Almer
d44935cbf4
build: Explicitly set 32-bit/64-bit object formats for nasm/yasm
...
Consistently use object format names with "32" suffix and set object format
to "win64" on Windows x86_64, which fixes assembling with nasm.
(Cherry-picked from libav commit 808ef43597 )
Signed-off-by: James Almer <jamrial@gmail.com >
2017-06-21 17:00:30 -03:00
Diego Biurrun and James Almer
0cc0c5b6db
build: Allow generating dependencies as a side-effect of assembling
...
(Cherry-picked from libav commit 3c0efbd033 )
Signed-off-by: James Almer <jamrial@gmail.com >
2017-06-21 17:00:29 -03:00
Diego Biurrun and James Almer
fd502f4f5f
build: Generalize yasm/nasm-related variable names
...
None of them are specific to the YASM assembler.
(Cherry-picked from libav commit 39e208f4d4 )
Signed-off-by: James Almer <jamrial@gmail.com >
2017-06-21 17:00:29 -03:00
Diego Biurrun and Paul B Mahol
155f071bad
build: Add missing idctdsp dependency for clearvideo
...
(cherry picked from commit 2f792cb670 )
2017-06-20 11:56:36 +02:00
Diego Biurrun and James Almer
fbc304239f
build: Ignore generated .version files
...
(cherry picked from commit 740b0bf03b )
Signed-off-by: James Almer <jamrial@gmail.com >
2017-05-07 14:18:34 -03:00
Diego Biurrun and James Almer
b0f67d03c5
ac3enc: Avoid unnecessary macro indirections
...
Signed-off-by: James Almer <jamrial@gmail.com >
2017-04-07 00:25:55 -03:00
Diego Biurrun and James Almer
f8e29a3716
build: Add missing object dependency for extract_extradata bitstream filter
...
Cherry-picked from libav commit cfee5e1a0f
Signed-off-by: James Almer <jamrial@gmail.com >
2017-04-02 16:09:23 -03:00
Diego Biurrun and Mark Thompson
6ff3da4f6a
Place attribute_deprecated in the right position for struct declarations
...
libavcodec/vaapi.h:58:1: warning: attribute 'deprecated' is ignored, place it after "struct" to apply attribute to type declaration [-Wignored-attributes]
(cherry picked from commit ed6a891c36 )
Signed-off-by: Mark Thompson <sw@jkqxz.net >
2017-03-22 19:07:32 +00:00
Diego Biurrun and Paul B Mahol
b4da4307a9
avcodec/fmvc: small refactoring in decode_type1()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2017-03-21 11:46:43 +01:00
Diego Biurrun
ba6a49e60b
configure: Clean up temporary files on interrupt
2017-01-29 20:17:46 +01:00
Diego Biurrun
2bbb5abd87
build: Map -Wall compiler flag to -W3 for MSVC and -Wextra to -W4
...
These are more appropriate warning level equivalents.
2017-01-26 11:53:02 +01:00
Diego Biurrun
6151e9128c
build: Detect blocks C language extension and add it as VDA dependency
...
Newer versions of OS X use the blocks extension in VDA-related headers.
Some compilers, like current gcc, do not support the blocks extension
and fail to compile code using those headers.
2017-01-26 11:53:02 +01:00
Diego Biurrun
9bf262f4c6
configure: Use proper compiler-specific speed flags for hostcc
2017-01-25 13:25:02 +01:00
Diego Biurrun
bf38959a30
configure: Move optflags checks to a more sensible place
2017-01-25 12:01:02 +01:00
Diego Biurrun
2e0e150144
magicyuv: Convert to the new bitstream reader
2017-01-25 10:38:43 +01:00
Diego Biurrun
b061f298f7
truemotion2rt: Convert to the new bitstream reader
2017-01-25 09:55:36 +01:00
Diego Biurrun
b83aea7340
des-test: Pass the proper types to av_des_*() functions
...
Fixes a number of incompatible pointer type warnings.
2017-01-24 13:25:53 +01:00
Diego Biurrun
5c0e2b13eb
swscale-test: const correctness for pointer variable
...
libswscale/swscale-test.c:369:20: warning: passing argument 2 of ‘sws_scale’ from incompatible pointer type [-Wincompatible-pointer-types]
libswscale/swscale.h:207:5: note: expected ‘const uint8_t * const* {aka const unsigned char * const*}’ but argument is of type ‘uint8_t ** {aka unsigned char **}’
2017-01-24 13:03:57 +01:00
Diego Biurrun
122de16dd8
Replace cmdutils_common_opts.h by a macro
2017-01-12 11:42:21 +01:00
Diego Biurrun
2a2889e130
build: Remove stray duplicate conditional variable declaration
2017-01-12 10:55:09 +01:00
Diego Biurrun
00b6a76543
hmac: Explicitly convert types at function pointer assignment
...
Fixes a number of warnings of the type
libavutil/hmac.c:61:21: warning: assignment from incompatible pointer type
2017-01-09 15:18:16 +01:00
Diego Biurrun
e435beb1ea
crypto: consistently use size_t as type for length parameters
...
size_t is the correct type to use for sizes.
2017-01-09 15:17:43 +01:00
Diego Biurrun
ee164727dd
configure: Fix typo in incdir variable written to config.sh
...
This fixes includedir lines in pkg-config files broken after 92db508307 .
2016-12-30 14:30:52 +01:00
Diego Biurrun
8a34f36593
build: Add version numbers to "Requires" entries in pkg-config files
...
The (required) version numbers disappeared after edb4348732 .
2016-12-28 17:41:54 +01:00
Diego Biurrun
53618054b6
parser: Add missing #include for printing ISO C99 conversion specifiers
2016-12-25 13:22:50 +01:00
Diego Biurrun
0b77a59336
Use correct printf conversion specifiers for POSIX integer types
2016-12-23 19:30:00 +01:00
Diego Biurrun
92db508307
build: Generate pkg-config files from Make and not from configure
...
This moves work from the configure to the Make stage where it can
be parallelized and ensures that pkgconfig files are updated when
library versions change.
Bug-Id: 449
2016-12-22 12:30:54 +01:00
Diego Biurrun
edb4348732
build: Store library version numbers in .version files
...
This moves work from the configure to the Make stage where it can
be parallelized and ensures that shared libraries are built with
the right version number in the filename.
2016-12-22 12:17:37 +01:00
Diego Biurrun
11a9320de5
build: Move build-system-related helper files to a separate subdirectory
...
This unclutters the top-level directory and groups related files together.
2016-12-22 11:07:50 +01:00
Diego Biurrun
f9edc734e0
ratecontrol: Drop xvid-rc-related struct members unused after a6901b9c6
2016-12-21 11:13:20 +01:00
Diego Biurrun
ee480790c7
build: Add name parameter to check_lib() helper function
...
This allows enabling or disabling the library-related variables from
within the function instead of doing it manually outside of it.
2016-12-16 13:39:22 +01:00
Diego Biurrun
1faffe7e8f
configure: Disentangle vfw32 and user32 lib handling
...
Check for and link against user32 instead, which also fixes
the missing dependency of dxva2 on user32 with MSVC.
2016-12-16 13:37:33 +01:00
Diego Biurrun and James Almer
2d7aadf3d9
Add missing #includes for standalone spherical-information-related headers
...
(cherry picked from commit f912fd767e )
Signed-off-by: James Almer <jamrial@gmail.com >
2016-12-14 13:33:30 -03:00
Diego Biurrun
05a603a94e
ppc: Merge types_altivec.h into util_altivec.h
...
There is no point in keeping the two separate.
2016-12-14 14:08:43 +01:00
Diego Biurrun
ea7ee4b4e3
ppc: Centralize compiler-specific altivec.h #include handling in one place
...
Also move #includes into canonical order where appropriate.
2016-12-14 14:08:43 +01:00
Diego Biurrun
39929e55eb
ppc: hevcdsp: Use shorthands for vector types
...
This is more consistent and fixes compilation with clang.
2016-12-14 14:08:43 +01:00
Diego Biurrun
554e55bbf0
decode.h: Add missing headers to fix standalone compilation
2016-12-14 14:08:43 +01:00
Diego Biurrun
6aa4ba7131
dxva2: Keep code shared between dxva2 and d3d11va under the correct #if
...
This partially reverts commit ac648bb835 .
2016-12-12 13:44:25 +01:00
Diego Biurrun
fc368497f2
configure: Add missing dxva2 dependency for dxva2_lib
2016-12-12 00:15:38 +01:00
Diego Biurrun
f1248fae90
configure: Handle dxva2 optional components in the standard way
2016-12-11 09:27:40 +01:00
Diego Biurrun
a6901b9c6b
Drop libxvid rate control support for mpegvideo encoding
...
The feature has outlived is usefulness and complicates the code.
2016-12-11 09:27:40 +01:00
Diego Biurrun
ac648bb835
dxva2: Simplify some ifdefs
2016-12-11 09:27:40 +01:00
Diego Biurrun
f8a1ead0ae
build: Add -D_XOPEN_SOURCE=600 to CPPFLAGS on Cygwin
...
This is required to make certain math defines visible on modern Cygwin.
2016-12-10 16:14:25 +01:00
Diego Biurrun
39fbcf8f76
configure: Fix _libs vs. _extralibs oversight
2016-12-10 15:06:34 +01:00
Diego Biurrun
be2d555c98
build: Use _extralibs variable names instead of _libs everywhere
...
This makes naming more consistent and simplifies extralibs-related changes.
2016-12-09 18:57:03 +01:00
Diego Biurrun
0507cd5b9f
build: Rename host_libs/HOSTLIBS variables to host_extralibs/HOSTEXTRALIBS
...
This is more in line with the other related variable names.
2016-12-09 18:51:23 +01:00
Diego Biurrun
a7101eb40e
configure: Simplify some library checks via check_lib()
2016-12-09 18:40:47 +01:00
Diego Biurrun
1818a640cf
build: Fix dependencies for alsa/jack/sndio support
...
These components should depend on the availability of the respective
libraries, not just on the availability of the respective headers.
2016-12-09 08:42:34 +01:00
Diego Biurrun
af451ac0de
configure: Drop redundant and partly bogus vaapi/vdpau header checks
...
These are taken care of more correctly by the library checks.
2016-12-09 08:42:08 +01:00
Diego Biurrun
932cc6496e
vdpau: Do not #include vdpau_x11.h from the main vdpau header
...
That header should only be included in the special bits that use X11 code.
2016-12-09 08:41:53 +01:00
Diego Biurrun
92e6b31c3b
dxva2: Adjust multiple inclusion guard names to follow convention
2016-12-09 08:41:52 +01:00
Diego Biurrun
d5759701a8
libkvazaar: Add missing header #includes
...
This fixes compilation after the next version bump.
2016-12-08 21:34:30 +01:00
Diego Biurrun
892acc7010
configure: Fail if cuda was enabled and is not available
...
This is the standard behavior for external libraries.
2016-12-08 20:12:24 +01:00
Diego Biurrun
f55c0a64ae
build: Drop stray golomb dependencies
2016-12-08 20:12:24 +01:00
Diego Biurrun
fbec58daa2
build: Add an internal component for hevc_ps code
...
This allows expressing dependencies in a more correct way.
2016-12-08 20:12:23 +01:00
Diego Biurrun
f912fd767e
Add missing #includes for standalone spherical-information-related headers
2016-12-08 20:12:23 +01:00
Diego Biurrun
624aa8ab22
build: Add missing Makefile entries and ifdefs for QSV hwaccels
2016-12-07 15:46:57 +01:00
Diego Biurrun
c833c2034f
build: Ensure that the "all" target appears before all Makefile includes
...
Otherwise builds without explicit target result in silent no-ops.
2016-12-07 15:46:57 +01:00
Diego Biurrun
6bd9590b33
build: Have old H.264/HEVC nvenc encoders select their new counterparts
...
This makes sense and takes care of missing build dependencies.
2016-12-07 12:13:23 +01:00
Diego Biurrun
3e105d0884
build: Move entries related to building TOOLS to a subdirectory Makefile
2016-12-07 11:02:31 +01:00
Diego Biurrun
4104cc5622
build: Warn that reconfiguration is necessary if version.h files changed
...
The library versions are stored in the config.mak file and are used
to derive shared library names.
2016-12-07 11:02:31 +01:00
Diego Biurrun
404cb74793
configure: Pass CFLAGS_HEADERS through the right CFLAGS filter
...
The generic parameter names used for CFLAGS in configure must be filtered
for each compiler and replaced by the equivalent flag for that compiler.
2016-12-06 17:49:05 +01:00
Diego Biurrun
9265364bec
build: Separate avisynth and avxsynth support
...
This simplifies the code.
2016-12-06 17:49:05 +01:00
Diego Biurrun
3d6135eacf
configure: Simplify OMX check
2016-12-06 08:33:08 +01:00
Diego Biurrun
601f8dde13
configure: Move COMPONENT_LIST to the bottom of CONFIG_LIST
...
This ensures that dependencies are resolved correctly. COMPONENT_LIST
can contain parts that depend on previous entries of CONFIG_LIST.
2016-12-06 08:33:07 +01:00
Diego Biurrun
29d2e03ed9
configure: Simplify and fix avfoundation indev handling
...
Handle extralibs in the standard way, add missing pthreads dependency.
Also globally check for -fobj-arc with Objective-C compilers since
that option is useful for other Objective-C code as well.
2016-12-05 18:07:24 +01:00
Diego Biurrun
5d45fe7da9
build: Add EXTRALIBS to TOOLS linker command
...
EXTRALIBS contains general and platform-specific extra libraries
that should be part of all linker commands.
2016-12-05 16:39:52 +01:00
Diego Biurrun
2a09644076
configure: Separate package name and version requirements in helper functions
...
The unadorned package name is needed to derive package-related variable names.
2016-12-05 16:37:55 +01:00
Diego Biurrun
ffb9025f39
configure: Simplify MMAL check
2016-12-05 16:15:40 +01:00
Diego Biurrun
660470cd62
build: Add missing audio_frame_queue dependency for libwavpack encoder
2016-12-05 16:13:05 +01:00
Diego Biurrun
e1dc5358af
build: Create a component for MPEG audio header decoding
...
Fixes standalone compilation of the libmp3lame encoder.
2016-12-05 16:13:05 +01:00
Diego Biurrun
0fdc9f81a0
build: Add missing hevc_ps dependency for QSV HEVC encoder
2016-12-05 16:13:04 +01:00
Diego Biurrun
6ef3360a38
configure: Add misssing qpeldsp dependency to mss2 decoder
2016-12-03 14:06:36 +01:00
Diego Biurrun
14bba44fb2
build: Drop support for configuring library name suffixes
...
It is of doubtful utility, adds complexity and no known users exist.
2016-12-03 09:15:01 +01:00
Diego Biurrun
1ea77aae92
configure: Drop bogus xcb_event variables
2016-12-03 09:15:01 +01:00
Diego Biurrun
3794062ab1
Remove Plan 9 support
...
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-03 09:15:01 +01:00
Diego Biurrun
4a1ef54398
build: Drop support for old versions of libdc1394
...
The libdc1394 API transition was finished close to a decade ago.
2016-12-03 09:15:01 +01:00
Diego Biurrun
2575b1917b
build: Add separate flags for checkheaders targets
...
This allows filtering out some warning noise.
2016-12-03 08:00:33 +01:00
Diego Biurrun
984e50e74b
build: Add -Wpedantic and -Wextra to extra warning flags
...
Also drop -Winline from set of warning flags as it only produces noise.
2016-12-03 08:00:33 +01:00
Diego Biurrun
0a35f128f3
cabac: x86: Give optimizations header a more meaningful name
2016-12-01 08:23:54 +01:00
Diego Biurrun
e4382a4ab4
hevc: Eliminate pointless variable indirection
2016-11-30 14:11:44 +01:00
Diego Biurrun
5c89022542
hevc: Drop pointless av_unused attribute
2016-11-30 14:11:43 +01:00
Diego Biurrun
0983f9117f
metasound: Drop unused tables
2016-11-30 13:44:05 +01:00
Diego Biurrun
c21d78a903
configure: Integrate X11 checks into vaapi/vdpau checks
2016-11-29 19:14:07 +01:00
Diego Biurrun
8b56dbe743
configure: Do not add newlines in filter()/filter_out() functions
2016-11-29 18:43:05 +01:00
Diego Biurrun
9254344e11
configure: Move hardware-accelerated codec deps out of hwaccel section
2016-11-29 15:10:58 +01:00
Diego Biurrun
d4f2a681cb
configure: MMAL-related decoders should depend on, not select, mmal
2016-11-29 15:10:58 +01:00
Diego Biurrun
212c6a1d70
mjpegdec: Check return values of functions that may fail
2016-11-29 13:13:35 +01:00
Diego Biurrun
3ee5f25d37
dxva2: Adjust printf length modifiers where appropriate
2016-11-29 13:13:35 +01:00
Diego Biurrun
239d02eff3
avisynth: Cast to the right type when loading avisynth library functions
...
Fixes a number of related warnings.
2016-11-29 13:13:35 +01:00
Diego Biurrun
eb135516e6
ac3enc: Avoid unnecessary macro indirections
2016-11-28 17:19:30 +01:00
Diego Biurrun
f0d3e43bd7
ac3enc: Reshuffle functions to avoid forward declarations
2016-11-28 17:19:30 +01:00
Diego Biurrun
e22c63ac74
ac3enc: Reshuffle some float/fixed-mode ifdefs to avoid a dummy function
2016-11-28 17:19:30 +01:00
Diego Biurrun
e122b12c88
build: Drop gcrypt support
...
GnuTLS in combination with gcrypt has been deprecated since 2010.
2016-11-25 18:46:53 +01:00
Diego Biurrun
bf2f748fc7
configure: Use correct libm linker flag during math function checks
2016-11-25 18:46:52 +01:00
Diego Biurrun
ce6f780bc6
configure: Add missing asyncts filter, movie filter, and output example deps
...
Also add a missing avcodec.h #include in the movie filter.
2016-11-25 18:45:27 +01:00
Diego Biurrun
04698d528c
configure: Use correct variable name in libsnappy test
2016-11-25 16:44:57 +01:00
Diego Biurrun
30f0d1b997
configure: Remove old avisynth support leftover
2016-11-25 16:44:56 +01:00