Lines Matching refs:s_app_ctx

1791     vid_dec_ctx_t s_app_ctx;  in h264dec_main()  local
1869 strcpy(s_app_ctx.ac_ip_fname, "\0"); in h264dec_main()
1870 s_app_ctx.dump_q_wr_idx = 0; in h264dec_main()
1871 s_app_ctx.dump_q_rd_idx = 0; in h264dec_main()
1872 s_app_ctx.display_thread_created = 0; in h264dec_main()
1873 s_app_ctx.disp_q_wr_idx = 0; in h264dec_main()
1874 s_app_ctx.disp_q_rd_idx = 0; in h264dec_main()
1875 s_app_ctx.disp_delay = 0; in h264dec_main()
1876 s_app_ctx.loopback = 0; in h264dec_main()
1877 s_app_ctx.display = 0; in h264dec_main()
1878 s_app_ctx.full_screen = 0; in h264dec_main()
1879 s_app_ctx.u4_piclen_flag = 0; in h264dec_main()
1880 s_app_ctx.fps = DEFAULT_FPS; in h264dec_main()
1888 s_app_ctx.u4_share_disp_buf = DEFAULT_SHARE_DISPLAY_BUF; in h264dec_main()
1889 s_app_ctx.u4_num_cores = DEFAULT_NUM_CORES; in h264dec_main()
1890 s_app_ctx.i4_degrade_type = 0; in h264dec_main()
1891 s_app_ctx.i4_degrade_pics = 0; in h264dec_main()
1892 s_app_ctx.e_arch = ARCH_ARM_A9Q; in h264dec_main()
1893 s_app_ctx.e_soc = SOC_GENERIC; in h264dec_main()
1895 s_app_ctx.u4_strd = STRIDE; in h264dec_main()
1897 s_app_ctx.display_thread_handle = malloc(ithread_get_handle_size()); in h264dec_main()
1898 s_app_ctx.quit = 0; in h264dec_main()
1899 s_app_ctx.paused = 0; in h264dec_main()
1902 s_app_ctx.get_stride = &default_get_stride; in h264dec_main()
1904 s_app_ctx.get_color_fmt = &default_get_color_fmt; in h264dec_main()
1908 s_app_ctx.disp_init = &sdl_disp_init; in h264dec_main()
1909 s_app_ctx.alloc_disp_buffers = &sdl_alloc_disp_buffers; in h264dec_main()
1910 s_app_ctx.display_buffer = &sdl_display; in h264dec_main()
1911 s_app_ctx.set_disp_buffers = &sdl_set_disp_buffers; in h264dec_main()
1912 s_app_ctx.disp_deinit = &sdl_disp_deinit; in h264dec_main()
1913 s_app_ctx.disp_usleep = &sdl_disp_usleep; in h264dec_main()
1914 s_app_ctx.get_color_fmt = &sdl_get_color_fmt; in h264dec_main()
1915 s_app_ctx.get_stride = &sdl_get_stride; in h264dec_main()
1919 s_app_ctx.disp_init = &fbd_disp_init; in h264dec_main()
1920 s_app_ctx.alloc_disp_buffers = &fbd_alloc_disp_buffers; in h264dec_main()
1921 s_app_ctx.display_buffer = &fbd_display; in h264dec_main()
1922 s_app_ctx.set_disp_buffers = &fbd_set_disp_buffers; in h264dec_main()
1923 s_app_ctx.disp_deinit = &fbd_disp_deinit; in h264dec_main()
1924 s_app_ctx.disp_usleep = &fbd_disp_usleep; in h264dec_main()
1925 s_app_ctx.get_color_fmt = &fbd_get_color_fmt; in h264dec_main()
1926 s_app_ctx.get_stride = &fbd_get_stride; in h264dec_main()
1930 s_app_ctx.disp_init = &gdl_disp_init; in h264dec_main()
1931 s_app_ctx.alloc_disp_buffers = &gdl_alloc_disp_buffers; in h264dec_main()
1932 s_app_ctx.display_buffer = &gdl_display; in h264dec_main()
1933 s_app_ctx.set_disp_buffers = &gdl_set_disp_buffers; in h264dec_main()
1934 s_app_ctx.disp_deinit = &gdl_disp_deinit; in h264dec_main()
1935 s_app_ctx.disp_usleep = &gdl_disp_usleep; in h264dec_main()
1936 s_app_ctx.get_color_fmt = &gdl_get_color_fmt; in h264dec_main()
1937 s_app_ctx.get_stride = &gdl_get_stride; in h264dec_main()
1941 s_app_ctx.disp_init = &ios_disp_init; in h264dec_main()
1942 s_app_ctx.alloc_disp_buffers = &ios_alloc_disp_buffers; in h264dec_main()
1943 s_app_ctx.display_buffer = &ios_display; in h264dec_main()
1944 s_app_ctx.set_disp_buffers = &ios_set_disp_buffers; in h264dec_main()
1945 s_app_ctx.disp_deinit = &ios_disp_deinit; in h264dec_main()
1946 s_app_ctx.disp_usleep = &ios_disp_usleep; in h264dec_main()
1947 s_app_ctx.get_color_fmt = &ios_get_color_fmt; in h264dec_main()
1948 s_app_ctx.get_stride = &ios_get_stride; in h264dec_main()
1951 s_app_ctx.display_deinit_flag = 0; in h264dec_main()
1952 s_app_ctx.e_output_chroma_format = IV_YUV_420SP_UV; in h264dec_main()
1972 read_cfg_file(&s_app_ctx, fp_cfg_file); in h264dec_main()
1977 parse_argument(&s_app_ctx, argv[i], argv[i + 1]); in h264dec_main()
1989 read_cfg_file(&s_app_ctx, fp_cfg_file); in h264dec_main()
2001 read_cfg_file(&s_app_ctx, fp_cfg_file); in h264dec_main()
2007 s_app_ctx.u4_piclen_flag = 0; in h264dec_main()
2008 s_app_ctx.u4_file_save_flag = 0; in h264dec_main()
2009 s_app_ctx.u4_chksum_save_flag = 0; in h264dec_main()
2010 s_app_ctx.i4_degrade_pics = 0; in h264dec_main()
2011 s_app_ctx.i4_degrade_type = 0; in h264dec_main()
2012 s_app_ctx.loopback = 0; in h264dec_main()
2013 s_app_ctx.u4_share_disp_buf = 0; in h264dec_main()
2014 s_app_ctx.display = 0; in h264dec_main()
2018 if(1 == s_app_ctx.display) in h264dec_main()
2020 s_app_ctx.u4_share_disp_buf = 0; in h264dec_main()
2021 s_app_ctx.e_output_chroma_format = s_app_ctx.get_color_fmt(); in h264dec_main()
2023 if(strcmp(s_app_ctx.ac_ip_fname, "\0") == 0) in h264dec_main()
2035 sprintf(filename_with_path, "%s/%s", homedir, s_app_ctx.ac_ip_fname); in h264dec_main()
2038 ps_ip_file = fopen(s_app_ctx.ac_ip_fname, "rb"); in h264dec_main()
2043 s_app_ctx.ac_ip_fname); in h264dec_main()
2049 if(1 == s_app_ctx.u4_piclen_flag) in h264dec_main()
2052 sprintf(filename_with_path, "%s/%s", homedir, s_app_ctx.ac_piclen_fname); in h264dec_main()
2055 ps_piclen_file = fopen(s_app_ctx.ac_piclen_fname, "rb"); in h264dec_main()
2060 s_app_ctx.ac_piclen_fname); in h264dec_main()
2071 if((1 == s_app_ctx.u4_file_save_flag) && (strstr(s_app_ctx.ac_op_fname,"%d") == NULL)) in h264dec_main()
2074 sprintf(filename_with_path, "%s/%s", documentdir, s_app_ctx.ac_op_fname); in h264dec_main()
2077 ps_op_file = fopen(s_app_ctx.ac_op_fname, "wb"); in h264dec_main()
2083 s_app_ctx.ac_op_fname); in h264dec_main()
2091 if(1 == s_app_ctx.u4_chksum_save_flag) in h264dec_main()
2094 sprintf(filename_with_path, "%s/%s", documentdir, s_app_ctx.ac_op_chksum_fname); in h264dec_main()
2097 ps_op_chksum_file = fopen(s_app_ctx.ac_op_chksum_fname, "wb"); in h264dec_main()
2102 s_app_ctx.ac_op_chksum_fname); in h264dec_main()
2122 s_create_ip.s_ivd_create_ip_t.u4_share_disp_buf = s_app_ctx.u4_share_disp_buf; in h264dec_main()
2123 …s_create_ip.s_ivd_create_ip_t.e_output_format = (IV_COLOR_FORMAT_T)s_app_ctx.e_output_chroma_forma… in h264dec_main()
2143 s_app_ctx.cocodec_obj = codec_obj; in h264dec_main()
2154 if(1 == s_app_ctx.display) in h264dec_main()
2155 s_ctl_ip.u4_disp_wd = s_app_ctx.get_stride(); in h264dec_main()
2192 s_ctl_set_cores_ip.u4_num_cores = s_app_ctx.u4_num_cores; in h264dec_main()
2216 s_ctl_set_num_processor_ip.u4_arch = s_app_ctx.e_arch; in h264dec_main()
2217 s_ctl_set_num_processor_ip.u4_soc = s_app_ctx.e_soc; in h264dec_main()
2231 flush_output(codec_obj, &s_app_ctx, ps_out_buf, in h264dec_main()
2251 if(1 == s_app_ctx.display) in h264dec_main()
2252 s_ctl_ip.u4_disp_wd = s_app_ctx.get_stride(); in h264dec_main()
2288 if(0 == s_app_ctx.u4_piclen_flag) in h264dec_main()
2338 s_app_ctx.u4_pic_wd = s_video_decode_op.u4_pic_wd; in h264dec_main()
2339 s_app_ctx.u4_pic_ht = s_video_decode_op.u4_pic_ht; in h264dec_main()
2344 s_app_ctx.i4_screen_wd = screen_wd; in h264dec_main()
2345 s_app_ctx.i4_screen_ht = screen_ht; in h264dec_main()
2380 s_app_ctx.num_disp_buf = s_ctl_op.u4_num_disp_bufs; in h264dec_main()
2383 … if((0 == s_app_ctx.u4_share_disp_buf) || (IV_YUV_420P == s_app_ctx.e_output_chroma_format)) in h264dec_main()
2386 switch(s_app_ctx.e_output_chroma_format) in h264dec_main()
2464 s_app_ctx.disp_delay = EXTRA_DISP_BUFFERS; in h264dec_main()
2475 s_app_ctx.s_disp_buffers[i].u4_min_out_buf_size[0] = in h264dec_main()
2477 s_app_ctx.s_disp_buffers[i].u4_min_out_buf_size[1] = in h264dec_main()
2479 s_app_ctx.s_disp_buffers[i].u4_min_out_buf_size[2] = in h264dec_main()
2489 s_app_ctx.s_disp_buffers[i].pu1_bufs[0] = (UWORD8 *)malloc(outlen); in h264dec_main()
2491 if(s_app_ctx.s_disp_buffers[i].pu1_bufs[0] == NULL) in h264dec_main()
2500 s_app_ctx.s_disp_buffers[i].pu1_bufs[1] = in h264dec_main()
2501 s_app_ctx.s_disp_buffers[i].pu1_bufs[0] in h264dec_main()
2505 s_app_ctx.s_disp_buffers[i].pu1_bufs[2] = in h264dec_main()
2506 s_app_ctx.s_disp_buffers[i].pu1_bufs[1] in h264dec_main()
2509 s_app_ctx.s_disp_buffers[i].u4_num_bufs = in h264dec_main()
2512 s_app_ctx.num_disp_buf = s_ctl_op.u4_num_disp_bufs; in h264dec_main()
2516 if(1 == s_app_ctx.display) in h264dec_main()
2518 if(0 == s_app_ctx.display_thread_created) in h264dec_main()
2520 s_app_ctx.display_init_done = 0; in h264dec_main()
2521 ithread_create(s_app_ctx.display_thread_handle, NULL, in h264dec_main()
2522 (void *) &display_thread, (void *) &s_app_ctx); in h264dec_main()
2523 s_app_ctx.display_thread_created = 1; in h264dec_main()
2527 if(s_app_ctx.display_init_done) in h264dec_main()
2534 s_app_ctx.u4_strd = s_app_ctx.get_stride(); in h264dec_main()
2556 s_set_display_frame_ip.num_disp_bufs = s_app_ctx.num_disp_buf; in h264dec_main()
2559 &(s_app_ctx.s_disp_buffers), in h264dec_main()
2560 s_app_ctx.num_disp_buf * sizeof(ivd_out_bufdesc_t)); in h264dec_main()
2622 if(1 == s_app_ctx.display) in h264dec_main()
2623 s_ctl_ip.u4_disp_wd = s_app_ctx.get_stride(); in h264dec_main()
2647 set_degrade(codec_obj, s_app_ctx.i4_degrade_type, s_app_ctx.i4_degrade_pics); in h264dec_main()
2656 max_op_frm_ts = s_app_ctx.u4_max_frm_ts + s_app_ctx.disp_delay; in h264dec_main()
2658 if(max_op_frm_ts < s_app_ctx.disp_delay) in h264dec_main()
2661 max_op_frm_ts = (s_app_ctx.u4_max_frm_ts > 0)? (max_op_frm_ts): 0xffffffff; in h264dec_main()
2691 if(u4_num_disp_bufs_with_dec < s_app_ctx.num_disp_buf) in h264dec_main()
2730 if(0 == s_app_ctx.u4_piclen_flag) in h264dec_main()
2748 if(1 == s_app_ctx.loopback) in h264dec_main()
2751 if(0 == s_app_ctx.u4_piclen_flag) in h264dec_main()
2830 if(1 == s_app_ctx.display) in h264dec_main()
2834 wr_idx = dispq_producer_dequeue(&s_app_ctx); in h264dec_main()
2836 if(s_app_ctx.quit) in h264dec_main()
2839 s_app_ctx.set_disp_buffers(s_app_ctx.pv_disp_ctx, wr_idx, in h264dec_main()
2881 if (!(frm_cnt % (s_app_ctx.fps))) in h264dec_main()
2883 time_consumed = time_consumed/s_app_ctx.fps; in h264dec_main()
2907 flush_output(codec_obj, &s_app_ctx, ps_out_buf, in h264dec_main()
2937 s_ctl_set_cores_ip.u4_num_cores = s_app_ctx.u4_num_cores; in h264dec_main()
2961 s_ctl_set_num_processor_ip.u4_arch = s_app_ctx.e_arch; in h264dec_main()
2962 s_ctl_set_num_processor_ip.u4_soc = s_app_ctx.e_soc; in h264dec_main()
2978 if((1 == s_app_ctx.display) && in h264dec_main()
2981 dispq_producer_queue(&s_app_ctx); in h264dec_main()
2985 s_app_ctx.b_pic_present |= 1; in h264dec_main()
3003 if(s_app_ctx.u4_file_save_flag) in h264dec_main()
3006 extn = strstr(s_app_ctx.ac_op_fname,"%d"); in h264dec_main()
3009 output_write_stall(s_app_ctx.ac_op_fname,u4_op_frm_ts); in h264dec_main()
3011 sprintf(cur_fname,s_app_ctx.ac_op_fname,u4_op_frm_ts); in h264dec_main()
3026 dump_output(&s_app_ctx, &(s_video_decode_op.s_disp_frm_buf), in h264dec_main()
3029 u4_op_frm_ts, s_app_ctx.u4_file_save_flag, in h264dec_main()
3030 s_app_ctx.u4_chksum_save_flag); in h264dec_main()
3052 flush_output(codec_obj, &s_app_ctx, ps_out_buf, in h264dec_main()
3058 s_app_ctx.quit = 1; in h264dec_main()
3063 printf("Input filename : %s\n", s_app_ctx.ac_ip_fname); in h264dec_main()
3071 double bitrate = (bytes_avg * 8 * s_app_ctx.fps)/1000000; in h264dec_main()
3072 printf("Bitrate @ %2d fps(mbps) : %-6.2f\n", s_app_ctx.fps, bitrate); in h264dec_main()
3077 if(0 == s_app_ctx.u4_share_disp_buf) in h264dec_main()
3086 if(1 == s_app_ctx.display) in h264dec_main()
3088 s_app_ctx.display_deinit_flag = 1; in h264dec_main()
3090 if(s_app_ctx.display_thread_created) in h264dec_main()
3092 ithread_join(s_app_ctx.display_thread_handle, NULL); in h264dec_main()
3094 free(s_app_ctx.display_thread_handle); in h264dec_main()
3120 if((1 == s_app_ctx.u4_file_save_flag) && (strstr(s_app_ctx.ac_op_fname,"%d") == NULL)) in h264dec_main()
3124 if(1 == s_app_ctx.u4_chksum_save_flag) in h264dec_main()
3131 if(0 == s_app_ctx.u4_share_disp_buf) in h264dec_main()
3136 for(i = 0; i < s_app_ctx.num_disp_buf; i++) in h264dec_main()
3138 free(s_app_ctx.s_disp_buffers[i].pu1_bufs[0]); in h264dec_main()
3144 if(s_app_ctx.display_thread_handle) in h264dec_main()
3145 free(s_app_ctx.display_thread_handle); in h264dec_main()