Lines Matching refs:ps_app_ctx

561                                          vid_dec_ctx_t *ps_app_ctx)  in enable_skipb_frames()  argument
567 s_ctl_ip.u4_disp_wd = ps_app_ctx->u4_strd; in enable_skipb_frames()
611 vid_dec_ctx_t *ps_app_ctx) in disable_skipb_frames() argument
617 s_ctl_ip.u4_disp_wd = ps_app_ctx->u4_strd; in disable_skipb_frames()
662 vid_dec_ctx_t *ps_app_ctx) in enable_skippb_frames() argument
668 s_ctl_ip.u4_disp_wd = ps_app_ctx->u4_strd; in enable_skippb_frames()
712 vid_dec_ctx_t *ps_app_ctx) in disable_skippb_frames() argument
718 s_ctl_ip.u4_disp_wd = ps_app_ctx->u4_strd; in disable_skippb_frames()
883 void dump_output(vid_dec_ctx_t *ps_app_ctx, in dump_output() argument
900 if(ps_app_ctx->share_disp_buf) in dump_output()
902 if(ps_app_ctx->dump_q_wr_idx == MAX_DISP_BUFFERS in dump_output()
904 ps_app_ctx->dump_q_wr_idx = 0; in dump_output()
906 if(ps_app_ctx->dump_q_rd_idx == MAX_DISP_BUFFERS in dump_output()
908 ps_app_ctx->dump_q_rd_idx = 0; in dump_output()
910 ps_app_ctx->s_disp_frm_queue[ps_app_ctx->dump_q_wr_idx] = in dump_output()
912 ps_app_ctx->s_disp_frm_id_queue[ps_app_ctx->dump_q_wr_idx] = in dump_output()
914 ps_app_ctx->dump_q_wr_idx++; in dump_output()
916 if((WORD32)i4_op_frm_ts >= (WORD32)(ps_app_ctx->disp_delay - 1)) in dump_output()
919 ps_app_ctx->s_disp_frm_queue[ps_app_ctx->dump_q_rd_idx]; in dump_output()
921 ps_app_ctx->s_disp_frm_id_queue[ps_app_ctx->dump_q_rd_idx]; in dump_output()
922 ps_app_ctx->dump_q_rd_idx++; in dump_output()
934 if(1 == ps_app_ctx->share_disp_buf) in dump_output()
935 release_disp_frame(ps_app_ctx->cocodec_obj, u4_disp_id); in dump_output()
943 if(ps_app_ctx->e_output_chroma_format == IV_YUV_420P) in dump_output()
1007 else if((ps_app_ctx->e_output_chroma_format == IV_YUV_420SP_UV) in dump_output()
1008 || (ps_app_ctx->e_output_chroma_format == IV_YUV_420SP_VU)) in dump_output()
1038 else if(ps_app_ctx->e_output_chroma_format == IV_RGBA_8888) in dump_output()
1168 void parse_argument(vid_dec_ctx_t *ps_app_ctx, CHAR *argument, CHAR *value) in parse_argument() argument
1181 sscanf(value, "%s", ps_app_ctx->ac_ip_fname); in parse_argument()
1186 sscanf(value, "%s", ps_app_ctx->ac_op_fname); in parse_argument()
1190 sscanf(value, "%s", ps_app_ctx->ac_op_chksum_fname); in parse_argument()
1194 sscanf(value, "%d", &ps_app_ctx->u4_file_save_flag); in parse_argument()
1198 sscanf(value, "%d", &ps_app_ctx->u4_chksum_save_flag); in parse_argument()
1203 ps_app_ctx->e_output_chroma_format = IV_YUV_420P; in parse_argument()
1205 ps_app_ctx->e_output_chroma_format = IV_YUV_422ILE; in parse_argument()
1207 ps_app_ctx->e_output_chroma_format = IV_RGB_565; in parse_argument()
1209 ps_app_ctx->e_output_chroma_format = IV_RGBA_8888; in parse_argument()
1211 ps_app_ctx->e_output_chroma_format = IV_YUV_420SP_UV; in parse_argument()
1213 ps_app_ctx->e_output_chroma_format = IV_YUV_420SP_VU; in parse_argument()
1217 ps_app_ctx->e_output_chroma_format = IV_YUV_420P; in parse_argument()
1222 sscanf(value, "%d", &ps_app_ctx->u4_max_frm_ts); in parse_argument()
1226 sscanf(value, "%d", &ps_app_ctx->u4_num_cores); in parse_argument()
1229 sscanf(value, "%d", &ps_app_ctx->i4_degrade_pics); in parse_argument()
1230 ps_app_ctx->i4_degrade_pics = 0; in parse_argument()
1234 sscanf(value, "%d", &ps_app_ctx->i4_degrade_type); in parse_argument()
1237 sscanf(value, "%d", &ps_app_ctx->share_disp_buf); in parse_argument()
1240 sscanf(value, "%d", &ps_app_ctx->deinterlace); in parse_argument()
1243 sscanf(value, "%d", &ps_app_ctx->loopback); in parse_argument()
1247 sscanf(value, "%d", &ps_app_ctx->display); in parse_argument()
1249 ps_app_ctx->display = 0; in parse_argument()
1253 sscanf(value, "%d", &ps_app_ctx->full_screen); in parse_argument()
1256 sscanf(value, "%d", &ps_app_ctx->fps); in parse_argument()
1257 if(ps_app_ctx->fps <= 0) in parse_argument()
1258 ps_app_ctx->fps = DEFAULT_FPS; in parse_argument()
1261 sscanf(value, "%d", &ps_app_ctx->max_wd); in parse_argument()
1264 sscanf(value, "%d", &ps_app_ctx->max_ht); in parse_argument()
1267 sscanf(value, "%d", &ps_app_ctx->max_level); in parse_argument()
1271 ps_app_ctx->e_arch = ARCH_ARM_NONEON; in parse_argument()
1273 ps_app_ctx->e_arch = ARCH_ARM_A9Q; in parse_argument()
1275 ps_app_ctx->e_arch = ARCH_ARMV8_GENERIC; in parse_argument()
1277 ps_app_ctx->e_arch = ARCH_ARM_A7; in parse_argument()
1279 ps_app_ctx->e_arch = ARCH_ARM_A5; in parse_argument()
1281 ps_app_ctx->e_arch = ARCH_ARM_NEONINTR; in parse_argument()
1283 ps_app_ctx->e_arch = ARCH_X86_GENERIC; in parse_argument()
1285 ps_app_ctx->e_arch = ARCH_X86_SSSE3; in parse_argument()
1287 ps_app_ctx->e_arch = ARCH_X86_SSE42; in parse_argument()
1289 ps_app_ctx->e_arch = ARCH_X86_AVX2; in parse_argument()
1291 ps_app_ctx->e_arch = ARCH_MIPS_GENERIC; in parse_argument()
1293 ps_app_ctx->e_arch = ARCH_MIPS_32; in parse_argument()
1297 ps_app_ctx->e_arch = ARCH_ARM_A9Q; in parse_argument()
1303 ps_app_ctx->e_soc = SOC_GENERIC; in parse_argument()
1305 ps_app_ctx->e_soc = SOC_HISI_37X; in parse_argument()
1308 ps_app_ctx->e_soc = atoi(value); in parse_argument()
1316 sscanf(value, "%d", &ps_app_ctx->u4_piclen_flag); in parse_argument()
1320 sscanf(value, "%s", ps_app_ctx->ac_piclen_fname); in parse_argument()
1354 void read_cfg_file(vid_dec_ctx_t *ps_app_ctx, FILE *fp_cfg_file) in read_cfg_file() argument
1374 parse_argument(ps_app_ctx, argument, value); in read_cfg_file()
1399 WORD32 dispq_producer_dequeue(vid_dec_ctx_t *ps_app_ctx) in dispq_producer_dequeue() argument
1405 while(((ps_app_ctx->disp_q_wr_idx + 1) % NUM_DISPLAY_BUFFERS) == ps_app_ctx->disp_q_rd_idx) in dispq_producer_dequeue()
1410 if(ps_app_ctx->quit) in dispq_producer_dequeue()
1414 idx = ps_app_ctx->disp_q_wr_idx; in dispq_producer_dequeue()
1435 WORD32 dispq_producer_queue(vid_dec_ctx_t *ps_app_ctx) in dispq_producer_queue() argument
1437 ps_app_ctx->disp_q_wr_idx++; in dispq_producer_queue()
1438 if(ps_app_ctx->disp_q_wr_idx == NUM_DISPLAY_BUFFERS) in dispq_producer_queue()
1439 ps_app_ctx->disp_q_wr_idx = 0; in dispq_producer_queue()
1462 WORD32 dispq_consumer_dequeue(vid_dec_ctx_t *ps_app_ctx) in dispq_consumer_dequeue() argument
1468 while(ps_app_ctx->disp_q_wr_idx == ps_app_ctx->disp_q_rd_idx) in dispq_consumer_dequeue()
1473 if(ps_app_ctx->quit) in dispq_consumer_dequeue()
1477 idx = ps_app_ctx->disp_q_rd_idx; in dispq_consumer_dequeue()
1498 WORD32 dispq_consumer_queue(vid_dec_ctx_t *ps_app_ctx) in dispq_consumer_queue() argument
1500 ps_app_ctx->disp_q_rd_idx++; in dispq_consumer_queue()
1501 if(ps_app_ctx->disp_q_rd_idx == NUM_DISPLAY_BUFFERS) in dispq_consumer_queue()
1502 ps_app_ctx->disp_q_rd_idx = 0; in dispq_consumer_queue()
1537 vid_dec_ctx_t *ps_app_ctx = (vid_dec_ctx_t *)pv_ctx; in display_thread() local
1557 frm_duration = 1000000 / ps_app_ctx->fps; in display_thread()
1560 ps_app_ctx->pv_disp_ctx = (void *)ps_app_ctx->disp_init(ps_app_ctx->u4_pic_wd, in display_thread()
1561 ps_app_ctx->u4_pic_ht, in display_thread()
1562 ps_app_ctx->i4_screen_wd, in display_thread()
1563 ps_app_ctx->i4_screen_ht, in display_thread()
1564 ps_app_ctx->max_wd, in display_thread()
1565 ps_app_ctx->max_ht, in display_thread()
1566 ps_app_ctx->full_screen, in display_thread()
1567 &ps_app_ctx->quit, in display_thread()
1568 &ps_app_ctx->paused); in display_thread()
1569 ps_app_ctx->alloc_disp_buffers(ps_app_ctx->pv_disp_ctx); in display_thread()
1571 ps_app_ctx->display_init_done = 1; in display_thread()
1577 rd_idx = dispq_consumer_dequeue(ps_app_ctx); in display_thread()
1578 if(ps_app_ctx->quit) in display_thread()
1581 ps_app_ctx->display_buffer(ps_app_ctx->pv_disp_ctx, rd_idx); in display_thread()
1603 ps_app_ctx->disp_usleep((expected_time - current_time)); in display_thread()
1607 dispq_consumer_queue(ps_app_ctx); in display_thread()
1612 while(0 == ps_app_ctx->display_deinit_flag) in display_thread()
1614 ps_app_ctx->disp_usleep(1000); in display_thread()
1616 ps_app_ctx->disp_deinit(ps_app_ctx->pv_disp_ctx); in display_thread()
1619 ithread_exit(ps_app_ctx->display_thread_handle); in display_thread()
1625 vid_dec_ctx_t *ps_app_ctx, in flush_output() argument
1642 if(*pu4_op_frm_ts >= (ps_app_ctx->u4_max_frm_ts + ps_app_ctx->disp_delay)) in flush_output()
1693 dump_output(ps_app_ctx, &(s_video_decode_op.s_disp_frm_buf), in flush_output()
1696 *pu4_op_frm_ts, ps_app_ctx->u4_file_save_flag, in flush_output()
1697 ps_app_ctx->u4_chksum_save_flag); in flush_output()