Home | History | Annotate | Download | only in encoder

Lines Matching defs:max_bits

245     int max_bits;
248 // If we are running below the optimal level then we need to gradually tighten up on max_bits.
254 max_bits = (int)(cpi->av_per_frame_bandwidth * ((double)cpi->oxcf.two_pass_vbrmax_section / 100.0));
259 // The lower of max_bits / 4 or cpi->av_per_frame_bandwidth / 4.
260 int min_max_bits = ((cpi->av_per_frame_bandwidth >> 2) < (max_bits >> 2)) ? cpi->av_per_frame_bandwidth >> 2 : max_bits >> 2;
262 max_bits = (int)(max_bits * buffer_fullness_ratio);
264 if (max_bits < min_max_bits)
265 max_bits = min_max_bits; // Lowest value we will set ... which should allow the buffer to refil.
272 max_bits = (int)(((double)cpi->bits_left / (cpi->total_stats->count - (double)cpi->common.current_video_frame)) * ((double)cpi->oxcf.two_pass_vbrmax_section / 100.0));
276 if (max_bits < 0)
277 max_bits = 0;
279 return max_bits;
1366 int max_bits = frame_max_bits(cpi); // Max for a single frame
1721 if (cpi->gf_group_bits > max_bits * cpi->baseline_gf_interval)
1722 cpi->gf_group_bits = max_bits * cpi->baseline_gf_interval;
1911 int max_bits = frame_max_bits(cpi); // Max for a single frame
1929 // Clip to target size to 0 - max_bits (or cpi->gf_group_bits) at the top end.
1934 if (target_frame_size > max_bits)
1935 target_frame_size = max_bits;
2424 int max_bits = frame_max_bits(cpi);
2436 max_grp_bits = (long long)max_bits * (long long)cpi->frames_to_key;