Lines Matching refs:f
2966 static void encode_pb_pictures(FILE *yuv_fp, FILE *avc_fp, int f, int nbframes, int next_f) in encode_pb_pictures() argument
2970 enc_frame_number, f + nbframes, in encode_pb_pictures()
2972 SLICE_TYPE_P, 1, f); in encode_pb_pictures()
2976 enc_frame_number + 1, f + i, in encode_pb_pictures()
2978 SLICE_TYPE_B, 1, f + i + 1); in encode_pb_pictures()
2982 enc_frame_number + 1, f + nbframes - 1, in encode_pb_pictures()
3206 int f; in encode_file() local
3231 for ( int f = 0; f < frame_number; ) { //picture level loop in encode_file() local
3239 encode_picture(yuv_fp, avc_fp,enc_frame_number, f, f==0, SLICE_TYPE_I, 0, f+1); in encode_file()
3240 f++; in encode_file()
3243 if ( (f % intra_period) == 0 ) { in encode_file()
3244 encode_picture(yuv_fp, avc_fp,enc_frame_number, f, f==0, SLICE_TYPE_I, 0, f+1); in encode_file()
3245 f++; in encode_file()
3248 encode_picture(yuv_fp, avc_fp,enc_frame_number, f, f==0, SLICE_TYPE_P, 0, f+1); in encode_file()
3249 f++; in encode_file()
3260 encode_picture(yuv_fp, avc_fp,enc_frame_number, f, f==0, SLICE_TYPE_I, 0, in encode_file()
3261 f+frame_type_pattern[fnext][1]); in encode_file()
3262 f++; in encode_file()
3265 encode_pb_pictures(yuv_fp, avc_fp, f, frame_type_pattern[fcurrent][1]-1, in encode_file()
3266 f + frame_type_pattern[fcurrent][1] + frame_type_pattern[fnext][1] -1 ); in encode_file()
3267 f += frame_type_pattern[fcurrent][1]; in encode_file()
3273 printf("\r %d/%d ...", f+1, frame_number); in encode_file()