Lines Matching refs:f
1375 static void encode_pb_pictures(FILE *yuv_fp, FILE *avc_fp, int f, int nbframes, int next_f) in encode_pb_pictures() argument
1379 enc_frame_number, f + nbframes, in encode_pb_pictures()
1381 SLICE_TYPE_P, 1, f); in encode_pb_pictures()
1385 enc_frame_number + 1, f + i, in encode_pb_pictures()
1387 SLICE_TYPE_B, 1, f + i + 1); in encode_pb_pictures()
1391 enc_frame_number + 1, f + nbframes - 1, in encode_pb_pictures()
1552 int f; in main() local
1642 for ( f = 0; f < frame_number; ) { //picture level loop in main()
1650 encode_picture(yuv_fp, avc_fp,enc_frame_number, f, f==0, SLICE_TYPE_I, 0, f+1); in main()
1651 f++; in main()
1654 if ( (f % intra_period) == 0 ) { in main()
1655 encode_picture(yuv_fp, avc_fp,enc_frame_number, f, f==0, SLICE_TYPE_I, 0, f+1); in main()
1656 f++; in main()
1659 encode_picture(yuv_fp, avc_fp,enc_frame_number, f, f==0, SLICE_TYPE_P, 0, f+1); in main()
1660 f++; in main()
1671 encode_picture(yuv_fp, avc_fp,enc_frame_number, f, f==0, SLICE_TYPE_I, 0, in main()
1672 f+frame_type_pattern[fnext][1]); in main()
1673 f++; in main()
1676 encode_pb_pictures(yuv_fp, avc_fp, f, frame_type_pattern[fcurrent][1]-1, in main()
1677 f + frame_type_pattern[fcurrent][1] + frame_type_pattern[fnext][1] -1 ); in main()
1678 f += frame_type_pattern[fcurrent][1]; in main()
1684 printf("\r %d/%d ...", f+1, frame_number); in main()