Lines Matching refs:s_app_ctx
1762 vid_dec_ctx_t s_app_ctx; in vdec_main() local
1839 strcpy(s_app_ctx.ac_ip_fname, "\0"); in vdec_main()
1840 s_app_ctx.dump_q_wr_idx = 0; in vdec_main()
1841 s_app_ctx.dump_q_rd_idx = 0; in vdec_main()
1842 s_app_ctx.display_thread_created = 0; in vdec_main()
1843 s_app_ctx.disp_q_wr_idx = 0; in vdec_main()
1844 s_app_ctx.disp_q_rd_idx = 0; in vdec_main()
1845 s_app_ctx.disp_delay = 0; in vdec_main()
1846 s_app_ctx.loopback = 0; in vdec_main()
1847 s_app_ctx.display = 0; in vdec_main()
1848 s_app_ctx.full_screen = 0; in vdec_main()
1849 s_app_ctx.u4_piclen_flag = 0; in vdec_main()
1850 s_app_ctx.fps = DEFAULT_FPS; in vdec_main()
1858 s_app_ctx.deinterlace = DEFAULT_DEINTERLACE; in vdec_main()
1859 s_app_ctx.share_disp_buf = DEFAULT_SHARE_DISPLAY_BUF; in vdec_main()
1860 s_app_ctx.u4_num_cores = DEFAULT_NUM_CORES; in vdec_main()
1861 s_app_ctx.i4_degrade_type = 0; in vdec_main()
1862 s_app_ctx.i4_degrade_pics = 0; in vdec_main()
1863 s_app_ctx.max_wd = 0; in vdec_main()
1864 s_app_ctx.max_ht = 0; in vdec_main()
1865 s_app_ctx.max_level = 0; in vdec_main()
1866 s_app_ctx.e_arch = ARCH_ARM_A9Q; in vdec_main()
1867 s_app_ctx.e_soc = SOC_GENERIC; in vdec_main()
1869 s_app_ctx.u4_strd = STRIDE; in vdec_main()
1871 s_app_ctx.display_thread_handle = malloc(ithread_get_handle_size()); in vdec_main()
1872 s_app_ctx.quit = 0; in vdec_main()
1873 s_app_ctx.paused = 0; in vdec_main()
1876 s_app_ctx.get_stride = &default_get_stride; in vdec_main()
1878 s_app_ctx.get_color_fmt = &default_get_color_fmt; in vdec_main()
1882 s_app_ctx.disp_init = &sdl_disp_init; in vdec_main()
1883 s_app_ctx.alloc_disp_buffers = &sdl_alloc_disp_buffers; in vdec_main()
1884 s_app_ctx.display_buffer = &sdl_display; in vdec_main()
1885 s_app_ctx.set_disp_buffers = &sdl_set_disp_buffers; in vdec_main()
1886 s_app_ctx.disp_deinit = &sdl_disp_deinit; in vdec_main()
1887 s_app_ctx.disp_usleep = &sdl_disp_usleep; in vdec_main()
1888 s_app_ctx.get_color_fmt = &sdl_get_color_fmt; in vdec_main()
1889 s_app_ctx.get_stride = &sdl_get_stride; in vdec_main()
1893 s_app_ctx.disp_init = &fbd_disp_init; in vdec_main()
1894 s_app_ctx.alloc_disp_buffers = &fbd_alloc_disp_buffers; in vdec_main()
1895 s_app_ctx.display_buffer = &fbd_display; in vdec_main()
1896 s_app_ctx.set_disp_buffers = &fbd_set_disp_buffers; in vdec_main()
1897 s_app_ctx.disp_deinit = &fbd_disp_deinit; in vdec_main()
1898 s_app_ctx.disp_usleep = &fbd_disp_usleep; in vdec_main()
1899 s_app_ctx.get_color_fmt = &fbd_get_color_fmt; in vdec_main()
1900 s_app_ctx.get_stride = &fbd_get_stride; in vdec_main()
1904 s_app_ctx.disp_init = &gdl_disp_init; in vdec_main()
1905 s_app_ctx.alloc_disp_buffers = &gdl_alloc_disp_buffers; in vdec_main()
1906 s_app_ctx.display_buffer = &gdl_display; in vdec_main()
1907 s_app_ctx.set_disp_buffers = &gdl_set_disp_buffers; in vdec_main()
1908 s_app_ctx.disp_deinit = &gdl_disp_deinit; in vdec_main()
1909 s_app_ctx.disp_usleep = &gdl_disp_usleep; in vdec_main()
1910 s_app_ctx.get_color_fmt = &gdl_get_color_fmt; in vdec_main()
1911 s_app_ctx.get_stride = &gdl_get_stride; in vdec_main()
1915 s_app_ctx.disp_init = &ios_disp_init; in vdec_main()
1916 s_app_ctx.alloc_disp_buffers = &ios_alloc_disp_buffers; in vdec_main()
1917 s_app_ctx.display_buffer = &ios_display; in vdec_main()
1918 s_app_ctx.set_disp_buffers = &ios_set_disp_buffers; in vdec_main()
1919 s_app_ctx.disp_deinit = &ios_disp_deinit; in vdec_main()
1920 s_app_ctx.disp_usleep = &ios_disp_usleep; in vdec_main()
1921 s_app_ctx.get_color_fmt = &ios_get_color_fmt; in vdec_main()
1922 s_app_ctx.get_stride = &ios_get_stride; in vdec_main()
1925 s_app_ctx.display_deinit_flag = 0; in vdec_main()
1926 s_app_ctx.e_output_chroma_format = IV_YUV_420SP_UV; in vdec_main()
1946 read_cfg_file(&s_app_ctx, fp_cfg_file); in vdec_main()
1951 parse_argument(&s_app_ctx, argv[i], argv[i + 1]); in vdec_main()
1963 read_cfg_file(&s_app_ctx, fp_cfg_file); in vdec_main()
1975 read_cfg_file(&s_app_ctx, fp_cfg_file); in vdec_main()
1981 s_app_ctx.u4_piclen_flag = 0; in vdec_main()
1982 s_app_ctx.u4_file_save_flag = 0; in vdec_main()
1983 s_app_ctx.u4_chksum_save_flag = 0; in vdec_main()
1984 s_app_ctx.i4_degrade_pics = 0; in vdec_main()
1985 s_app_ctx.i4_degrade_type = 0; in vdec_main()
1986 s_app_ctx.loopback = 0; in vdec_main()
1987 s_app_ctx.deinterlace = 0; in vdec_main()
1988 s_app_ctx.share_disp_buf = 0; in vdec_main()
1989 s_app_ctx.display = 0; in vdec_main()
1993 if(1 == s_app_ctx.display) in vdec_main()
1995 s_app_ctx.share_disp_buf = 0; in vdec_main()
1996 s_app_ctx.e_output_chroma_format = s_app_ctx.get_color_fmt(); in vdec_main()
1998 if(strcmp(s_app_ctx.ac_ip_fname, "\0") == 0) in vdec_main()
2009 sprintf(filename_with_path, "%s/%s", homedir, s_app_ctx.ac_ip_fname); in vdec_main()
2012 ps_ip_file = fopen(s_app_ctx.ac_ip_fname, "rb"); in vdec_main()
2017 s_app_ctx.ac_ip_fname); in vdec_main()
2023 if(1 == s_app_ctx.u4_piclen_flag) in vdec_main()
2026 sprintf(filename_with_path, "%s/%s", homedir, s_app_ctx.ac_piclen_fname); in vdec_main()
2029 ps_piclen_file = fopen(s_app_ctx.ac_piclen_fname, "rb"); in vdec_main()
2034 s_app_ctx.ac_piclen_fname); in vdec_main()
2042 if(1 == s_app_ctx.u4_file_save_flag) in vdec_main()
2045 sprintf(filename_with_path, "%s/%s", documentdir, s_app_ctx.ac_op_fname); in vdec_main()
2048 ps_op_file = fopen(s_app_ctx.ac_op_fname, "wb"); in vdec_main()
2054 s_app_ctx.ac_op_fname); in vdec_main()
2062 if(1 == s_app_ctx.u4_chksum_save_flag) in vdec_main()
2065 sprintf(filename_with_path, "%s/%s", documentdir, s_app_ctx.ac_op_chksum_fname); in vdec_main()
2068 ps_op_chksum_file = fopen(s_app_ctx.ac_op_chksum_fname, "wb"); in vdec_main()
2073 s_app_ctx.ac_op_chksum_fname); in vdec_main()
2126 (s_app_ctx.max_wd == 0) ? MAX_FRAME_WIDTH : s_app_ctx.max_wd; in vdec_main()
2128 (s_app_ctx.max_ht == 0) ? MAX_FRAME_HEIGHT : s_app_ctx.max_ht; in vdec_main()
2129 s_fill_mem_rec_ip.u4_share_disp_buf = s_app_ctx.share_disp_buf; in vdec_main()
2130 s_fill_mem_rec_ip.u4_deinterlace = s_app_ctx.deinterlace; in vdec_main()
2132 (IV_COLOR_FORMAT_T)s_app_ctx.e_output_chroma_format; in vdec_main()
2192 …s_init_ip.s_ivd_init_ip_t.u4_frm_max_wd = (s_app_ctx.max_wd == 0) ? MAX_FRAME_WIDTH : s_app_ctx.ma… in vdec_main()
2193 …s_init_ip.s_ivd_init_ip_t.u4_frm_max_ht = (s_app_ctx.max_ht == 0) ? MAX_FRAME_HEIGHT : s_app_ctx.m… in vdec_main()
2195 s_init_ip.u4_share_disp_buf = s_app_ctx.share_disp_buf; in vdec_main()
2196 s_init_ip.u4_deinterlace = s_app_ctx.deinterlace; in vdec_main()
2199 (IV_COLOR_FORMAT_T)s_app_ctx.e_output_chroma_format; in vdec_main()
2207 s_app_ctx.cocodec_obj = codec_obj; in vdec_main()
2249 s_app_ctx.num_disp_buf = s_ctl_op.u4_num_disp_bufs; in vdec_main()
2252 … if((0 == s_app_ctx.share_disp_buf) || (IV_YUV_420P == s_app_ctx.e_output_chroma_format)) in vdec_main()
2305 s_ctl_set_cores_ip.u4_num_cores = s_app_ctx.u4_num_cores; in vdec_main()
2329 s_ctl_set_num_processor_ip.u4_arch = s_app_ctx.e_arch; in vdec_main()
2330 s_ctl_set_num_processor_ip.u4_soc = s_app_ctx.e_soc; in vdec_main()
2357 if(1 == s_app_ctx.display) in vdec_main()
2358 s_ctl_ip.u4_disp_wd = s_app_ctx.get_stride(); in vdec_main()
2380 if(0 == s_app_ctx.u4_piclen_flag) in vdec_main()
2431 s_app_ctx.u4_pic_wd = s_video_decode_op.u4_pic_wd; in vdec_main()
2432 s_app_ctx.u4_pic_ht = s_video_decode_op.u4_pic_ht; in vdec_main()
2435 s_app_ctx.i4_screen_wd = screen_wd; in vdec_main()
2436 s_app_ctx.i4_screen_ht = screen_ht; in vdec_main()
2440 if(1 == s_app_ctx.display) in vdec_main()
2442 if(0 == s_app_ctx.display_thread_created) in vdec_main()
2444 s_app_ctx.display_init_done = 0; in vdec_main()
2445 ithread_create(s_app_ctx.display_thread_handle, NULL, in vdec_main()
2446 (void *)&display_thread, (void *)&s_app_ctx); in vdec_main()
2447 s_app_ctx.display_thread_created = 1; in vdec_main()
2451 if(s_app_ctx.display_init_done) in vdec_main()
2458 s_app_ctx.u4_strd = s_app_ctx.get_stride(); in vdec_main()
2486 s_app_ctx.disp_delay = EXTRA_DISP_BUFFERS; in vdec_main()
2497 s_app_ctx.s_disp_buffers[i].u4_min_out_buf_size[0] = in vdec_main()
2499 s_app_ctx.s_disp_buffers[i].u4_min_out_buf_size[1] = in vdec_main()
2501 s_app_ctx.s_disp_buffers[i].u4_min_out_buf_size[2] = in vdec_main()
2511 s_app_ctx.s_disp_buffers[i].pu1_bufs[0] = (UWORD8 *)malloc(outlen); in vdec_main()
2513 if(s_app_ctx.s_disp_buffers[i].pu1_bufs[0] == NULL) in vdec_main()
2522 s_app_ctx.s_disp_buffers[i].pu1_bufs[1] = in vdec_main()
2523 s_app_ctx.s_disp_buffers[i].pu1_bufs[0] in vdec_main()
2527 s_app_ctx.s_disp_buffers[i].pu1_bufs[2] = in vdec_main()
2528 s_app_ctx.s_disp_buffers[i].pu1_bufs[1] in vdec_main()
2531 s_app_ctx.s_disp_buffers[i].u4_num_bufs = in vdec_main()
2534 s_app_ctx.num_disp_buf = s_ctl_op.u4_num_disp_bufs; in vdec_main()
2539 if(1 == s_app_ctx.share_disp_buf) in vdec_main()
2548 s_set_display_frame_ip.num_disp_bufs = s_app_ctx.num_disp_buf; in vdec_main()
2551 &(s_app_ctx.s_disp_buffers), in vdec_main()
2641 if(1 == s_app_ctx.display) in vdec_main()
2642 s_ctl_ip.u4_disp_wd = s_app_ctx.get_stride(); in vdec_main()
2665 set_degrade(codec_obj, s_app_ctx.i4_degrade_type, s_app_ctx.i4_degrade_pics); in vdec_main()
2672 while(u4_op_frm_ts < (s_app_ctx.u4_max_frm_ts + s_app_ctx.disp_delay)) in vdec_main()
2698 if(u4_ip_frm_ts < s_app_ctx.num_disp_buf && (1 == s_app_ctx.share_disp_buf)) in vdec_main()
2736 if(0 == s_app_ctx.u4_piclen_flag) in vdec_main()
2754 if(1 == s_app_ctx.loopback) in vdec_main()
2757 if(0 == s_app_ctx.u4_piclen_flag) in vdec_main()
2836 if(1 == s_app_ctx.display) in vdec_main()
2840 wr_idx = dispq_producer_dequeue(&s_app_ctx); in vdec_main()
2842 if(s_app_ctx.quit) in vdec_main()
2845 s_app_ctx.set_disp_buffers(s_app_ctx.pv_disp_ctx, wr_idx, in vdec_main()
2887 if(!(frm_cnt % (s_app_ctx.fps))) in vdec_main()
2889 time_consumed = time_consumed / s_app_ctx.fps; in vdec_main()
2910 flush_output(codec_obj, &s_app_ctx, ps_out_buf, in vdec_main()
2937 s_ctl_set_cores_ip.u4_num_cores = s_app_ctx.u4_num_cores; in vdec_main()
2961 s_ctl_set_num_processor_ip.u4_arch = s_app_ctx.e_arch; in vdec_main()
2962 s_ctl_set_num_processor_ip.u4_soc = s_app_ctx.e_soc; in vdec_main()
2980 flush_output(codec_obj, &s_app_ctx, ps_out_buf, in vdec_main()
2993 if((1 == s_app_ctx.display) && in vdec_main()
2996 dispq_producer_queue(&s_app_ctx); in vdec_main()
3000 s_app_ctx.b_pic_present |= 1; in vdec_main()
3013 dump_output(&s_app_ctx, &(s_video_decode_op.s_disp_frm_buf), in vdec_main()
3016 u4_op_frm_ts, s_app_ctx.u4_file_save_flag, in vdec_main()
3017 s_app_ctx.u4_chksum_save_flag); in vdec_main()
3036 flush_output(codec_obj, &s_app_ctx, ps_out_buf, in vdec_main()
3042 s_app_ctx.quit = 1; in vdec_main()
3047 printf("Input filename : %s\n", s_app_ctx.ac_ip_fname); in vdec_main()
3055 double bitrate = (bytes_avg * 8 * s_app_ctx.fps) / 1000000; in vdec_main()
3056 printf("Bitrate @ %2d fps(mbps) : %-6.2f\n", s_app_ctx.fps, bitrate); in vdec_main()
3061 if(0 == s_app_ctx.share_disp_buf) in vdec_main()
3070 if(1 == s_app_ctx.display) in vdec_main()
3072 s_app_ctx.display_deinit_flag = 1; in vdec_main()
3074 if(s_app_ctx.display_thread_created) in vdec_main()
3076 ithread_join(s_app_ctx.display_thread_handle, NULL); in vdec_main()
3078 free(s_app_ctx.display_thread_handle); in vdec_main()
3122 if(1 == s_app_ctx.u4_file_save_flag) in vdec_main()
3126 if(1 == s_app_ctx.u4_chksum_save_flag) in vdec_main()
3133 if(0 == s_app_ctx.share_disp_buf) in vdec_main()
3138 for(i = 0; i < s_app_ctx.num_disp_buf; i++) in vdec_main()
3140 free(s_app_ctx.s_disp_buffers[i].pu1_bufs[0]); in vdec_main()