Lines Matching refs:s_app_ctxt
2121 app_ctxt_t s_app_ctxt; in h264enc_main() local
2148 init_default_params(&s_app_ctxt); in h264enc_main()
2194 read_cfg_file(&s_app_ctxt, fp_cfg); in h264enc_main()
2199 parse_argument(&s_app_ctxt, argv[i], argv[i + 1]); in h264enc_main()
2211 read_cfg_file(&s_app_ctxt, fp_cfg); in h264enc_main()
2225 read_cfg_file(&s_app_ctxt, fp_cfg); in h264enc_main()
2231 validate_params(&s_app_ctxt); in h264enc_main()
2254 s_app_ctxt.u4_num_mem_rec = num_mem_recs = s_num_mem_rec_op.s_ive_op.u4_num_mem_rec; in h264enc_main()
2258 s_app_ctxt.ps_mem_rec = (iv_mem_rec_t *) malloc(num_mem_recs * sizeof(iv_mem_rec_t)); in h264enc_main()
2259 if(NULL == s_app_ctxt.ps_mem_rec) in h264enc_main()
2268 ps_mem_rec = s_app_ctxt.ps_mem_rec; in h264enc_main()
2292 s_fill_mem_rec_ip.s_ive_ip.ps_mem_rec = s_app_ctxt.ps_mem_rec; in h264enc_main()
2293 s_fill_mem_rec_ip.s_ive_ip.u4_num_mem_rec = s_app_ctxt.u4_num_mem_rec; in h264enc_main()
2294 s_fill_mem_rec_ip.s_ive_ip.u4_max_wd = s_app_ctxt.u4_max_wd; in h264enc_main()
2295 s_fill_mem_rec_ip.s_ive_ip.u4_max_ht = s_app_ctxt.u4_max_ht; in h264enc_main()
2296 s_fill_mem_rec_ip.s_ive_ip.u4_max_level = s_app_ctxt.u4_max_level; in h264enc_main()
2321 ps_mem_rec = s_app_ctxt.ps_mem_rec; in h264enc_main()
2347 ps_enc = s_app_ctxt.ps_mem_rec[0].pv_base; in h264enc_main()
2350 s_app_ctxt.ps_enc = ps_enc; in h264enc_main()
2356 s_init_ip.s_ive_ip.u4_num_mem_rec = s_app_ctxt.u4_num_mem_rec; in h264enc_main()
2357 s_init_ip.s_ive_ip.ps_mem_rec = s_app_ctxt.ps_mem_rec; in h264enc_main()
2358 s_init_ip.s_ive_ip.u4_max_wd = s_app_ctxt.u4_max_wd; in h264enc_main()
2359 s_init_ip.s_ive_ip.u4_max_ht = s_app_ctxt.u4_max_ht; in h264enc_main()
2362 s_init_ip.s_ive_ip.u4_max_level = s_app_ctxt.u4_max_level; in h264enc_main()
2363 s_init_ip.s_ive_ip.e_inp_color_fmt = s_app_ctxt.e_inp_color_fmt; in h264enc_main()
2364 if(s_app_ctxt.u4_recon_enable || s_app_ctxt.u4_psnr_enable || s_app_ctxt.u4_chksum_enable) in h264enc_main()
2372 s_init_ip.s_ive_ip.e_recon_color_fmt = s_app_ctxt.e_recon_color_fmt; in h264enc_main()
2373 s_init_ip.s_ive_ip.e_rc_mode = s_app_ctxt.u4_rc; in h264enc_main()
2374 s_init_ip.s_ive_ip.u4_max_framerate = s_app_ctxt.u4_max_frame_rate; in h264enc_main()
2375 s_init_ip.s_ive_ip.u4_max_bitrate = s_app_ctxt.u4_max_bitrate; in h264enc_main()
2376 s_init_ip.s_ive_ip.u4_num_bframes = s_app_ctxt.u4_num_bframes; in h264enc_main()
2380 s_init_ip.s_ive_ip.e_slice_mode = s_app_ctxt.u4_slice_mode; in h264enc_main()
2381 s_init_ip.s_ive_ip.u4_slice_param = s_app_ctxt.u4_slice_param; in h264enc_main()
2382 s_init_ip.s_ive_ip.e_arch = s_app_ctxt.e_arch; in h264enc_main()
2383 s_init_ip.s_ive_ip.e_soc = s_app_ctxt.e_soc; in h264enc_main()
2403 s_ctl_set_num_cores_ip.s_ive_ip.u4_num_cores = s_app_ctxt.u4_num_cores; in h264enc_main()
2458 s_get_buf_info_ip.s_ive_ip.u4_max_ht = s_app_ctxt.u4_max_ht; in h264enc_main()
2459 s_get_buf_info_ip.s_ive_ip.u4_max_wd = s_app_ctxt.u4_max_wd; in h264enc_main()
2460 s_get_buf_info_ip.s_ive_ip.e_inp_color_fmt = s_app_ctxt.e_inp_color_fmt; in h264enc_main()
2470 s_app_ctxt.s_get_buf_info_op = s_get_buf_info_op; in h264enc_main()
2481 s_app_ctxt.u4_strd = s_app_ctxt.u4_wd; in h264enc_main()
2482 set_dimensions(&s_app_ctxt, 0, 0); in h264enc_main()
2487 set_frame_rate(&s_app_ctxt, 0, 0); in h264enc_main()
2492 set_ipe_params(&s_app_ctxt, 0, 0); in h264enc_main()
2497 set_bit_rate(&s_app_ctxt, 0, 0); in h264enc_main()
2502 set_qp(&s_app_ctxt,0,0); in h264enc_main()
2507 set_air_params(&s_app_ctxt,0,0); in h264enc_main()
2512 set_vbv_params(&s_app_ctxt,0,0); in h264enc_main()
2517 set_me_params(&s_app_ctxt,0,0); in h264enc_main()
2522 set_gop_params(&s_app_ctxt, 0, 0); in h264enc_main()
2527 set_deblock_params(&s_app_ctxt, 0, 0); in h264enc_main()
2532 set_profile_params(&s_app_ctxt, 0, 0); in h264enc_main()
2537 set_enc_mode(&s_app_ctxt, 0, 0, IVE_ENC_MODE_PICTURE); in h264enc_main()
2542 set_vui_params(&s_app_ctxt); in h264enc_main()
2546 sprintf(filename_with_path, "%s/%s", documentdir, s_app_ctxt.ac_ip_fname); in h264enc_main()
2547 strcpy (s_app_ctxt.ac_ip_fname, filename_with_path); in h264enc_main()
2549 sprintf(filename_with_path, "%s/%s", documentdir, s_app_ctxt.ac_op_fname); in h264enc_main()
2550 strcpy (s_app_ctxt.ac_op_fname, filename_with_path); in h264enc_main()
2552 sprintf(filename_with_path, "%s/%s", documentdir, s_app_ctxt.ac_recon_fname); in h264enc_main()
2553 strcpy (s_app_ctxt.ac_recon_fname, filename_with_path); in h264enc_main()
2555 sprintf(filename_with_path, "%s/%s", documentdir, s_app_ctxt.ac_chksum_fname); in h264enc_main()
2556 strcpy (s_app_ctxt.ac_chksum_fname, filename_with_path); in h264enc_main()
2558 sprintf(filename_with_path, "%s/%s", documentdir, s_app_ctxt.ac_mb_info_fname); in h264enc_main()
2559 strcpy (s_app_ctxt.ac_mb_info_fname, filename_with_path); in h264enc_main()
2561 sprintf(filename_with_path, "%s/%s", documentdir, s_app_ctxt.ac_pic_info_fname); in h264enc_main()
2562 strcpy (s_app_ctxt.ac_pic_info_fname, filename_with_path); in h264enc_main()
2569 synchronous_encode(ps_enc, &s_app_ctxt); in h264enc_main()
2576 if(s_app_ctxt.u4_pics_cnt != 0) in h264enc_main()
2578 bytes_per_frame = (s_app_ctxt.u4_total_bytes) / (s_app_ctxt.u4_pics_cnt); in h264enc_main()
2584 bytes_per_second = (bytes_per_frame * s_app_ctxt.u4_tgt_frame_rate); in h264enc_main()
2590 printf("Input filename : %s\n", s_app_ctxt.ac_ip_fname); in h264enc_main()
2591 printf("Output filename : %s\n", s_app_ctxt.ac_op_fname); in h264enc_main()
2592 printf("Output Width : %-4d\n", s_app_ctxt.u4_wd); in h264enc_main()
2593 printf("Output Height : %-4d\n", s_app_ctxt.u4_ht); in h264enc_main()
2594 printf("Target Bitrate (bps) : %-4d\n", s_app_ctxt.u4_bitrate); in h264enc_main()
2596 printf("Average Time per Frame : %-4d\n", s_app_ctxt.avg_time); in h264enc_main()
2597 printf("Achieved FPS : %-4.2f\n", 1000000.0 / s_app_ctxt.avg_time); in h264enc_main()
2614 s_retrieve_mem_ip.s_ive_ip.ps_mem_rec = s_app_ctxt.ps_mem_rec; in h264enc_main()
2627 ps_mem_rec = s_app_ctxt.ps_mem_rec; in h264enc_main()
2634 free(s_app_ctxt.ps_mem_rec); in h264enc_main()