Age | Commit message (Collapse) | Author |
|
Add duplicate prototypes to ref_mvs.c for now, since ref_mvs.h can't
be included.
Signed-off-by: James Almer <jamrial@gmail.com>
|
|
Replaces the boolean 'build_libfuzzer' meson option with 'fuzzing_engine'.
This allows reproducing fuzzing test cases on systems without libfuzzer.
Also prevents regressions in the fuzzing test target since it will be
build by default.
|
|
Sets the meson b_ndebug option to default to if-release,
so that asserts are disabled in release builds.
|
|
This fixes warnings like these, if not all bitdepths are enabled:
../src/decode.c: In function ‘dav1d_submit_frame’:
../src/decode.c:2825:5: warning: "CONFIG_10BPC" is not defined [-Wundef]
#if CONFIG_10BPC
|
|
|
|
The x86 asm requires nasm and an error from meson is easier to
understand than cryptic errors from nasm.
|
|
Disabled by default, enabble with `meson -Dbuild_libfuzzer=true -Db_lundef=false ...`.
Fuzz target improved by the paralell work by Thierry Foucu in !138.
|
|
|
|
|
|
|
|
Due to bugs in meson the approach with the intermediate static library
for tests does not work very well, see #44. Therefore this commits
removes that helper library and instead uses extract_all_objects for
the tests.
Due to the removal of the static helper library, it means we can no
longer force static linking for dav1d tool on windows which means that
when building a shared library the dav1d.exe will not be runnable in
the build directory again.
Fix #44
|
|
|
|
|
|
Only the functions needed with the current code are defined.
The header will not work with other compilers. It will need to be updated for
each compiler that doesn't have stdatomic.h.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Do not force include the compat folder as it may contain headers that do exist
for the compiler. Include the compat headers individually when they are needed
and use an explicit path to compat/
|
|
Fix #37
|
|
|
|
|
|
It doesn't exist on MSVC and it's not needed.
|
|
That's the one used in mingw64
|
|
The build system declared `rev_target` to be a dependency of
libdav1d instead of libdav1dentrypoint. This causes initial builds
to fail, as it is `src/lib.c` from libdav1dentrypoint that includes
this file. Move the dependency to libdav1dentrypoint to fix this.
|
|
This is a fix for
ERROR: Unknown variable "stackrealign_flag"
when configuring for x86 on compilers that do not support any of the
checked stackalign flags.
|
|
Always use the compatibility layer.
Fix #28
|
|
Since we don't want to probe for winpthreads anymore, this macro isn't
usefull anymore
|
|
|
|
|
|
|
|
This library is just a helper and should not be built by default as it
is only used to extract the objects and has no use as stand-alone
library for uses to link to.
|
|
|
|
The -Wall flag is already set by default, as mesons `warning_level`
defaults to 1, which includes the -Wall flag.
Fix #12
|
|
No GNU extensions are used.
|
|
|
|
Define `_POSIX_C_SOURCE` to `200112L`, to indicate we want to use
POSIX.1–2001. Additionally remove incorrect definition of
`POSIX_C_SOURCE` (note the lack of underscore at the beginning).
The intention was probably to define `_POSIX_C_SOURCE` which would be
redundant and previously even conflicting with the other version set
previously.
For the has_function check, use the correct value of `200112L`.
|
|
- _REENTRANT and _THREAD_SAFE were taken from the VLC build system
and have since been removed there, so it seems safe to remove those
here as well.
- _POSIX_PTHREAD_SEMANTICS is required for POSIX thread flavor of
threading functions but instead we can define _POSIX_C_SOURCE to a
value higher than 199506L, when including <pthread.h>, see
https://docs.oracle.com/cd/E19455-01/806-5257/compile-3/index.html
- __EXTENSIONS__ is used to enable Solaris extensions, as far as I
know we are not using any.
- _FILE_OFFSET_BITS is already defined to 64 by meson.
- _ISOC99_SOURCE should not be required as we do not support compiling
with -std c89.
- _ISOC11_SOURCE should not be required as we set -std c11, so we do
not need any C11 extensions to C99 as we already use C11.
- _POSIX_SOURCE is not required as we already set _POSIX_C_SOURCE to
a positive integer.
* _XOPEN_SOURCE should not be needed as we already have
_POSIX_C_SOURCE.
* _XOPEN_SOURCE_EXTENDED should not be required as we do not need any
X/Open Unix extensions to my knowledge.
* _BSD_SOURCE should not be required as we already set _POSIX_C_SOURCE.
* _SVID_SOURCE should not be required as we already set _POSIX_C_SOURCE.
|
|
This currently doesn't get installed at all.
|
|
Once meson 0.48 is required, this should be changed back to use the
optimization option instead. (See #1)
|
|
|
|
|
|
|
|
With minor contributions from:
- Jean-Baptiste Kempf <jb@videolan.org>
- Marvin Scholz <epirat07@gmail.com>
- Hugo Beauzée-Luyssen <hugo@videolan.org>
|
|
|