Lines Matching refs:ps_app_ctx
543 vid_dec_ctx_t *ps_app_ctx) in enable_skipb_frames() argument
549 s_ctl_ip.u4_disp_wd = ps_app_ctx->u4_strd; in enable_skipb_frames()
593 vid_dec_ctx_t *ps_app_ctx) in disable_skipb_frames() argument
599 s_ctl_ip.u4_disp_wd = ps_app_ctx->u4_strd; in disable_skipb_frames()
644 vid_dec_ctx_t *ps_app_ctx) in enable_skippb_frames() argument
650 s_ctl_ip.u4_disp_wd = ps_app_ctx->u4_strd; in enable_skippb_frames()
694 vid_dec_ctx_t *ps_app_ctx) in disable_skippb_frames() argument
700 s_ctl_ip.u4_disp_wd = ps_app_ctx->u4_strd; in disable_skippb_frames()
865 void dump_output(vid_dec_ctx_t *ps_app_ctx, in dump_output() argument
882 if(ps_app_ctx->share_disp_buf) in dump_output()
884 if(ps_app_ctx->dump_q_wr_idx == MAX_DISP_BUFFERS in dump_output()
886 ps_app_ctx->dump_q_wr_idx = 0; in dump_output()
888 if(ps_app_ctx->dump_q_rd_idx == MAX_DISP_BUFFERS in dump_output()
890 ps_app_ctx->dump_q_rd_idx = 0; in dump_output()
892 ps_app_ctx->s_disp_frm_queue[ps_app_ctx->dump_q_wr_idx] = in dump_output()
894 ps_app_ctx->s_disp_frm_id_queue[ps_app_ctx->dump_q_wr_idx] = in dump_output()
896 ps_app_ctx->dump_q_wr_idx++; in dump_output()
898 if((WORD32)i4_op_frm_ts >= (WORD32)(ps_app_ctx->disp_delay - 1)) in dump_output()
901 ps_app_ctx->s_disp_frm_queue[ps_app_ctx->dump_q_rd_idx]; in dump_output()
903 ps_app_ctx->s_disp_frm_id_queue[ps_app_ctx->dump_q_rd_idx]; in dump_output()
904 ps_app_ctx->dump_q_rd_idx++; in dump_output()
917 release_disp_frame(ps_app_ctx->cocodec_obj, u4_disp_id); in dump_output()
925 if(ps_app_ctx->e_output_chroma_format == IV_YUV_420P) in dump_output()
989 else if((ps_app_ctx->e_output_chroma_format == IV_YUV_420SP_UV) in dump_output()
990 || (ps_app_ctx->e_output_chroma_format == IV_YUV_420SP_VU)) in dump_output()
1020 else if(ps_app_ctx->e_output_chroma_format == IV_RGBA_8888) in dump_output()
1150 void parse_argument(vid_dec_ctx_t *ps_app_ctx, CHAR *argument, CHAR *value) in parse_argument() argument
1163 sscanf(value, "%s", ps_app_ctx->ac_ip_fname); in parse_argument()
1168 sscanf(value, "%s", ps_app_ctx->ac_op_fname); in parse_argument()
1172 sscanf(value, "%s", ps_app_ctx->ac_op_chksum_fname); in parse_argument()
1176 sscanf(value, "%d", &ps_app_ctx->u4_file_save_flag); in parse_argument()
1180 sscanf(value, "%d", &ps_app_ctx->u4_chksum_save_flag); in parse_argument()
1185 ps_app_ctx->e_output_chroma_format = IV_YUV_420P; in parse_argument()
1187 ps_app_ctx->e_output_chroma_format = IV_YUV_422ILE; in parse_argument()
1189 ps_app_ctx->e_output_chroma_format = IV_RGB_565; in parse_argument()
1191 ps_app_ctx->e_output_chroma_format = IV_RGBA_8888; in parse_argument()
1193 ps_app_ctx->e_output_chroma_format = IV_YUV_420SP_UV; in parse_argument()
1195 ps_app_ctx->e_output_chroma_format = IV_YUV_420SP_VU; in parse_argument()
1199 ps_app_ctx->e_output_chroma_format = IV_YUV_420P; in parse_argument()
1204 sscanf(value, "%d", &ps_app_ctx->u4_max_frm_ts); in parse_argument()
1208 sscanf(value, "%d", &ps_app_ctx->u4_num_cores); in parse_argument()
1211 sscanf(value, "%d", &ps_app_ctx->i4_degrade_pics); in parse_argument()
1214 sscanf(value, "%d", &ps_app_ctx->i4_degrade_type); in parse_argument()
1217 sscanf(value, "%d", &ps_app_ctx->share_disp_buf); in parse_argument()
1220 sscanf(value, "%d", &ps_app_ctx->loopback); in parse_argument()
1224 sscanf(value, "%d", &ps_app_ctx->display); in parse_argument()
1226 ps_app_ctx->display = 0; in parse_argument()
1230 sscanf(value, "%d", &ps_app_ctx->full_screen); in parse_argument()
1233 sscanf(value, "%d", &ps_app_ctx->fps); in parse_argument()
1234 if(ps_app_ctx->fps <= 0) in parse_argument()
1235 ps_app_ctx->fps = DEFAULT_FPS; in parse_argument()
1239 ps_app_ctx->e_arch = ARCH_ARM_NONEON; in parse_argument()
1241 ps_app_ctx->e_arch = ARCH_ARM_A9Q; in parse_argument()
1243 ps_app_ctx->e_arch = ARCH_ARM_A7; in parse_argument()
1245 ps_app_ctx->e_arch = ARCH_ARM_A5; in parse_argument()
1247 ps_app_ctx->e_arch = ARCH_ARM_NEONINTR; in parse_argument()
1249 ps_app_ctx->e_arch = ARCH_X86_GENERIC; in parse_argument()
1251 ps_app_ctx->e_arch = ARCH_X86_SSSE3; in parse_argument()
1253 ps_app_ctx->e_arch = ARCH_X86_SSE42; in parse_argument()
1255 ps_app_ctx->e_arch = ARCH_X86_AVX2; in parse_argument()
1257 ps_app_ctx->e_arch = ARCH_MIPS_GENERIC; in parse_argument()
1259 ps_app_ctx->e_arch = ARCH_MIPS_32; in parse_argument()
1261 ps_app_ctx->e_arch = ARCH_ARMV8_GENERIC; in parse_argument()
1265 ps_app_ctx->e_arch = ARCH_ARM_A9Q; in parse_argument()
1271 ps_app_ctx->e_soc = SOC_GENERIC; in parse_argument()
1273 ps_app_ctx->e_soc = SOC_HISI_37X; in parse_argument()
1276 ps_app_ctx->e_soc = atoi(value); in parse_argument()
1284 sscanf(value, "%d", &ps_app_ctx->u4_piclen_flag); in parse_argument()
1288 sscanf(value, "%s", ps_app_ctx->ac_piclen_fname); in parse_argument()
1322 void read_cfg_file(vid_dec_ctx_t *ps_app_ctx, FILE *fp_cfg_file) in read_cfg_file() argument
1342 parse_argument(ps_app_ctx, argument, value); in read_cfg_file()
1367 WORD32 dispq_producer_dequeue(vid_dec_ctx_t *ps_app_ctx) in dispq_producer_dequeue() argument
1373 while(((ps_app_ctx->disp_q_wr_idx + 1) % NUM_DISPLAY_BUFFERS) == ps_app_ctx->disp_q_rd_idx) in dispq_producer_dequeue()
1378 if(ps_app_ctx->quit) in dispq_producer_dequeue()
1382 idx = ps_app_ctx->disp_q_wr_idx; in dispq_producer_dequeue()
1403 WORD32 dispq_producer_queue(vid_dec_ctx_t *ps_app_ctx) in dispq_producer_queue() argument
1405 ps_app_ctx->disp_q_wr_idx++; in dispq_producer_queue()
1406 if(ps_app_ctx->disp_q_wr_idx == NUM_DISPLAY_BUFFERS) in dispq_producer_queue()
1407 ps_app_ctx->disp_q_wr_idx = 0; in dispq_producer_queue()
1430 WORD32 dispq_consumer_dequeue(vid_dec_ctx_t *ps_app_ctx) in dispq_consumer_dequeue() argument
1436 while(ps_app_ctx->disp_q_wr_idx == ps_app_ctx->disp_q_rd_idx) in dispq_consumer_dequeue()
1441 if(ps_app_ctx->quit) in dispq_consumer_dequeue()
1445 idx = ps_app_ctx->disp_q_rd_idx; in dispq_consumer_dequeue()
1466 WORD32 dispq_consumer_queue(vid_dec_ctx_t *ps_app_ctx) in dispq_consumer_queue() argument
1468 ps_app_ctx->disp_q_rd_idx++; in dispq_consumer_queue()
1469 if(ps_app_ctx->disp_q_rd_idx == NUM_DISPLAY_BUFFERS) in dispq_consumer_queue()
1470 ps_app_ctx->disp_q_rd_idx = 0; in dispq_consumer_queue()
1505 vid_dec_ctx_t *ps_app_ctx = (vid_dec_ctx_t *)pv_ctx; in display_thread() local
1524 frm_duration = 1000000 / ps_app_ctx->fps; in display_thread()
1527 ps_app_ctx->pv_disp_ctx = (void *)ps_app_ctx->disp_init(ps_app_ctx->u4_pic_wd, in display_thread()
1528 ps_app_ctx->u4_pic_ht, in display_thread()
1529 ps_app_ctx->i4_screen_wd, in display_thread()
1530 ps_app_ctx->i4_screen_ht, in display_thread()
1531 ps_app_ctx->max_wd, in display_thread()
1532 ps_app_ctx->max_ht, in display_thread()
1533 ps_app_ctx->full_screen, in display_thread()
1534 &ps_app_ctx->quit, in display_thread()
1535 &ps_app_ctx->paused); in display_thread()
1536 ps_app_ctx->alloc_disp_buffers(ps_app_ctx->pv_disp_ctx); in display_thread()
1538 ps_app_ctx->display_init_done = 1; in display_thread()
1544 rd_idx = dispq_consumer_dequeue(ps_app_ctx); in display_thread()
1545 if(ps_app_ctx->quit) in display_thread()
1548 ps_app_ctx->display_buffer(ps_app_ctx->pv_disp_ctx, rd_idx); in display_thread()
1570 ps_app_ctx->disp_usleep((expected_time - current_time)); in display_thread()
1574 dispq_consumer_queue(ps_app_ctx); in display_thread()
1579 while(0 == ps_app_ctx->display_deinit_flag) in display_thread()
1581 ps_app_ctx->disp_usleep(1000); in display_thread()
1583 ps_app_ctx->disp_deinit(ps_app_ctx->pv_disp_ctx); in display_thread()
1586 ithread_exit(ps_app_ctx->display_thread_handle); in display_thread()
1592 vid_dec_ctx_t *ps_app_ctx, in flush_output() argument
1609 if(*pu4_op_frm_ts >= (ps_app_ctx->u4_max_frm_ts + ps_app_ctx->disp_delay)) in flush_output()
1660 dump_output(ps_app_ctx, &(s_video_decode_op.s_disp_frm_buf), in flush_output()
1663 *pu4_op_frm_ts, ps_app_ctx->u4_file_save_flag, in flush_output()
1664 ps_app_ctx->u4_chksum_save_flag); in flush_output()