Lines Matching refs:yuv_fp
112 FILE *yuv_fp; member
117 upload_yuv_to_surface(FILE *yuv_fp, VASurfaceID surface_id);
245 upload_yuv_to_surface(param->yuv_fp, param->surface_id); in upload_thread_function()
250 static void alloc_encode_resource(FILE *yuv_fp) in alloc_encode_resource() argument
267 avcenc_context.upload_thread_param.yuv_fp = yuv_fp; in alloc_encode_resource()
354 static void upload_yuv_to_surface(FILE *yuv_fp, VASurfaceID surface_id) in upload_yuv_to_surface() argument
367 n_items = fread(newImageBuffer, frame_size, 1, yuv_fp); in upload_yuv_to_surface()
504 static int begin_picture(FILE *yuv_fp, int frame_num, int display_num, int slice_type, int is_idr) in begin_picture() argument
1309 encode_picture(FILE *yuv_fp, FILE *avc_fp, in encode_picture() argument
1318 begin_picture(yuv_fp, frame_num, display_num, slice_type, is_idr); in encode_picture()
1331 fseeko(yuv_fp, (off_t)frame_size * next_display_num, SEEK_SET); in encode_picture()
1333 avcenc_context.upload_thread_param.yuv_fp = yuv_fp; in encode_picture()
1375 static void encode_pb_pictures(FILE *yuv_fp, FILE *avc_fp, int f, int nbframes, int next_f) in encode_pb_pictures() argument
1378 encode_picture(yuv_fp, avc_fp, in encode_pb_pictures()
1384 encode_picture(yuv_fp, avc_fp, in encode_pb_pictures()
1390 encode_picture(yuv_fp, avc_fp, in encode_pb_pictures()
1553 FILE *yuv_fp; in main() local
1613 yuv_fp = fopen(argv[3],"rb"); in main()
1614 if ( yuv_fp == NULL){ in main()
1618 fseeko(yuv_fp, (off_t)0, SEEK_END); in main()
1619 file_size = ftello(yuv_fp); in main()
1623 fclose(yuv_fp); in main()
1628 fseeko(yuv_fp, (off_t)0, SEEK_SET); in main()
1632 fclose(yuv_fp); in main()
1639 alloc_encode_resource(yuv_fp); in main()
1650 encode_picture(yuv_fp, avc_fp,enc_frame_number, f, f==0, SLICE_TYPE_I, 0, f+1); in main()
1655 encode_picture(yuv_fp, avc_fp,enc_frame_number, f, f==0, SLICE_TYPE_I, 0, f+1); in main()
1659 encode_picture(yuv_fp, avc_fp,enc_frame_number, f, f==0, SLICE_TYPE_P, 0, f+1); in main()
1671 encode_picture(yuv_fp, avc_fp,enc_frame_number, f, f==0, SLICE_TYPE_I, 0, in main()
1676 encode_pb_pictures(yuv_fp, avc_fp, f, frame_type_pattern[fcurrent][1]-1, in main()
1696 fclose(yuv_fp); in main()