Lines Matching refs:ps_app_ctx

552                                          vid_dec_ctx_t *ps_app_ctx)  in enable_skipb_frames()  argument
558 s_ctl_ip.u4_disp_wd = ps_app_ctx->u4_strd; in enable_skipb_frames()
602 vid_dec_ctx_t *ps_app_ctx) in disable_skipb_frames() argument
608 s_ctl_ip.u4_disp_wd = ps_app_ctx->u4_strd; in disable_skipb_frames()
653 vid_dec_ctx_t *ps_app_ctx) in enable_skippb_frames() argument
659 s_ctl_ip.u4_disp_wd = ps_app_ctx->u4_strd; in enable_skippb_frames()
703 vid_dec_ctx_t *ps_app_ctx) in disable_skippb_frames() argument
709 s_ctl_ip.u4_disp_wd = ps_app_ctx->u4_strd; in disable_skippb_frames()
874 void dump_output(vid_dec_ctx_t *ps_app_ctx, in dump_output() argument
891 if(ps_app_ctx->u4_share_disp_buf) in dump_output()
893 if(ps_app_ctx->dump_q_wr_idx == MAX_DISP_BUFFERS) in dump_output()
894 ps_app_ctx->dump_q_wr_idx = 0; in dump_output()
896 if(ps_app_ctx->dump_q_rd_idx == MAX_DISP_BUFFERS) in dump_output()
897 ps_app_ctx->dump_q_rd_idx = 0; in dump_output()
899 ps_app_ctx->s_disp_frm_queue[ps_app_ctx->dump_q_wr_idx] = in dump_output()
901 ps_app_ctx->s_disp_frm_id_queue[ps_app_ctx->dump_q_wr_idx] = in dump_output()
903 ps_app_ctx->dump_q_wr_idx++; in dump_output()
905 if((WORD32)i4_op_frm_ts >= (WORD32)(ps_app_ctx->disp_delay - 1)) in dump_output()
908 ps_app_ctx->s_disp_frm_queue[ps_app_ctx->dump_q_rd_idx]; in dump_output()
910 ps_app_ctx->s_disp_frm_id_queue[ps_app_ctx->dump_q_rd_idx]; in dump_output()
911 ps_app_ctx->dump_q_rd_idx++; in dump_output()
924 release_disp_frame(ps_app_ctx->cocodec_obj, u4_disp_id); in dump_output()
932 if(ps_app_ctx->e_output_chroma_format == IV_YUV_420P) in dump_output()
997 else if((ps_app_ctx->e_output_chroma_format == IV_YUV_420SP_UV) in dump_output()
998 || (ps_app_ctx->e_output_chroma_format == IV_YUV_420SP_VU)) in dump_output()
1028 else if(ps_app_ctx->e_output_chroma_format == IV_RGBA_8888) in dump_output()
1158 void parse_argument(vid_dec_ctx_t *ps_app_ctx, CHAR *argument, CHAR *value) in parse_argument() argument
1171 sscanf(value, "%s", ps_app_ctx->ac_ip_fname); in parse_argument()
1176 sscanf(value, "%s", ps_app_ctx->ac_op_fname); in parse_argument()
1180 sscanf(value, "%s", ps_app_ctx->ac_op_chksum_fname); in parse_argument()
1184 sscanf(value, "%d", &ps_app_ctx->u4_file_save_flag); in parse_argument()
1188 sscanf(value, "%d", &ps_app_ctx->u4_chksum_save_flag); in parse_argument()
1193 ps_app_ctx->e_output_chroma_format = IV_YUV_420P; in parse_argument()
1195 ps_app_ctx->e_output_chroma_format = IV_YUV_422ILE; in parse_argument()
1197 ps_app_ctx->e_output_chroma_format = IV_RGB_565; in parse_argument()
1199 ps_app_ctx->e_output_chroma_format = IV_RGBA_8888; in parse_argument()
1201 ps_app_ctx->e_output_chroma_format = IV_YUV_420SP_UV; in parse_argument()
1203 ps_app_ctx->e_output_chroma_format = IV_YUV_420SP_VU; in parse_argument()
1207 ps_app_ctx->e_output_chroma_format = IV_YUV_420P; in parse_argument()
1212 sscanf(value, "%d", &ps_app_ctx->u4_max_frm_ts); in parse_argument()
1216 sscanf(value, "%d", &ps_app_ctx->u4_num_cores); in parse_argument()
1219 sscanf(value, "%d", &ps_app_ctx->i4_degrade_pics); in parse_argument()
1222 sscanf(value, "%d", &ps_app_ctx->i4_degrade_type); in parse_argument()
1225 sscanf(value, "%d", &ps_app_ctx->u4_share_disp_buf); in parse_argument()
1228 sscanf(value, "%d", &ps_app_ctx->loopback); in parse_argument()
1232 sscanf(value, "%d", &ps_app_ctx->display); in parse_argument()
1234 ps_app_ctx->display = 0; in parse_argument()
1238 sscanf(value, "%d", &ps_app_ctx->full_screen); in parse_argument()
1241 sscanf(value, "%d", &ps_app_ctx->fps); in parse_argument()
1242 if(ps_app_ctx->fps <= 0) in parse_argument()
1243 ps_app_ctx->fps = DEFAULT_FPS; in parse_argument()
1247 ps_app_ctx->e_arch = ARCH_ARM_NONEON; in parse_argument()
1249 ps_app_ctx->e_arch = ARCH_ARM_A9Q; in parse_argument()
1251 ps_app_ctx->e_arch = ARCH_ARM_A7; in parse_argument()
1253 ps_app_ctx->e_arch = ARCH_ARM_A5; in parse_argument()
1255 ps_app_ctx->e_arch = ARCH_ARM_NEONINTR; in parse_argument()
1257 ps_app_ctx->e_arch = ARCH_X86_GENERIC; in parse_argument()
1259 ps_app_ctx->e_arch = ARCH_X86_SSSE3; in parse_argument()
1261 ps_app_ctx->e_arch = ARCH_X86_SSE42; in parse_argument()
1263 ps_app_ctx->e_arch = ARCH_X86_AVX2; in parse_argument()
1265 ps_app_ctx->e_arch = ARCH_MIPS_GENERIC; in parse_argument()
1267 ps_app_ctx->e_arch = ARCH_MIPS_32; in parse_argument()
1269 ps_app_ctx->e_arch = ARCH_ARMV8_GENERIC; in parse_argument()
1273 ps_app_ctx->e_arch = ARCH_ARM_A9Q; in parse_argument()
1279 ps_app_ctx->e_soc = SOC_GENERIC; in parse_argument()
1281 ps_app_ctx->e_soc = SOC_HISI_37X; in parse_argument()
1284 ps_app_ctx->e_soc = atoi(value); in parse_argument()
1292 sscanf(value, "%d", &ps_app_ctx->u4_piclen_flag); in parse_argument()
1296 sscanf(value, "%s", ps_app_ctx->ac_piclen_fname); in parse_argument()
1299 sscanf(value, "%d", &ps_app_ctx->u4_disable_dblk_level); in parse_argument()
1333 void read_cfg_file(vid_dec_ctx_t *ps_app_ctx, FILE *fp_cfg_file) in read_cfg_file() argument
1353 parse_argument(ps_app_ctx, argument, value); in read_cfg_file()
1378 WORD32 dispq_producer_dequeue(vid_dec_ctx_t *ps_app_ctx) in dispq_producer_dequeue() argument
1384 while(((ps_app_ctx->disp_q_wr_idx + 1) % NUM_DISPLAY_BUFFERS) == ps_app_ctx->disp_q_rd_idx) in dispq_producer_dequeue()
1389 if(ps_app_ctx->quit) in dispq_producer_dequeue()
1393 idx = ps_app_ctx->disp_q_wr_idx; in dispq_producer_dequeue()
1414 WORD32 dispq_producer_queue(vid_dec_ctx_t *ps_app_ctx) in dispq_producer_queue() argument
1416 ps_app_ctx->disp_q_wr_idx++; in dispq_producer_queue()
1417 if(ps_app_ctx->disp_q_wr_idx == NUM_DISPLAY_BUFFERS) in dispq_producer_queue()
1418 ps_app_ctx->disp_q_wr_idx = 0; in dispq_producer_queue()
1441 WORD32 dispq_consumer_dequeue(vid_dec_ctx_t *ps_app_ctx) in dispq_consumer_dequeue() argument
1447 while(ps_app_ctx->disp_q_wr_idx == ps_app_ctx->disp_q_rd_idx) in dispq_consumer_dequeue()
1452 if(ps_app_ctx->quit) in dispq_consumer_dequeue()
1456 idx = ps_app_ctx->disp_q_rd_idx; in dispq_consumer_dequeue()
1477 WORD32 dispq_consumer_queue(vid_dec_ctx_t *ps_app_ctx) in dispq_consumer_queue() argument
1479 ps_app_ctx->disp_q_rd_idx++; in dispq_consumer_queue()
1480 if(ps_app_ctx->disp_q_rd_idx == NUM_DISPLAY_BUFFERS) in dispq_consumer_queue()
1481 ps_app_ctx->disp_q_rd_idx = 0; in dispq_consumer_queue()
1516 vid_dec_ctx_t *ps_app_ctx = (vid_dec_ctx_t *) pv_ctx; in display_thread() local
1535 frm_duration = 1000000/ps_app_ctx->fps; in display_thread()
1538 ps_app_ctx->pv_disp_ctx = (void *)ps_app_ctx->disp_init(ps_app_ctx->u4_pic_wd, in display_thread()
1539 ps_app_ctx->u4_pic_ht, in display_thread()
1540 ps_app_ctx->i4_screen_wd, in display_thread()
1541 ps_app_ctx->i4_screen_ht, in display_thread()
1542 ps_app_ctx->u4_pic_wd, in display_thread()
1543 ps_app_ctx->u4_pic_ht, in display_thread()
1544 ps_app_ctx->full_screen, in display_thread()
1545 &ps_app_ctx->quit, in display_thread()
1546 &ps_app_ctx->paused); in display_thread()
1547 ps_app_ctx->alloc_disp_buffers(ps_app_ctx->pv_disp_ctx); in display_thread()
1549 ps_app_ctx->display_init_done = 1; in display_thread()
1555 rd_idx = dispq_consumer_dequeue(ps_app_ctx); in display_thread()
1556 if (ps_app_ctx->quit) in display_thread()
1559 ps_app_ctx->display_buffer(ps_app_ctx->pv_disp_ctx, rd_idx); in display_thread()
1581 ps_app_ctx->disp_usleep((expected_time - current_time)); in display_thread()
1585 dispq_consumer_queue(ps_app_ctx); in display_thread()
1590 while(0 == ps_app_ctx->display_deinit_flag) in display_thread()
1592 ps_app_ctx->disp_usleep(1000); in display_thread()
1594 ps_app_ctx->disp_deinit(ps_app_ctx->pv_disp_ctx); in display_thread()
1624 vid_dec_ctx_t *ps_app_ctx, in flush_output() argument
1641 if(*pu4_op_frm_ts >= (ps_app_ctx->u4_max_frm_ts + ps_app_ctx->disp_delay)) in flush_output()
1698 if(ps_app_ctx->u4_file_save_flag) in flush_output()
1701 extn = strstr(ps_app_ctx->ac_op_fname,"%d"); in flush_output()
1704 output_write_stall(ps_app_ctx->ac_op_fname,*pu4_op_frm_ts); in flush_output()
1706 sprintf(cur_fname,ps_app_ctx->ac_op_fname,*pu4_op_frm_ts); in flush_output()
1720 dump_output(ps_app_ctx, &(s_video_decode_op.s_disp_frm_buf), in flush_output()
1723 *pu4_op_frm_ts, ps_app_ctx->u4_file_save_flag, in flush_output()
1724 ps_app_ctx->u4_chksum_save_flag); in flush_output()