summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright years to include 2014.Erik de Castro Lopo2014-11-2527-27/+27
|
* include/share/endswap.h : Fix usage of HAVE_BSWAP16.Erik de Castro Lopo2014-11-121-1/+1
| | | | | The code was incorrectly using #ifndef on a value that was always defined to a value of either 0 or 1.
* Update documentation for new compression presetsMartijn van Beurden2014-11-111-21/+21
| | | | Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* Use a configure check for bswap16 instead of gcc version #ifdefs.Ralph Giles2014-11-041-1/+1
| | | | | | Fixes a build problem on apple clang. Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* Windows specific vsnprintf fixes.Erik de Castro Lopo2014-09-221-0/+2
| | | | | | | | | | | | | * Changes flac_snprintf (in src/share/grabbag/snprintf.c) and its copy local_snprintf (src/libFLAC/metadata_iterators.c) to be almost sane. * Adds flac_vsnprintf (src/share/grabbag/snprintf.c) and its copy local_vsnprintf (src/share/win_utf8_io/win_utf8_io.c). * Changes stats_print_info in src/flac/utils.c so it uses flac_vsnprintf instead of vsnprintf. This makes return value checking unnecessary. Patch-from: lvqcl <lvqcl.mail@gmail.com>
* Add partial_tukey and punchout_tukey apodization functionsMartijn van Beurden2014-09-221-2/+23
| | | | | | | | | | | | | | | | | | | | Adds two new apodization functions that seem to perform better than the apodization functions currently in the codebase and fixes three existing windows as well. Its important to note that this patch only affects the encoder stage that evaluates various possible predictors. Audio encoded with these new windows will still decode with existing legacy decoders. = Theory = These functions are used to window the audio data at the predictor stage. These news functions enable the use of only part of the signal to generate a predictor. This helps because short transients can introduce noise into the predictor. The predictor becomes very good at prediciting one part of the signal, instead of mediocre for the whole block. Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* Minor clean up of win_utf8_io.Erik de Castro Lopo2014-09-211-1/+1
| | | | Patch-from: lvqcl <lvqcl.mail@gmail.com>
* include/share/endswap.h : Improvements to fallthrough ENDSWAP_*.Erik de Castro Lopo2014-08-091-2/+2
| | | | | | | According to patch author GCC can optimize expressions like "(a<<8)|(a>>8)", but has problems with "(a<<8)+(a>>8)". Patch-from: lvqcl <lvqcl.mail@gmail.com>
* include/share/endswap.h : Fix default ENDSWAP_16.Erik de Castro Lopo2014-07-131-1/+1
| | | | Patch-from: lvqcl <lvqcl.mail@gmail.com>
* Fix bswap16 issue on Debian 6.Ralph Giles2014-07-031-0/+8
| | | | | | | | | | | | 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=52624 Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* include/share/endswap.h : Fix fallback ENDSWAP_16 macro.Erik de Castro Lopo2014-06-301-1/+1
|
* include/share/endswap.h : Add endswapping of 16 bit values.Erik de Castro Lopo2014-06-291-0/+17
| | | | | Also add macros H2LE_16 and H2LE_32, which do host to little-endian swapping of 16 and 32 bit values respectively.
* Underscore fixes.Erik de Castro Lopo2014-06-282-4/+4
| | | | | | | | | * Replace _declspec with __declspec. * Replace __wgetmainargs_ with __wgetmainargs_t and __wgetmainargs with wgetmainargs because identifiers with leading underscores are reserved for the compiler. Patch-from: lvqcl <lvqcl.mail@gmail.com>
* Update URLs as nedeed.Erik de Castro Lopo2014-06-282-2/+2
| | | | | | | Sourceforge.net links updated as nedeed with some of them being changed to point to xiph.org/flac. Patch-from: lvqcl <lvqcl.mail@gmail.com>
* replaygain_analysis : Rename float_t -> flac_float_t.Erik de Castro Lopo2014-06-241-5/+5
| | | | | There were a number of reports that float_t clashed with a type defined in Linux system header files.
* replaygain_analysis : Switch to standard C sized integer types.Erik de Castro Lopo2014-06-161-5/+5
|
* replaygain_synthesis.h : Fix FLAC_SHARE__MAX_SUPPORTED_CHANNELS.Erik de Castro Lopo2014-05-111-2/+2
| | | | | | Was previously hard coded as 2 when it should be FLAC__MAX_CHANNELS. Patch-from: lvqcl <lvqcl.mail@gmail.com>
* share/compat.h : Remove duplicate flac_stat definition.Erik de Castro Lopo2014-04-111-5/+0
| | | | Patch-from: lvqcl <lvqcl.mail@gmail.com>
* Fix clang compiler warnings.Erik de Castro Lopo2014-04-091-1/+3
| | | | | | | | These were most arising from -Wenum-conversion where an enum of one type was being assigned to a variable on another. Originally reported by Lenny Maiorani <lenny@colorado.edu> on the flac-dev mailing list.
* Fix all instances of '#if HAVE_CONFIG_H'.Erik de Castro Lopo2014-03-243-3/+3
| | | | | | Should be '#ifdef HAVE_CONFIG_H'. Closes: https://sourceforge.net/p/flac/bugs/410/
* Move FLAC__STRCASECMP definition to compat.h.Erik de Castro Lopo2014-03-141-0/+2
| | | | Patch-from: lvqcl <lvqcl.mail@gmail.com>
* Fix pragma warning.Erik de Castro Lopo2014-03-141-2/+1
| | | | Patch-from: lvqcl <lvqcl.mail@gmail.com>
* Add FLAC__SSE_SUPPORTED and FLAC__SSE2_SUPPORTED flags.Erik de Castro Lopo2014-01-301-8/+0
| | | | | | | * Allow compiling using GCC GCC w/o SSE support. * Allow SSE4.1 intrinsic functions to be enabled. Patch-from: lvqcl <lvqcl.mail@gmail.com>
* compat.h : Simplify definition of FLAC__U64L.Erik de Castro Lopo2014-01-071-6/+1
| | | | Patch-from: lvqcl <lvqcl.mail@gmail.com>
* Adds use of restrict keyword to improve encoding speed.Erik de Castro Lopo2013-10-101-0/+9
| | | | | | | | | | | | | | Restrict works very poorly in Visual Studio (much slower than without) so defined flac_restrict in share/compat.h and use that in: lpc_compute_residual...() lpc_restore_signal...() As a result, FLAC__lpc_compute_residual_from_qlp_coefficients_wide_intrin_sse41() offers no advantage for 64-bit compiles and was removed from x86-64 part of stream_encoder.c Patch-from: lvqcl <lvqcl.mail@gmail.com>
* Improve x86 instrinsic implementation.Erik de Castro Lopo2013-10-041-0/+8
| | | | | | | | | | | | | | * Splits lpc_x86intrin.c to lpc_intrin_sse.c and lpc_intrin_sse2.c * Add FLAC__lpc_compute_residual_from_qlp_coefficients_intrin_sse2() function to lpc_intrin_sse2.c * Add lpc_intrin_sse41.c with two ..._wide_intrin_sse41() functions (useful for 24-bit en-/decoding) * Add precompute_partition_info_sums_intrin_sse2() / ...ssse3() and disables precompute_partition_info_sums_32bit_asm_ia32_(). SSE2 version uses 4 SSE2 instructions instead of 1 SSSE3 instruction PABSD so it is slightly slower. Patch-from: lvqcl <lvqcl.mail@gmail.com>
* Move M_PI definition to include/share/compat.h.Erik de Castro Lopo2013-09-271-1/+4
| | | | Patch-from: lvqcl <lvqcl.mail@gmail.com>
* Fix numerous warnings arising from addition of -Weffc++.Erik de Castro Lopo2013-09-151-0/+12
|
* Move defintion of M_LN2 to include/share/compat.h.Erik de Castro Lopo2013-09-071-0/+3
|
* include/share/compat.h : Remove deinition of restrict.Erik de Castro Lopo2013-09-011-4/+0
| | | | | | | Wasn't being used anywhere in the code and clashes with a symbol in MSVC. Suggested-by: lvqcl <lvqcl.mail@gmail.com>
* Language fix: "difference licenses"Ulrich Klauer2013-05-271-1/+1
| | | | Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* Set version to 1.3.0 and update coyprights throughout.Erik de Castro Lopo2013-05-2628-27/+85
|
* Replace dead anchorMartijn van Beurden2013-05-251-1/+1
| | | | | | This fixes a wrong link (dead anchor) in the Doxygen api documentation Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* Win utf8 treatment for CreateFile.Erik de Castro Lopo2013-04-211-1/+2
| | | | Patch from Janne Hyvärinen <cse@sci.fi>.
* Fix compiler warnings related to win utf8 stuff.Erik de Castro Lopo2013-04-211-0/+3
|
* include/share/compat.h : Include cleanup.Erik de Castro Lopo2013-04-071-5/+1
| | | | Patch from Janne Hyvärinen <cse@sci.fi>.
* Fix Windows SIZE_T_MAX definition.Erik de Castro Lopo2013-04-071-1/+5
| | | | | Problem reported by Ulrich Klauer <ulrich@chirlu.de>. Patch from Janne Hyvärinen <cse@sci.fi>.
* Fix a bunch of compiler warnings (mainly MinGW).Erik de Castro Lopo2013-04-071-1/+1
|
* Two small patches for utf8 I/O.Erik de Castro Lopo2013-04-022-2/+2
| | | | Thanks to LRN <lrn1986@gmail.com>.
* include/share/Makefile.am : Add win_utf8_io.h.Erik de Castro Lopo2013-04-021-1/+2
|
* Purge more strcpy/strcat usage.Erik de Castro Lopo2013-04-011-1/+6
|
* Enable utf8 I/O stuff when compiling with MinGW.Erik de Castro Lopo2013-04-012-2/+3
|
* include/share/compat.h : Cleanup.Erik de Castro Lopo2013-03-291-5/+7
|
* Rename _flac_stat to flac_stat_s.Erik de Castro Lopo2013-03-291-2/+2
|
* Rename all 'utf8_io' -> 'win_utf8_io'.Erik de Castro Lopo2013-03-292-3/+3
|
* Huge Windows utf8 I/O patch.Erik de Castro Lopo2013-03-292-0/+72
| | | | Patch from Janne Hyvärinen <cse@sci.fi>.
* include/share/compat.h : Simplify.Erik de Castro Lopo2013-03-231-6/+4
|
* Add new file include/share/safe_str.h.Erik de Castro Lopo2013-03-192-0/+70
| | | | | New functions safe_strncat() and safe_strncpy() which always return a NUL terminated string and do not overflow the destination buffer.
* include/share/private.h : Add FLAC_API to private functions.Erik de Castro Lopo2013-03-171-5/+5
| | | | Patch from Janne Hyvärinen <cse@sci.fi>.
* Add file src/share/grabbag/snprintf.c to grabbag library.Erik de Castro Lopo2013-03-171-0/+10
| | | | | | Define function flac_snprintf() which has ISO C99 snprintf() behavior even when compiling with Microsoft Visual Studio, by wrapping the MSVS snprintf_s() function.