Diego Biurrun and James Almer
cbe181c8e1
build: Skip generating .version files when cleaning
...
Signed-off-by: James Almer <jamrial@gmail.com >
2017-09-10 01:22:57 -03:00
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
4d4d7cf9d5
fmvc: Add FATE tests
2017-04-13 12:35:47 +02:00
Diego Biurrun
193b091890
thread: Define ff_mutex_* macros as stub functions when threads are disabled
...
Silences a bunch of "statement with no effect" warnings with threads disabled.
2017-04-12 10:07:09 +02: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
b62ed68738
configure: Better names for functions that sanitize input
2017-04-03 14:39:08 +02:00
Diego Biurrun
604fbb3132
mov: Move code shared with CAF to a separate file
2017-04-03 13:50:00 +02: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
163cc67beb
takdec: Use ISO C printf conversion specifiers where appropriate
...
libavformat/takdec.c:144:20: warning: format '%X' expects argument of type 'unsigned int', but argument 4 has type 'uint32_t'
2017-03-31 18:41:58 +02:00
Diego Biurrun
5a969f64b9
jack: Drop support for old (2012) JACK versions
2017-03-28 09:11:00 +02:00
Diego Biurrun
75ef915434
configure: Disable inline assembly for PathScale compilers
...
These compilers pass the inline assembly check, but fail to compile
our inline assembly in various ways.
2017-03-27 09:47:58 +02:00
Diego Biurrun
d6390090c4
configure: Skip check for inline assembly capabilities when explicitly disabled
...
Otherwise inline assembly may get enabled when disabled on the command line.
2017-03-24 20:24:08 +01:00
Diego Biurrun and Vittorio Giovara
dcc39ee10e
lavc: Remove deprecated XvMC support hacks
...
Deprecated in 11/2013.
2017-03-23 10:09:14 +01: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
b864230c49
rtmp: Move RTMP digest calculation to a separate file
...
The rtmpcrypt protocol requires it.
2017-03-20 13:16:51 +01:00
Diego Biurrun
cfee5e1a0f
build: Add missing object dependency for extract_extradata bitstream filter
2017-03-20 13:16:51 +01:00
Diego Biurrun
681a86aba6
x86: fft: Port to cpuflags
2017-03-14 17:23:32 +01:00
Diego Biurrun
e9bb77fb10
x86: h264: Simplify DEQUANT macro with cpuflags
2017-03-14 17:23:32 +01:00
Diego Biurrun
307eb1a8ee
x86: vp8dsp: port FILTER_BILINEAR macro to cpuflags
2017-03-14 17:23:32 +01:00
Diego Biurrun
994c4bc107
x86util: Port all macros to cpuflags
...
Also do some small cosmetic changes: Drop pointless _MMX suffix from ABSD2
macro name, drop pointless check for MMX support, we always assume MMX is
available in our SIMD code, fix spelling.
2017-03-14 17:23:32 +01:00
Diego Biurrun and Luca Barbato
b57a95d014
cfhd: Add FATE tests
2017-03-09 18:37:29 +01:00
Diego Biurrun
57b753b445
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.
2017-03-07 08:32:37 +01:00
Diego Biurrun
003124ebf4
build: Fix logic of clock_gettime() check
...
We should only check for clock_gettime() if _POSIX_MONOTONIC_CLOCK is
available and do a full link check for clock_gettime() in all cases.
2017-03-07 08:32:37 +01:00
Diego Biurrun
f54037da8a
build: Make x86 assembler commandline-selectable
2017-03-07 08:32:37 +01:00
Diego Biurrun
51411eb7ff
build: Special-case handling of SDL CFLAGS
...
SDL adds some "special" CFLAGS that interfere with building normal
binaries. Capture those CFLAGS separately and avoid adding them to
the general CFLAGS.
2017-03-07 08:32:37 +01:00
Diego Biurrun
808ef43597
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.
2017-03-05 14:38:56 +01:00
Diego Biurrun
6eef263aca
x86: Merge align directives into SECTION_RODATA declarations where possible
2017-03-05 14:26:06 +01:00
Diego Biurrun
5ff3b5cafc
build: Add pthreads to list of avutil extralibs
...
libavutil uses pthreads in the buffer code (abstracted through a header).
2017-03-01 12:02:11 +01:00
Diego Biurrun
db869f4ea4
fate: Add build-only targets to FATE
2017-03-01 11:06:52 +01:00
Diego Biurrun
3c0efbd033
build: Allow generating dependencies as a side-effect of assembling
2017-03-01 10:18:15 +01:00
Diego Biurrun
39e208f4d4
build: Generalize yasm/nasm-related variable names
...
None of them are specific to the YASM assembler.
2017-03-01 10:18:15 +01:00
Diego Biurrun
d1d6230ea3
build: Add "build" shorthand target that depends on all compile targets
2017-03-01 10:13:26 +01:00
Diego Biurrun
4d1f7e8bc7
build: Skip generating .version files when cleaning
2017-03-01 09:42:39 +01:00
Diego Biurrun
58407b4d74
configure: Fix typo in objcc default setting
...
Also drop stray duplicate OBJCC config.mak entry.
2017-03-01 09:23:42 +01:00
Diego Biurrun
fde7ee8710
x86: hevc: Add missing colons after assembly labels
...
This fixes several warnings of the sort
warning: label alone on a line without a colon might be in error
2017-03-01 09:23:42 +01:00
Diego Biurrun
7cb1d9e2db
build: Fine-grained link-time dependency settings
...
Previously, all link-time dependencies were added for all libraries,
resulting in bogus link-time dependencies since not all dependencies
are shared across libraries. Also, in some cases like libavutil, not
all dependencies were taken into account, resulting in some cases of
underlinking.
To address all this mess a machinery is added for tracking which
dependency belongs to which library component and then leveraged
to determine correct dependencies for all individual libraries.
2017-03-01 09:00:40 +01:00
Diego Biurrun
d154bdd3d0
configure: Simplify dlopen check
2017-03-01 09:00:40 +01:00
Diego Biurrun
21cca00dfe
build: Explicitly disable external libraries when not explicitly enabled
...
Leaving those variables in an undefined state allows them getting implicitly
enabled when they are declared as weak dependencies of other components.
In that case, the library check is not run and required linker flags are not
added, resulting in a failing build.
Fixes linking when enabling libfreetype without libfontconfig.
2017-02-28 13:00:20 +01:00
Diego Biurrun
e1a6d63c7e
fate: Rename WMV8_DRM decoder tests to WMV3_DRM
...
The codec used in those files is WMV3/WMV9, not WMV2/WMV8.
2017-02-28 13:00:20 +01:00
Diego Biurrun
698ac8f9ca
fate: Make null comparison method more useful
...
This allows dropping /dev/null as reference value when no output is generated.
2017-02-27 13:57:35 +01:00
Diego Biurrun
c483398bb7
build: Drop DOC_ prefix from EXAMPLES-related variables
2017-02-27 13:57:35 +01:00
Diego Biurrun
4141a5a240
Use modern avconv syntax for codec selection in documentation and tests
2017-02-27 10:36:45 +01:00
Diego Biurrun
da8093f712
fate: Use bitexact optimizations in the svq3-2 test
...
This fixes the test with mmxext disabled because the current reference
frame hashes correspond to the non-bitexact mmxext optimizations.
2017-02-27 10:36:44 +01:00
Diego Biurrun
8e4d4efc67
fate: Add another SVQ3 test to increase coverage
2017-02-24 10:59:42 +01:00
Diego Biurrun
ed6a891c36
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]
2017-02-23 12:23:20 +01:00
Diego Biurrun
c95169f0ec
build: Move cli tool sources to a separate subdirectory
...
This unclutters the top-level directory and groups related files together.
2017-02-21 16:10:51 +01:00
Diego Biurrun
ab566cc96b
build: Separate logic for building examples from that for building avtools
2017-02-21 16:10:51 +01:00
Diego Biurrun
acb0dea27e
build: Split logic for building examples off into a separate Makefile
2017-02-21 16:10:51 +01:00
Diego Biurrun
db4903eb48
build: Avoid duplication in examples lists
2017-02-21 16:10:51 +01:00
Diego Biurrun
533339bdcc
build: Drop leftover reference to old EXAMPLES logic
2017-02-21 16:10:51 +01:00
Diego Biurrun
7208e5b5d6
configure: Restructure the way check_pkg_config() operates
...
Have check_pkg_config() enable variables and set cflags and extralibs
instead of relegating that task to require_pkg_config. This simplifies
require_pkg_config(), is consistent with what other helper functions
like check_lib() do and allows getting rid of some manual variable
setting in places where check_pkg_config() is used.
2017-02-20 20:16:05 +01:00
Diego Biurrun
54e39b102e
configure: Explicitly spell out first require_pkg_config() parameter
...
This is less confusing than encountering "" in the argument list.
2017-02-20 20:16:05 +01:00
Diego Biurrun
00b160af11
nvenc: Fix nvec vs. nvenc typo
2017-02-20 09:50:03 +01:00
Diego Biurrun
d00a0d8e84
configure: Handle SDL version check through pkg-config
2017-02-16 09:28:33 +01:00
Diego Biurrun
871b4f3654
configure: Check for xcb as well as xcb-shape before enabling libxcb
...
Newer versions of libxcb have xcb-foo pkg-config files that do not declare
their xcb dependency so that required linker flags will not be generated.
2017-02-15 10:33:34 +01:00
Diego Biurrun
c546147db0
configure: Correctly recurse in do_check_deps()
...
Fixes all sorts of configuration problems introducec by dad7a9c7c0
on non-Linux or non-vanilla configs. Also removes a line made redundant
in that commit.
2017-02-08 21:23:41 +01:00
Diego Biurrun
dad7a9c7c0
configure: Rework dependency handling for conflicting components
...
This makes the feature more visible and obvious.
2017-02-07 19:06:04 +01:00
Diego Biurrun
9127ac5ebc
configure: Add name parameter to require_pkg_config() helper function
...
This allows distinguishing between the internal variable name for
external libraries and the pkg-config package name. Having both
names available avoids special-casing outside the helper function
when the two identifiers do not match.
2017-02-07 19:06:02 +01:00
Diego Biurrun
a25dac976a
Use bitstream_init8() where appropriate
2017-02-07 18:27:21 +01:00
Diego Biurrun
71a49fe25f
configure: Use cppflags check helper functions where appropriate
2017-02-06 15:43:56 +01:00
Diego Biurrun
0ce3761c78
configure: Add stdlib.h #include to CPPFLAGS check helper functions
...
This ensures that added CPPFLAGS are validated against libc headers.
2017-02-06 15:43:56 +01:00
Diego Biurrun
7abdd026df
asm: Consistently uppercase SECTION markers
2017-02-03 11:37:53 +01:00
Diego Biurrun
740b0bf03b
build: Ignore generated .version files
2017-02-03 11:37:53 +01:00
Diego Biurrun
bcaedef118
configure: Add require_cpp_condition() convenience function
...
Simplifies checking for conditions in external library headers and
aborting if said conditions are not met.
2017-02-02 17:49:51 +01:00
Diego Biurrun
aba7fdcc8b
configure: Add require_header() convenience function
...
Simplifies checking for external library headers and aborting if
the external library support was requested, but is not available.
2017-02-02 17:49:51 +01:00
Diego Biurrun
a97563c889
configure: Simplify libxcb check
2017-02-02 17:38:50 +01:00
Diego Biurrun
acfa7a2178
configure: Drop weak dependencies on external libraries for webm muxer
...
Weak dependencies on external libraries do not obviate having to
explicitly enable these libraries, so the weak dependency does not
simplify the configure command line nor have any real effect.
2017-02-02 14:35:44 +01:00
Diego Biurrun
6698832079
configure: Add proper weak dependency of drawtext filter on libfontconfig
2017-02-02 14:35:44 +01:00
Diego Biurrun
24d5680bbc
configure: Simplify inline asm check with appropriate helper function
2017-02-02 14:34:05 +01:00
Diego Biurrun
b3825723dc
configure: Merge compiler/libc/os hacks sections
2017-02-02 14:34:05 +01:00
Diego Biurrun
d4c2103bd3
golomb: Convert to the new bitstream reader
2017-01-31 17:46:19 +01:00
Diego Biurrun
ab87af4163
configure: Add proper weak dependency of avformat on network
2017-01-31 15:50:20 +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