Lines Matching refs:rice_parameter
181 unsigned rice_parameter,
203 unsigned rice_parameter,
229 unsigned rice_parameter,
3385 unsigned rice_parameter; in process_subframe_() local
3445 …rice_parameter = (fixed_residual_bits_per_sample[fixed_order] > 0.0)? (unsigned)(fixed_residual_bi… in process_subframe_()
3449 …rice_parameter = (fixed_residual_bits_per_sample[fixed_order] > FLAC__FP_ZERO)? (unsigned)FLAC__fi… in process_subframe_()
3451 rice_parameter++; /* to account for the signed->unsigned conversion during rice coding */ in process_subframe_()
3452 if(rice_parameter >= rice_parameter_limit) { in process_subframe_()
3454 …fprintf(stderr, "clipping rice_parameter (%u -> %u) @0\n", rice_parameter, rice_parameter_limit - … in process_subframe_()
3456 rice_parameter = rice_parameter_limit - 1; in process_subframe_()
3468 rice_parameter, in process_subframe_()
3522 …rice_parameter = (lpc_residual_bits_per_sample > 0.0)? (unsigned)(lpc_residual_bits_per_sample+0.5… in process_subframe_()
3523 rice_parameter++; /* to account for the signed->unsigned conversion during rice coding */ in process_subframe_()
3524 if(rice_parameter >= rice_parameter_limit) { in process_subframe_()
3526 …fprintf(stderr, "clipping rice_parameter (%u -> %u) @1\n", rice_parameter, rice_parameter_limit - … in process_subframe_()
3528 rice_parameter = rice_parameter_limit - 1; in process_subframe_()
3556 rice_parameter, in process_subframe_()
3696 unsigned rice_parameter, in evaluate_fixed_subframe_() argument
3725 rice_parameter, in evaluate_fixed_subframe_()
3760 unsigned rice_parameter, in evaluate_lpc_subframe_() argument
3808 rice_parameter, in evaluate_lpc_subframe_()
3867 unsigned rice_parameter, in find_best_partition_order_() argument
3904 rice_parameter, in find_best_partition_order_()
4078 const unsigned rice_parameter, in count_rice_bits_in_partition_() argument
4085 …(1+rice_parameter) * partition_samples /* 1 for unary stop bit + rice_parameter for the binary por… in count_rice_bits_in_partition_()
4088 partition_bits += ( (FLAC__uint32)((residual[i]<<1)^(residual[i]>>31)) >> rice_parameter ); in count_rice_bits_in_partition_()
4093 const unsigned rice_parameter, in count_rice_bits_in_partition_() argument
4100 …(1+rice_parameter) * partition_samples + /* 1 for unary stop bit + rice_parameter for the binary p… in count_rice_bits_in_partition_()
4102 rice_parameter? in count_rice_bits_in_partition_()
4103 …(unsigned)(abs_residual_partition_sum >> (rice_parameter-1)) /* rice_parameter-1 because the real … in count_rice_bits_in_partition_()
4134 unsigned rice_parameter, partition_bits; local
4170 for(rice_parameter = min_rice_parameter; rice_parameter <= max_rice_parameter; rice_parameter++) {
4172 rice_parameter = suggested_rice_parameter;
4175 partition_bits = count_rice_bits_in_partition_(rice_parameter, residual_samples, residual);
4177 …partition_bits = count_rice_bits_in_partition_(rice_parameter, residual_samples, abs_residual_part…
4180 best_rice_parameter = rice_parameter;
4222 for(rice_parameter = 0, k = partition_samples; k < mean; rice_parameter++, k <<= 1)
4231 rice_parameter = 0; k2 = partition_samples;
4233 rice_parameter += 4; k2 <<= 4; /* tuned for 16-bit input */
4236 rice_parameter++; k2 <<= 1;
4240 rice_parameter = 0; k = partition_samples;
4243 rice_parameter += 8; k <<= 8; /* tuned for 24-bit input */
4246 rice_parameter++; k <<= 1;
4250 if(rice_parameter >= rice_parameter_limit) {
4252 …fprintf(stderr, "clipping rice_parameter (%u -> %u) @6\n", rice_parameter, rice_parameter_limit - …
4254 rice_parameter = rice_parameter_limit - 1;
4260 if(rice_parameter < rice_parameter_search_dist)
4263 min_rice_parameter = rice_parameter - rice_parameter_search_dist;
4264 max_rice_parameter = rice_parameter + rice_parameter_search_dist;
4273 min_rice_parameter = max_rice_parameter = rice_parameter;
4275 … for(rice_parameter = min_rice_parameter; rice_parameter <= max_rice_parameter; rice_parameter++) {
4278 …partition_bits = count_rice_bits_in_partition_(rice_parameter, partition_samples, residual+residua…
4280 …partition_bits = count_rice_bits_in_partition_(rice_parameter, partition_samples, abs_residual_par…
4283 best_rice_parameter = rice_parameter;