Home | History | Annotate | Download | only in libFLAC

Lines Matching refs:rice_parameter

181 	unsigned rice_parameter,
203 unsigned rice_parameter,
229 unsigned rice_parameter,
3392 unsigned rice_parameter;
3452 rice_parameter = (fixed_residual_bits_per_sample[fixed_order] > 0.0)? (unsigned)(fixed_residual_bits_per_sample[fixed_order]+0.5) : 0; /* 0.5 is for rounding */
3456 rice_parameter
3458 rice_parameter++; /* to account for the signed->unsigned conversion during rice coding */
3459 if(rice_parameter >= rice_parameter_limit) {
3461 fprintf(stderr, "clipping rice_parameter (%u -> %u) @0\n", rice_parameter, rice_parameter_limit - 1);
3463 rice_parameter = rice_parameter_limit - 1;
3475 rice_parameter,
3529 rice_parameter = (lpc_residual_bits_per_sample > 0.0)? (unsigned)(lpc_residual_bits_per_sample+0.5) : 0; /* 0.5 is for rounding */
3530 rice_parameter++; /* to account for the signed->unsigned conversion during rice coding */
3531 if(rice_parameter >= rice_parameter_limit) {
3533 fprintf(stderr, "clipping rice_parameter (%u -> %u) @1\n", rice_parameter, rice_parameter_limit - 1);
3535 rice_parameter = rice_parameter_limit - 1;
3563 rice_parameter,
3703 unsigned rice_parameter,
3732 rice_parameter,
3767 unsigned rice_parameter,
3815 rice_parameter,
3874 unsigned rice_parameter,
3911 rice_parameter,
4085 const unsigned rice_parameter,
4092 (1+rice_parameter) * partition_samples /* 1 for unary stop bit + rice_parameter for the binary portion */
4095 partition_bits += ( (FLAC__uint32)((residual[i]<<1)^(residual[i]>>31)) >> rice_parameter );
4100 const unsigned rice_parameter,
4107 (1+rice_parameter) * partition_samples + /* 1 for unary stop bit + rice_parameter for the binary portion */
4109 rice_parameter?
4110 (unsigned)(abs_residual_partition_sum >> (rice_parameter-1)) /* rice_parameter-1 because the real coder sign-folds instead of using a sign bit */
4115 * The actual number of bits used is closer to the sum(for all i in the partition) of abs(residual[i])>>(rice_parameter-1)
4141 unsigned rice_parameter, partition_bits;
4169 fprintf(stderr, "clipping rice_parameter (%u -> %u) @5\n", max_rice_parameter, rice_parameter_limit - 1);
4177 for(rice_parameter = min_rice_parameter; rice_parameter <= max_rice_parameter; rice_parameter++) {
4179 rice_parameter = suggested_rice_parameter;
4182 partition_bits = count_rice_bits_in_partition_(rice_parameter, residual_samples, residual);
4184 partition_bits = count_rice_bits_in_partition_(rice_parameter, residual_samples, abs_residual_partition_sums[0]);
4187 best_rice_parameter = rice_parameter;
4222 * rice_parameter = floor(log2(mean/partition_samples))
4229 for(rice_parameter = 0, k = partition_samples; k < mean; rice_parameter++, k <<= 1)
4238 rice_parameter = 0; k2 = partition_samples;
4240 rice_parameter += 4; k2 <<= 4; /* tuned for 16-bit input */
4243 rice_parameter++; k2 <<= 1;
4247 rice_parameter = 0; k = partition_samples;
4250 rice_parameter += 8; k <<= 8; /* tuned for 24-bit input */
4253 rice_parameter++; k <<= 1;
4257 if(rice_parameter >= rice_parameter_limit) {
4259 fprintf(stderr, "clipping rice_parameter (%u -> %u) @6\n", rice_parameter, rice_parameter_limit - 1);
4261 rice_parameter = rice_parameter_limit - 1;
4267 if(rice_parameter < rice_parameter_search_dist)
4270 min_rice_parameter = rice_parameter - rice_parameter_search_dist;
4271 max_rice_parameter = rice_parameter + rice_parameter_search_dist;
4274 fprintf(stderr, "clipping rice_parameter (%u -> %u) @7\n", max_rice_parameter, rice_parameter_limit - 1);
4280 min_rice_parameter = max_rice_parameter = rice_parameter;
4282 for(rice_parameter = min_rice_parameter; rice_parameter <= max_rice_parameter; rice_parameter++) {
4285 partition_bits = count_rice_bits_in_partition_(rice_parameter, partition_samples, residual+residual_sample);
4287 partition_bits = count_rice_bits_in_partition_(rice_parameter, partition_samples, abs_residual_partition_sums[partition]);
4290 best_rice_parameter = rice_parameter;