- 09 Aug, 2014 1 commit
-
-
Martijn van Beurden authored
The html documentation was diff'ed to the current website pages and all difference were merged into the page they weren't yet incorporated. This includes lots of small fixes and improvements. Signed-off-by:
Erik de Castro Lopo <erikd@mega-nerd.com>
-
- 28 Jul, 2014 3 commits
-
-
Martijn van Beurden authored
When using the -p switch during encoding, the encoder should try different qlp predictor precision steps. However, some faulty code was too severely restricting the possible steps. This patch lifts the restriction to match a restriction coded a little further in the process. This doesn't make using -p worth your while, but at least it doesn't create larger files now Signed-off-by:
Erik de Castro Lopo <erikd@mega-nerd.com>
-
Erik de Castro Lopo authored
Simplify the code that tries to detect whether OS supports SSE instructions. a) Linux: "old" vs "new" sigaction OBSOLETE_SIGCONTEXT_FLAVOR was disabled in Mar 2007 in commit 1ca3a445. According to <http://unixhelp.ed.ac.uk/CGI/man-cgi?sigaction>: "Support for SA_SIGINFO was added in Linux 2.2" (released in Jan 1999). If noone wants to use FLAC with Linux kernel 2.0 then it's safe to delete this code. b) MSVC: try/catch vs. sigill_handler TRY_CATCH_FLAVOR was enabled in Jan 2009 in commit a832ef32. According to the comment in cpu.c, "sigill_handler flavor resulted in several crash reports on win32". Also this sigill_handler flavor is not thread-safe. c) MinGW: fxsave/fxrestore vs. sigill_handler The code was added Mar 2014 in commit 99d5154f. It's better to use FXSR flavor instead of sigill_handler flavor. The reasons are the same as for MSVC. Patch-from: lvqcl <lvqcl.mail@gmail.com>
-
Erik de Castro Lopo authored
Add new function: FLAC__lpc_compute_residual_from_qlp_coefficients_intrin_sse41() and rewrite function: FLAC__lpc_compute_residual_from_qlp_coefficients_16_intrin_sse2() Testing shows noticeable speed increase on Intel Core i3/5/7 (up to 30% for -8 mode), AMD Athlon64, Phenom, Bulldozer/Piledriver, but no increase or even very small speed decrease (~2% for -8 mode) on Intel Core2. Patch-from: lvqcl <lvqcl.mail@gmail.com>
-
- 27 Jul, 2014 4 commits
-
-
Erik de Castro Lopo authored
This comment should have been removed in commit eb0c5a37. Patch-from: lvqcl <lvqcl.mail@gmail.com>
-
Erik de Castro Lopo authored
In FLAC 1.2.0, a new field 'FLAC__CPUInfo cpu_info' was added to the FLAC__BitReader struct. It became useless in 1.3.0 because of various bitreader optimizations. Patch-from: lvqcl <lvqcl.mail@gmail.com>
-
Erik de Castro Lopo authored
Based on a patch from lvqcl <lvqcl.mail@gmail.com>.
-
Erik de Castro Lopo authored
Previously CFLAGS had a -O3 at the start and a -O2 at the end. According to the GCC docs: https://gcc.gnu.org/onlinedocs/gcc-4.9.1/gcc/Optimize-Options.html "If you use multiple -O options, with or without level numbers, the last such option is the one that is effective" which means that GCC doesn't try to use SIMD to vectorize the code, etc."
-
- 26 Jul, 2014 1 commit
-
-
Erik de Castro Lopo authored
Preserve the CFLAGS value from the time the configure script is run.
-
- 19 Jul, 2014 2 commits
-
-
Erik de Castro Lopo authored
Windows (MSVC, MinGW) versions of setlocale don't care about LC_* environment variables. For example, flac cannot pass the test for --until and --skip options the script calls it with --skip=0:01.1001 and it expects decimal comma (--skip=0:01,1001) on some locales. Solve this (on Windows) by calling setlocale(LC_ALL, "") if some LC_* variable is set to "C". Patch-from: lvqcl <lvqcl.mail@gmail.com>
-
Erik de Castro Lopo authored
Patch-from: lvqcl <lvqcl.mail@gmail.com>
-
- 13 Jul, 2014 4 commits
-
-
Erik de Castro Lopo authored
Patch-from: lvqcl <lvqcl.mail@gmail.com>
-
Erik de Castro Lopo authored
Patch-from: lvqcl <lvqcl.mail@gmail.com>
-
Erik de Castro Lopo authored
Patch-from: lvqcl <lvqcl.mail@gmail.com>
-
Erik de Castro Lopo authored
Patch-from: lvqcl <lvqcl.mail@gmail.com>
-
- 09 Jul, 2014 1 commit
-
-
Erik de Castro Lopo authored
Patch-from: lvqcl <lvqcl.mail@gmail.com>
-
- 08 Jul, 2014 2 commits
-
-
Erik de Castro Lopo authored
This test was failing due to the lack of this option. Patch-from: lvqcl <lvqcl.mail@gmail.com>
-
Erik de Castro Lopo authored
Previous version of get_console_width() may return 0 which will result in a division by 0 in stats_print_name(): console_width = get_console_width(); len = strlen_console(name)+2; console_chars_left = console_width - (len % console_width); Bug-report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=739613 Patch-from: lvqcl <lvqcl.mail@gmail.com>
-
- 06 Jul, 2014 3 commits
-
-
Erik de Castro Lopo authored
Also allows building for x86-64 Windows. Patch-from: lvqcl <lvqcl.mail@gmail.com>
-
Erik de Castro Lopo authored
This function was un-used because it showed no speed improvement over the C version. As a result the bitreader_read_from_client_() function can be made static again. Patch-from: lvqcl <lvqcl.mail@gmail.com>
-
Erik de Castro Lopo authored
This function offer no speed up from the C version of the function and were commented out after the release of 1.3.0. We will now drop them completely. Patch-from: lvqcl <lvqcl.mail@gmail.com>
-
- 04 Jul, 2014 1 commit
-
-
Miroslav Lichvar authored
In the precompute_partition_info_sums_ function, instead of selecting 64-bit accumulator when the signal bps is larger than 16, revert to the original approach based on partition size, but make room for few extra bits to not overflow with unusual signals where the average residual magnitude may be larger than bps. It slightly improves the performance with standard encoding levels and 16-bit files as the 17-bit side channel can still be processed with the 32-bit accumulator and correctly selects the 64-bit accumulator with very large 16-bit partitions. This is related to commits 6f7ec60c and 187e596e. Signed-off-by:
Erik de Castro Lopo <erikd@mega-nerd.com>
-
- 03 Jul, 2014 5 commits
-
-
Erik de Castro Lopo authored
Patch-from: lvqcl <lvqcl.mail@gmail.com>
-
Erik de Castro Lopo authored
MSVC6 was not able to cast from a uint64_t to a double and this commit removes some #ifdef hackery designed to work around this problem. Patch-from: lvqcl <lvqcl.mail@gmail.com>
-
Erik de Castro Lopo authored
-
Erik de Castro Lopo authored
-
Ralph Giles authored
Versions of GCC prior to 4.8 didn't provide an implementation of __builtin_bswap16 on x86_64. Detect those versions and supply a fallback implementation. A cleaner fix would be to detect bswap16 independently of bswap32 in configure and handle them separately. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52624Signed-off-by:
Erik de Castro Lopo <erikd@mega-nerd.com>
-
- 02 Jul, 2014 3 commits
-
-
Erik de Castro Lopo authored
* Use "share/compat.h" instead of <stdint.h>. * Update test_libFLAC.vcproj project file. * Update Makefile.lite build system. Patch-from: lvqcl <lvqcl.mail@gmail.com>
-
Erik de Castro Lopo authored
The --endian and --sign options aren't just for raw input, but also for raw output. Patch-from: lvqcl <lvqcl.mail@gmail.com>
-
Erik de Castro Lopo authored
Patch-from: lvqcl <lvqcl.mail@gmail.com>
-
- 01 Jul, 2014 2 commits
-
-
Erik de Castro Lopo authored
The previous version of this test worked on amd64 and powerpc64 but failed on armhf. Investigation show that the previous version of the test data was generated for a case where the ARRAY_LEN macro was exploiting undefined behaviour. Fix was ditching the ARRAY_LEN macro and then recalculating the target data.
-
Erik de Castro Lopo authored
* Print endian-ness of test host. * Replace ugly macro with C code. * Add tests for H2LE_16 and H2LE_32 macros.
-
- 30 Jun, 2014 2 commits
-
-
Erik de Castro Lopo authored
-
Erik de Castro Lopo authored
-
- 29 Jun, 2014 5 commits
-
-
Erik de Castro Lopo authored
-
Erik de Castro Lopo authored
Use the union of pointers trick again.
-
Erik de Castro Lopo authored
Rather than the buffer into format_input_() as a FLAC__byte pointer, pass it as a pointer to a union of three pointers, one each for for FLAC__byte, FLAC__int16 and FLAC_int32. This should have zero measurable performance impact.
-
Erik de Castro Lopo authored
This refactoring is in preparation for fixing the cast-align warning when compiling on ARM (and possibly others). Testing on stereo 16 bit files suggests that the difference between the performance of this code and the old code is negligible (tested only on amd64/linux).
-
Erik de Castro Lopo authored
Also add macros H2LE_16 and H2LE_32, which do host to little-endian swapping of 16 and 32 bit values respectively.
-
- 28 Jun, 2014 1 commit
-
-
Erik de Castro Lopo authored
Restore a FLAC__ASSERT() to bitmath functions FLAC__bitmath_ilog2 and FLAC__bitmath_ilog2_wide functions. This prevents the return of an "undefined" value. Patch-from: lvqcl <lvqcl.mail@gmail.com>
-