search for: flac_max

Displaying 7 results from an estimated 7 matches for "flac_max".

Did you mean: flac_mac
2012 Apr 05
2
[PATCH 2/2] V2: Use a single definition of MIN and MAX in sources
...t a/src/libFLAC/include/private/macros.h b/src/libFLAC/include/private/macros.h new file mode 100644 index 0000000..1718005 --- /dev/null +++ b/src/libFLAC/include/private/macros.h @@ -0,0 +1,29 @@ +#ifndef FLAC__PRIVATE__MACROS_H +#define FLAC__PRIVATE__MACROS_H + +#if defined(__GNUC__) + +#define flac_max(a,b) \ + ({ __typeof__ (a) _a = (a); \ + __typeof__ (b) _b = (b); \ + _a > _b ? _a : _b; }) + +#define flac_min(a,b) \ + ({ __typeof__ (a) _a = (a); \ + __typeof__ (b) _b = (b); \ + _a < _b ? _a : _b; }) + +/* Whatever other unix that has sys/param.h */ +#elif defined(HAVE_S...
2016 Oct 14
2
emflac
...void creating an account anywhere else if possible. 1. Version checks in macros.h There is something strange about the libFLAC macros.h. It checks for GNUC 4.3+, but emcc is apparently based on a clang 3.9.0 which identifies itself as GNUC 4.2.1. It does support the statement expression used for flac_max. So perhaps you could add a different condition; something like (…) || (defined(__clang__) && (__clang_major__ > 3 || \ (__clang_major__ == 3 && __clang_minor__ >= 9))) 2. Min and max macros I'm also surprised by the degree of variation here. flac_max...
2013 May 15
2
FLAC currently won't compile for Android [bisected]
Hi, I couldn't figure out how to file a bug in the bugtracker at sourceforge. So I send a report this way. Building FLAC from git for Android fails with the following message: utils.c: In function 'get_console_width': utils.c:181:17: error: storage size of 'w' isn't known utils.c:181:17: warning: unused variable 'w' [-Wunused-variable] make[3]: *** [utils.o]
2017 Apr 19
2
Windows Universal Platform?
Hi all, Anyone know anything about Windows Universal Platform? Someone raised an issue on github: https://github.com/xiph/flac/issues/32 The `flac_max`/`flac_min` issue is resolved, but the WUP one is not. Cheers, Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/
2014 Jul 28
1
Duplicate QLP coefficient restricting code
.../* try to ensure a 32-bit datapath throughout for > 16bps(+1bps for side channel) or less */ > if(subframe_bps <= 17) { > max_qlp_coeff_precision = flac_min(32 - subframe_bps - > lpc_order, FLAC__MAX_QLP_COEFF_PRECISION); > max_qlp_coeff_precision = > flac_max(max_qlp_coeff_precision, min_qlp_coeff_precision); > } > else > max_qlp_coeff_precision = FLAC__MAX_QLP_COEFF_PRECISION; > } > else { > min_qlp_coeff_precision = max_qlp_coeff_precision = > encoder->protected_->qlp_coeff_precision; > } However, a...
2014 Jul 28
0
[PATCH] Fix bug when using -p switch during compression
...qlp coeff precision such that only 32-bit math is required for decode of <=16bps streams */ + if(subframe_bps <= 16) { + max_qlp_coeff_precision = flac_min(32 - subframe_bps - FLAC__bitmath_ilog2(lpc_order), FLAC__MAX_QLP_COEFF_PRECISION); max_qlp_coeff_precision = flac_max(max_qlp_coeff_precision, min_qlp_coeff_precision); } else -- 1.9.1 --------------080704030100070700060300--
2014 Dec 15
1
[PATCH] src/libFLAC/stream_decoder.c : Rework fix for seeking bug.
...ders mush be handled in the callers */ + FLAC__ASSERT(partition_order > 0? partition_samples >= predictor_order : decoder->private_->frame.header.blocksize >= predictor_order); if(!FLAC__format_entropy_coding_method_partitioned_rice_contents_ensure_size(partitioned_rice_contents, flac_max(6u, partition_order))) { decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR; -- 1.9.3