Displaying 3 results from an estimated 3 matches for "flac__max_lpc_ord".
Did you mean:
flac__max_lpc_order
2014 Dec 15
1
[PATCH] src/libFLAC/stream_decoder.c : Rework fix for seeking bug.
...ream_decoder.c
+++ b/src/libFLAC/stream_decoder.c
@@ -1281,9 +1281,6 @@ FLAC__bool allocate_output_(FLAC__StreamDecoder *decoder, unsigned size, unsigne
unsigned i;
FLAC__int32 *tmp;
- /* Make sure size is some sensible minimum value. Plumb through predictor_order maybe? */
- size = size < FLAC__MAX_LPC_ORDER ? FLAC__MAX_LPC_ORDER : size ;
-
if(size <= decoder->private_->output_capacity && channels <= decoder->private_->output_channels)
return true;
@@ -2594,6 +2591,11 @@ FLAC__bool read_subframe_fixed_(FLAC__StreamDecoder *decoder, unsigned channel,
case FLAC__ENTR...
2014 Jul 28
1
Duplicate QLP coefficient restricting code
...However, a little further, I found similar (but slightly
different)code
> /* try to keep qlp coeff precision such that only 32-bit math
> is required for decode of <=16bps streams */
> if(subframe_bps <= 16) {
> FLAC__ASSERT(order > 0);
> FLAC__ASSERT(order <= FLAC__MAX_LPC_ORDER);
> qlp_coeff_precision = flac_min(qlp_coeff_precision, 32 -
> subframe_bps - FLAC__bitmath_ilog2(order));
> }
The difference here is the ilog2 function. I presume this is a
mistake, because subtracting the order (32 - 17 - 8) leaves few
possible precision steps to try. Because t...
2012 Apr 05
2
[PATCH 2/2] V2: Use a single definition of MIN and MAX in sources
...flac_max(max_qlp_coeff_precision, min_qlp_coeff_precision);
}
else
max_qlp_coeff_precision = FLAC__MAX_QLP_COEFF_PRECISION;
@@ -3577,7 +3568,7 @@ unsigned evaluate_lpc_subframe_(
if(subframe_bps <= 16) {
FLAC__ASSERT(order > 0);
FLAC__ASSERT(order <= FLAC__MAX_LPC_ORDER);
- qlp_coeff_precision = min(qlp_coeff_precision, 32 - subframe_bps - FLAC__bitmath_ilog2(order));
+ qlp_coeff_precision = flac_min(qlp_coeff_precision, 32 - subframe_bps - FLAC__bitmath_ilog2(order));
}
ret = FLAC__lpc_quantize_coefficients(lp_coeff, order, qlp_coeff_precision, qlp_coef...