Home | History | Annotate | Download | only in encoder

Lines Matching refs:gf_group_bits

1237     cpi->gf_group_bits = 0;
1523 cpi->gf_group_bits = (int)((double)cpi->kf_group_bits * (gf_group_err / (double)cpi->kf_group_error_left));
1525 cpi->gf_group_bits = 0;
1527 cpi->gf_group_bits = (cpi->gf_group_bits < 0) ? 0 : (cpi->gf_group_bits > cpi->kf_group_bits) ? cpi->kf_group_bits : cpi->gf_group_bits;
1529 // Clip cpi->gf_group_bits based on user supplied data rate variability limit (cpi->oxcf.two_pass_vbrmax_section)
1530 if (cpi->gf_group_bits > max_bits * cpi->baseline_gf_interval)
1531 cpi->gf_group_bits = max_bits * cpi->baseline_gf_interval;
1583 cpi->gf_bits = (int)((double)Boost * (cpi->gf_group_bits / (double)allocation_chunks));
1635 cpi->kf_group_bits -= cpi->gf_group_bits;
1647 cpi->gf_group_bits -= cpi->gf_bits;
1649 if (cpi->gf_group_bits < 0)
1650 cpi->gf_group_bits = 0;
1658 cpi->mid_gf_extra_bits = (cpi->gf_group_bits * pct_extra) / 100;
1659 cpi->gf_group_bits -= cpi->mid_gf_extra_bits;
1735 cpi->gf_group_bits = (cpi->bits_left > 0) ? cpi->bits_left : 0;;
1746 target_frame_size = (int)((double)cpi->gf_group_bits * err_fraction); // How many of those bits available for allocation should we give it?
1748 // Clip to target size to 0 - max_bits (or cpi->gf_group_bits) at the top end.
1756 if (target_frame_size > cpi->gf_group_bits)
1757 target_frame_size = cpi->gf_group_bits;
1761 cpi->gf_group_bits -= target_frame_size; // Adjust bits remaining
1763 if (cpi->gf_group_bits < 0)
1764 cpi->gf_group_bits = 0;
1832 cpi->gf_group_bits = cpi->kf_group_bits;
1866 extra_bits = (cpi->gf_group_bits * pct_extra) / 100;
1867 cpi->gf_group_bits -= extra_bits;