# HG changeset patch # User jbr # Date 1280607547 0 # Node ID 6b57b1b2095c0fee61e0769ea76df3e481aa30ca # Parent dd8053936c33f65ceb61d8cf9010b08cbec86604 cosmetics: rename find_subblock_rice_params() to find_subframe_rice_params() diff -r dd8053936c33 -r 6b57b1b2095c flacenc.c --- a/flacenc.c Sat Jul 31 20:17:59 2010 +0000 +++ b/flacenc.c Sat Jul 31 20:19:07 2010 +0000 @@ -606,7 +606,7 @@ } -static uint32_t find_subblock_rice_params(FlacEncodeContext *s, +static uint32_t find_subframe_rice_params(FlacEncodeContext *s, FlacSubframe *sub, int pred_order) { int pmin = get_max_p_order(s->options.min_partition_order, @@ -826,7 +826,7 @@ bits[0] = UINT32_MAX; for (i = min_order; i <= max_order; i++) { encode_residual_fixed(res, smp, n, i); - bits[i] = find_subblock_rice_params(s, sub, i); + bits[i] = find_subframe_rice_params(s, sub, i); if (bits[i] < bits[opt_order]) opt_order = i; } @@ -834,7 +834,7 @@ sub->type_code = sub->type | sub->order; if (sub->order != max_order) { encode_residual_fixed(res, smp, n, sub->order); - return find_subblock_rice_params(s, sub, sub->order); + return find_subframe_rice_params(s, sub, sub->order); } return bits[sub->order]; } @@ -860,7 +860,7 @@ if (order < 0) order = 0; encode_residual_lpc(res, smp, n, order+1, coefs[order], shift[order]); - bits[i] = find_subblock_rice_params(s, sub, order+1); + bits[i] = find_subframe_rice_params(s, sub, order+1); if (bits[i] < bits[opt_index]) { opt_index = i; opt_order = order; @@ -874,7 +874,7 @@ bits[0] = UINT32_MAX; for (i = min_order-1; i < max_order; i++) { encode_residual_lpc(res, smp, n, i+1, coefs[i], shift[i]); - bits[i] = find_subblock_rice_params(s, sub, i+1); + bits[i] = find_subframe_rice_params(s, sub, i+1); if (bits[i] < bits[opt_order]) opt_order = i; } @@ -892,7 +892,7 @@ if (i < min_order-1 || i >= max_order || bits[i] < UINT32_MAX) continue; encode_residual_lpc(res, smp, n, i+1, coefs[i], shift[i]); - bits[i] = find_subblock_rice_params(s, sub, i+1); + bits[i] = find_subframe_rice_params(s, sub, i+1); if (bits[i] < bits[opt_order]) opt_order = i; } @@ -908,7 +908,7 @@ encode_residual_lpc(res, smp, n, sub->order, sub->coefs, sub->shift); - return find_subblock_rice_params(s, sub, sub->order); + return find_subframe_rice_params(s, sub, sub->order); }