|author||Martin Storsjö <firstname.lastname@example.org>||Thu Apr 23 09:19:25 2020 +0300|
|committer||Martin Storsjö <email@example.com>||Fri Apr 24 14:41:06 2020 +0300|
dnn-layer-mathbinary-test: Fix tests for cases with extra intermediate precision This fixes tests on 32 bit x86 mingw with clang, which uses x87 fpu by default. In this setup, while the get_expected function is declared to return float, the compiler is (especially given the optimization flags set) free to keep the intermediate values (in this case, the return value from the inlined function) in higher precision. This results in the situation where 7.28 (which actually, as a float, ends up as 7.2800002098), multiplied by 100, is 728.000000 when really forced into a 32 bit float, but 728.000021 when kept with higher intermediate precision. For the multiplication case, a more suitable epsilon would e.g. be 2*FLT_EPSILON*fabs(expected_output), but just increase the current hardcoded threshold for now. Signed-off-by: Martin Storsjö <firstname.lastname@example.org>
FFmpeg is a collection of libraries and tools to process multimedia content such as audio, video, subtitles and related metadata.
libavcodecprovides implementation of a wider range of codecs.
libavformatimplements streaming protocols, container formats and basic I/O access.
libavutilincludes hashers, decompressors and miscellaneous utility functions.
libavfilterprovides a mean to alter decoded Audio and Video through chain of filters.
libavdeviceprovides an abstraction to access capture and playback devices.
libswresampleimplements audio mixing and resampling routines.
libswscaleimplements color conversion and scaling routines.
The offline documentation is available in the doc/ directory.
Coding examples are available in the doc/examples directory.
FFmpeg codebase is mainly LGPL-licensed with optional components licensed under GPL. Please refer to the LICENSE file for detailed information.
Patches should be submitted to the ffmpeg-devel mailing list using
git format-patch or
git send-email. Github pull requests should be avoided because they are not part of our review process and will be ignored.