Lines Matching refs:rice_parameter
185 unsigned rice_parameter,
207 unsigned rice_parameter,
233 unsigned rice_parameter,
3384 unsigned rice_parameter; in process_subframe_() local
3447 …rice_parameter = (fixed_residual_bits_per_sample[fixed_order] > 0.0)? (unsigned)(fixed_residual_bi… in process_subframe_()
3451 …rice_parameter = (fixed_residual_bits_per_sample[fixed_order] > FLAC__FP_ZERO)? (unsigned)FLAC__fi… in process_subframe_()
3453 rice_parameter++; /* to account for the signed->unsigned conversion during rice coding */ in process_subframe_()
3454 if(rice_parameter >= rice_parameter_limit) { in process_subframe_()
3456 …fprintf(stderr, "clipping rice_parameter (%u -> %u) @0\n", rice_parameter, rice_parameter_limit - … in process_subframe_()
3458 rice_parameter = rice_parameter_limit - 1; in process_subframe_()
3470 rice_parameter, in process_subframe_()
3524 …rice_parameter = (lpc_residual_bits_per_sample > 0.0)? (unsigned)(lpc_residual_bits_per_sample+0.5… in process_subframe_()
3525 rice_parameter++; /* to account for the signed->unsigned conversion during rice coding */ in process_subframe_()
3526 if(rice_parameter >= rice_parameter_limit) { in process_subframe_()
3528 …fprintf(stderr, "clipping rice_parameter (%u -> %u) @1\n", rice_parameter, rice_parameter_limit - … in process_subframe_()
3530 rice_parameter = rice_parameter_limit - 1; in process_subframe_()
3558 rice_parameter, in process_subframe_()
3698 unsigned rice_parameter, in evaluate_fixed_subframe_() argument
3727 rice_parameter, in evaluate_fixed_subframe_()
3762 unsigned rice_parameter, in evaluate_lpc_subframe_() argument
3810 rice_parameter, in evaluate_lpc_subframe_()
3869 unsigned rice_parameter, in find_best_partition_order_() argument
3906 rice_parameter, in find_best_partition_order_()
4076 const unsigned rice_parameter, in count_rice_bits_in_partition_() argument
4083 …(1+rice_parameter) * partition_samples /* 1 for unary stop bit + rice_parameter for the binary por… in count_rice_bits_in_partition_()
4086 partition_bits += ( (FLAC__uint32)((residual[i]<<1)^(residual[i]>>31)) >> rice_parameter ); in count_rice_bits_in_partition_()
4091 const unsigned rice_parameter, in count_rice_bits_in_partition_() argument
4098 …(1+rice_parameter) * partition_samples + /* 1 for unary stop bit + rice_parameter for the binary p… in count_rice_bits_in_partition_()
4100 rice_parameter? in count_rice_bits_in_partition_()
4101 …(unsigned)(abs_residual_partition_sum >> (rice_parameter-1)) /* rice_parameter-1 because the real … in count_rice_bits_in_partition_()
4132 unsigned rice_parameter, partition_bits; local
4168 for(rice_parameter = min_rice_parameter; rice_parameter <= max_rice_parameter; rice_parameter++) {
4170 rice_parameter = suggested_rice_parameter;
4173 partition_bits = count_rice_bits_in_partition_(rice_parameter, residual_samples, residual);
4175 …partition_bits = count_rice_bits_in_partition_(rice_parameter, residual_samples, abs_residual_part…
4178 best_rice_parameter = rice_parameter;
4220 for(rice_parameter = 0, k = partition_samples; k < mean; rice_parameter++, k <<= 1)
4229 rice_parameter = 0; k2 = partition_samples;
4231 rice_parameter += 4; k2 <<= 4; /* tuned for 16-bit input */
4234 rice_parameter++; k2 <<= 1;
4238 rice_parameter = 0; k = partition_samples;
4241 rice_parameter += 8; k <<= 8; /* tuned for 24-bit input */
4244 rice_parameter++; k <<= 1;
4248 if(rice_parameter >= rice_parameter_limit) {
4250 …fprintf(stderr, "clipping rice_parameter (%u -> %u) @6\n", rice_parameter, rice_parameter_limit - …
4252 rice_parameter = rice_parameter_limit - 1;
4258 if(rice_parameter < rice_parameter_search_dist)
4261 min_rice_parameter = rice_parameter - rice_parameter_search_dist;
4262 max_rice_parameter = rice_parameter + rice_parameter_search_dist;
4271 min_rice_parameter = max_rice_parameter = rice_parameter;
4273 … for(rice_parameter = min_rice_parameter; rice_parameter <= max_rice_parameter; rice_parameter++) {
4276 …partition_bits = count_rice_bits_in_partition_(rice_parameter, partition_samples, residual+residua…
4278 …partition_bits = count_rice_bits_in_partition_(rice_parameter, partition_samples, abs_residual_par…
4281 best_rice_parameter = rice_parameter;