Lines Matching refs:s_app_ctx

1729     vid_dec_ctx_t s_app_ctx;  in hevcdec_main()  local
1805 strcpy(s_app_ctx.ac_ip_fname, "\0"); in hevcdec_main()
1806 s_app_ctx.dump_q_wr_idx = 0; in hevcdec_main()
1807 s_app_ctx.dump_q_rd_idx = 0; in hevcdec_main()
1808 s_app_ctx.display_thread_created = 0; in hevcdec_main()
1809 s_app_ctx.disp_q_wr_idx = 0; in hevcdec_main()
1810 s_app_ctx.disp_q_rd_idx = 0; in hevcdec_main()
1811 s_app_ctx.disp_delay = 0; in hevcdec_main()
1812 s_app_ctx.loopback = 0; in hevcdec_main()
1813 s_app_ctx.display = 0; in hevcdec_main()
1814 s_app_ctx.full_screen = 0; in hevcdec_main()
1815 s_app_ctx.u4_piclen_flag = 0; in hevcdec_main()
1816 s_app_ctx.fps = DEFAULT_FPS; in hevcdec_main()
1824 s_app_ctx.share_disp_buf = DEFAULT_SHARE_DISPLAY_BUF; in hevcdec_main()
1825 s_app_ctx.u4_num_cores = DEFAULT_NUM_CORES; in hevcdec_main()
1826 s_app_ctx.i4_degrade_type = 0; in hevcdec_main()
1827 s_app_ctx.i4_degrade_pics = 0; in hevcdec_main()
1828 s_app_ctx.e_arch = ARCH_ARM_A9Q; in hevcdec_main()
1829 s_app_ctx.e_soc = SOC_GENERIC; in hevcdec_main()
1831 s_app_ctx.u4_strd = STRIDE; in hevcdec_main()
1833 s_app_ctx.display_thread_handle = malloc(ithread_get_handle_size()); in hevcdec_main()
1834 s_app_ctx.quit = 0; in hevcdec_main()
1835 s_app_ctx.paused = 0; in hevcdec_main()
1838 s_app_ctx.get_stride = &default_get_stride; in hevcdec_main()
1840 s_app_ctx.get_color_fmt = &default_get_color_fmt; in hevcdec_main()
1844 s_app_ctx.disp_init = &sdl_disp_init; in hevcdec_main()
1845 s_app_ctx.alloc_disp_buffers = &sdl_alloc_disp_buffers; in hevcdec_main()
1846 s_app_ctx.display_buffer = &sdl_display; in hevcdec_main()
1847 s_app_ctx.set_disp_buffers = &sdl_set_disp_buffers; in hevcdec_main()
1848 s_app_ctx.disp_deinit = &sdl_disp_deinit; in hevcdec_main()
1849 s_app_ctx.disp_usleep = &sdl_disp_usleep; in hevcdec_main()
1850 s_app_ctx.get_color_fmt = &sdl_get_color_fmt; in hevcdec_main()
1851 s_app_ctx.get_stride = &sdl_get_stride; in hevcdec_main()
1855 s_app_ctx.disp_init = &fbd_disp_init; in hevcdec_main()
1856 s_app_ctx.alloc_disp_buffers = &fbd_alloc_disp_buffers; in hevcdec_main()
1857 s_app_ctx.display_buffer = &fbd_display; in hevcdec_main()
1858 s_app_ctx.set_disp_buffers = &fbd_set_disp_buffers; in hevcdec_main()
1859 s_app_ctx.disp_deinit = &fbd_disp_deinit; in hevcdec_main()
1860 s_app_ctx.disp_usleep = &fbd_disp_usleep; in hevcdec_main()
1861 s_app_ctx.get_color_fmt = &fbd_get_color_fmt; in hevcdec_main()
1862 s_app_ctx.get_stride = &fbd_get_stride; in hevcdec_main()
1866 s_app_ctx.disp_init = &gdl_disp_init; in hevcdec_main()
1867 s_app_ctx.alloc_disp_buffers = &gdl_alloc_disp_buffers; in hevcdec_main()
1868 s_app_ctx.display_buffer = &gdl_display; in hevcdec_main()
1869 s_app_ctx.set_disp_buffers = &gdl_set_disp_buffers; in hevcdec_main()
1870 s_app_ctx.disp_deinit = &gdl_disp_deinit; in hevcdec_main()
1871 s_app_ctx.disp_usleep = &gdl_disp_usleep; in hevcdec_main()
1872 s_app_ctx.get_color_fmt = &gdl_get_color_fmt; in hevcdec_main()
1873 s_app_ctx.get_stride = &gdl_get_stride; in hevcdec_main()
1877 s_app_ctx.disp_init = &ios_disp_init; in hevcdec_main()
1878 s_app_ctx.alloc_disp_buffers = &ios_alloc_disp_buffers; in hevcdec_main()
1879 s_app_ctx.display_buffer = &ios_display; in hevcdec_main()
1880 s_app_ctx.set_disp_buffers = &ios_set_disp_buffers; in hevcdec_main()
1881 s_app_ctx.disp_deinit = &ios_disp_deinit; in hevcdec_main()
1882 s_app_ctx.disp_usleep = &ios_disp_usleep; in hevcdec_main()
1883 s_app_ctx.get_color_fmt = &ios_get_color_fmt; in hevcdec_main()
1884 s_app_ctx.get_stride = &ios_get_stride; in hevcdec_main()
1887 s_app_ctx.display_deinit_flag = 0; in hevcdec_main()
1888 s_app_ctx.e_output_chroma_format = IV_YUV_420SP_UV; in hevcdec_main()
1908 read_cfg_file(&s_app_ctx, fp_cfg_file); in hevcdec_main()
1913 parse_argument(&s_app_ctx, argv[i], argv[i + 1]); in hevcdec_main()
1925 read_cfg_file(&s_app_ctx, fp_cfg_file); in hevcdec_main()
1937 read_cfg_file(&s_app_ctx, fp_cfg_file); in hevcdec_main()
1943 s_app_ctx.u4_piclen_flag = 0; in hevcdec_main()
1944 s_app_ctx.u4_file_save_flag = 0; in hevcdec_main()
1945 s_app_ctx.u4_chksum_save_flag = 0; in hevcdec_main()
1946 s_app_ctx.i4_degrade_pics = 0; in hevcdec_main()
1947 s_app_ctx.i4_degrade_type = 0; in hevcdec_main()
1948 s_app_ctx.loopback = 0; in hevcdec_main()
1949 s_app_ctx.share_disp_buf = 0; in hevcdec_main()
1950 s_app_ctx.display = 0; in hevcdec_main()
1954 if(1 == s_app_ctx.display) in hevcdec_main()
1956 s_app_ctx.share_disp_buf = 0; in hevcdec_main()
1957 s_app_ctx.e_output_chroma_format = s_app_ctx.get_color_fmt(); in hevcdec_main()
1959 if(strcmp(s_app_ctx.ac_ip_fname, "\0") == 0) in hevcdec_main()
1970 sprintf(filename_with_path, "%s/%s", homedir, s_app_ctx.ac_ip_fname); in hevcdec_main()
1973 ps_ip_file = fopen(s_app_ctx.ac_ip_fname, "rb"); in hevcdec_main()
1978 s_app_ctx.ac_ip_fname); in hevcdec_main()
1984 if(1 == s_app_ctx.u4_piclen_flag) in hevcdec_main()
1987 sprintf(filename_with_path, "%s/%s", homedir, s_app_ctx.ac_piclen_fname); in hevcdec_main()
1990 ps_piclen_file = fopen(s_app_ctx.ac_piclen_fname, "rb"); in hevcdec_main()
1995 s_app_ctx.ac_piclen_fname); in hevcdec_main()
2003 if(1 == s_app_ctx.u4_file_save_flag) in hevcdec_main()
2006 sprintf(filename_with_path, "%s/%s", documentdir, s_app_ctx.ac_op_fname); in hevcdec_main()
2009 ps_op_file = fopen(s_app_ctx.ac_op_fname, "wb"); in hevcdec_main()
2015 s_app_ctx.ac_op_fname); in hevcdec_main()
2023 if(1 == s_app_ctx.u4_chksum_save_flag) in hevcdec_main()
2026 sprintf(filename_with_path, "%s/%s", documentdir, s_app_ctx.ac_op_chksum_fname); in hevcdec_main()
2029 ps_op_chksum_file = fopen(s_app_ctx.ac_op_chksum_fname, "wb"); in hevcdec_main()
2034 s_app_ctx.ac_op_chksum_fname); in hevcdec_main()
2054 s_create_ip.s_ivd_create_ip_t.u4_share_disp_buf = s_app_ctx.share_disp_buf; in hevcdec_main()
2055 …s_create_ip.s_ivd_create_ip_t.e_output_format = (IV_COLOR_FORMAT_T)s_app_ctx.e_output_chroma_forma… in hevcdec_main()
2075 s_app_ctx.cocodec_obj = codec_obj; in hevcdec_main()
2091 s_ctl_set_cores_ip.u4_num_cores = s_app_ctx.u4_num_cores; in hevcdec_main()
2114 s_ctl_set_num_processor_ip.u4_arch = s_app_ctx.e_arch; in hevcdec_main()
2115 s_ctl_set_num_processor_ip.u4_soc = s_app_ctx.e_soc; in hevcdec_main()
2129 flush_output(codec_obj, &s_app_ctx, ps_out_buf, in hevcdec_main()
2149 if(1 == s_app_ctx.display) in hevcdec_main()
2150 s_ctl_ip.u4_disp_wd = s_app_ctx.get_stride(); in hevcdec_main()
2185 if(0 == s_app_ctx.u4_piclen_flag) in hevcdec_main()
2236 s_app_ctx.u4_pic_wd = s_video_decode_op.u4_pic_wd; in hevcdec_main()
2237 s_app_ctx.u4_pic_ht = s_video_decode_op.u4_pic_ht; in hevcdec_main()
2242 s_app_ctx.i4_screen_wd = screen_wd; in hevcdec_main()
2243 s_app_ctx.i4_screen_ht = screen_ht; in hevcdec_main()
2279 switch(s_app_ctx.e_output_chroma_format) in hevcdec_main()
2324 if((0 == s_app_ctx.share_disp_buf) || (IV_YUV_420P == s_app_ctx.e_output_chroma_format)) in hevcdec_main()
2360 s_app_ctx.disp_delay = EXTRA_DISP_BUFFERS; in hevcdec_main()
2371 s_app_ctx.s_disp_buffers[i].u4_min_out_buf_size[0] = in hevcdec_main()
2373 s_app_ctx.s_disp_buffers[i].u4_min_out_buf_size[1] = in hevcdec_main()
2375 s_app_ctx.s_disp_buffers[i].u4_min_out_buf_size[2] = in hevcdec_main()
2385 s_app_ctx.s_disp_buffers[i].pu1_bufs[0] = (UWORD8 *)malloc(outlen); in hevcdec_main()
2387 if(s_app_ctx.s_disp_buffers[i].pu1_bufs[0] == NULL) in hevcdec_main()
2396 s_app_ctx.s_disp_buffers[i].pu1_bufs[1] = in hevcdec_main()
2397 s_app_ctx.s_disp_buffers[i].pu1_bufs[0] in hevcdec_main()
2401 s_app_ctx.s_disp_buffers[i].pu1_bufs[2] = in hevcdec_main()
2402 s_app_ctx.s_disp_buffers[i].pu1_bufs[1] in hevcdec_main()
2405 s_app_ctx.s_disp_buffers[i].u4_num_bufs = in hevcdec_main()
2408 s_app_ctx.num_disp_buf = s_ctl_op.u4_num_disp_bufs; in hevcdec_main()
2412 if(1 == s_app_ctx.display) in hevcdec_main()
2414 if(0 == s_app_ctx.display_thread_created) in hevcdec_main()
2416 s_app_ctx.display_init_done = 0; in hevcdec_main()
2417 ithread_create(s_app_ctx.display_thread_handle, NULL, in hevcdec_main()
2418 (void *) &display_thread, (void *) &s_app_ctx); in hevcdec_main()
2419 s_app_ctx.display_thread_created = 1; in hevcdec_main()
2423 if(s_app_ctx.display_init_done) in hevcdec_main()
2429 s_app_ctx.u4_strd = s_app_ctx.get_stride(); in hevcdec_main()
2444 s_set_display_frame_ip.num_disp_bufs = s_app_ctx.num_disp_buf; in hevcdec_main()
2447 &(s_app_ctx.s_disp_buffers), in hevcdec_main()
2448 s_app_ctx.num_disp_buf * sizeof(ivd_out_bufdesc_t)); in hevcdec_main()
2536 if(1 == s_app_ctx.display) in hevcdec_main()
2537 s_ctl_ip.u4_disp_wd = s_app_ctx.get_stride(); in hevcdec_main()
2560 set_degrade(codec_obj, s_app_ctx.i4_degrade_type, s_app_ctx.i4_degrade_pics); in hevcdec_main()
2567 while(u4_op_frm_ts < (s_app_ctx.u4_max_frm_ts + s_app_ctx.disp_delay)) in hevcdec_main()
2593 if(u4_ip_frm_ts < s_app_ctx.num_disp_buf) in hevcdec_main()
2631 if(0 == s_app_ctx.u4_piclen_flag) in hevcdec_main()
2649 if(1 == s_app_ctx.loopback) in hevcdec_main()
2652 if(0 == s_app_ctx.u4_piclen_flag) in hevcdec_main()
2731 if(1 == s_app_ctx.display) in hevcdec_main()
2735 wr_idx = dispq_producer_dequeue(&s_app_ctx); in hevcdec_main()
2737 if(s_app_ctx.quit) in hevcdec_main()
2740 s_app_ctx.set_disp_buffers(s_app_ctx.pv_disp_ctx, wr_idx, in hevcdec_main()
2782 if(!(frm_cnt % (s_app_ctx.fps))) in hevcdec_main()
2784 time_consumed = time_consumed / s_app_ctx.fps; in hevcdec_main()
2808 flush_output(codec_obj, &s_app_ctx, ps_out_buf, in hevcdec_main()
2835 s_ctl_set_cores_ip.u4_num_cores = s_app_ctx.u4_num_cores; in hevcdec_main()
2858 s_ctl_set_num_processor_ip.u4_arch = s_app_ctx.e_arch; in hevcdec_main()
2859 s_ctl_set_num_processor_ip.u4_soc = s_app_ctx.e_soc; in hevcdec_main()
2875 if((1 == s_app_ctx.display) && in hevcdec_main()
2878 dispq_producer_queue(&s_app_ctx); in hevcdec_main()
2882 s_app_ctx.b_pic_present |= 1; in hevcdec_main()
2895 dump_output(&s_app_ctx, &(s_video_decode_op.s_disp_frm_buf), in hevcdec_main()
2898 u4_op_frm_ts, s_app_ctx.u4_file_save_flag, in hevcdec_main()
2899 s_app_ctx.u4_chksum_save_flag); in hevcdec_main()
2918 flush_output(codec_obj, &s_app_ctx, ps_out_buf, in hevcdec_main()
2924 s_app_ctx.quit = 1; in hevcdec_main()
2929 printf("Input filename : %s\n", s_app_ctx.ac_ip_fname); in hevcdec_main()
2937 double bitrate = (bytes_avg * 8 * s_app_ctx.fps) / 1000000; in hevcdec_main()
2938 printf("Bitrate @ %2d fps(mbps) : %-6.2f\n", s_app_ctx.fps, bitrate); in hevcdec_main()
2943 if(0 == s_app_ctx.share_disp_buf) in hevcdec_main()
2952 if(1 == s_app_ctx.display) in hevcdec_main()
2954 s_app_ctx.display_deinit_flag = 1; in hevcdec_main()
2956 if(s_app_ctx.display_thread_created) in hevcdec_main()
2958 ithread_join(s_app_ctx.display_thread_handle, NULL); in hevcdec_main()
2960 free(s_app_ctx.display_thread_handle); in hevcdec_main()
2986 if(1 == s_app_ctx.u4_file_save_flag) in hevcdec_main()
2990 if(1 == s_app_ctx.u4_chksum_save_flag) in hevcdec_main()
2997 if(0 == s_app_ctx.share_disp_buf) in hevcdec_main()
3002 for(i = 0; i < s_app_ctx.num_disp_buf; i++) in hevcdec_main()
3004 free(s_app_ctx.s_disp_buffers[i].pu1_bufs[0]); in hevcdec_main()
3010 if(s_app_ctx.display_thread_handle) in hevcdec_main()
3011 free(s_app_ctx.display_thread_handle); in hevcdec_main()