Lines Matching refs:b_frames
1569 int b_frames = 0; in select_input_picture() local
1588 b_frames = s->max_b_frames; in select_input_picture()
1589 while (b_frames && !s->input_picture[b_frames]) in select_input_picture()
1590 b_frames--; in select_input_picture()
1609 b_frames = FFMAX(0, i - 1); in select_input_picture()
1612 for (i = 0; i < b_frames + 1; i++) { in select_input_picture()
1616 b_frames = estimate_best_b_count(s); in select_input_picture()
1617 if (b_frames < 0) in select_input_picture()
1618 return b_frames; in select_input_picture()
1623 for (i = b_frames - 1; i >= 0; i--) { in select_input_picture()
1626 b_frames = i; in select_input_picture()
1628 if (s->input_picture[b_frames]->f->pict_type == AV_PICTURE_TYPE_B && in select_input_picture()
1629 b_frames == s->max_b_frames) { in select_input_picture()
1634 if (s->picture_in_gop_number + b_frames >= s->gop_size) { in select_input_picture()
1637 b_frames = s->gop_size - s->picture_in_gop_number - 1; in select_input_picture()
1640 b_frames = 0; in select_input_picture()
1641 s->input_picture[b_frames]->f->pict_type = AV_PICTURE_TYPE_I; in select_input_picture()
1645 if ((s->avctx->flags & AV_CODEC_FLAG_CLOSED_GOP) && b_frames && in select_input_picture()
1646 s->input_picture[b_frames]->f->pict_type == AV_PICTURE_TYPE_I) in select_input_picture()
1647 b_frames--; in select_input_picture()
1649 s->reordered_input_picture[0] = s->input_picture[b_frames]; in select_input_picture()
1654 for (i = 0; i < b_frames; i++) { in select_input_picture()