Lines Matching refs:ps_app_ctxt
52 IV_STATUS_T read_pic_info(app_ctxt_t *ps_app_ctxt, void *pv_pic_info) in read_pic_info() argument
57 switch(ps_app_ctxt->u4_pic_info_type) in read_pic_info()
61 ps_app_ctxt->u4_pic_info_size = sizeof(ih264e_pic_info1_t); in read_pic_info()
65 ps_app_ctxt->u4_pic_info_size = sizeof(ih264e_pic_info2_t); in read_pic_info()
72 bytes = fread(pv_pic_info, 1, size, ps_app_ctxt->fp_pic_info); in read_pic_info()
79 IV_STATUS_T read_mb_info(app_ctxt_t *ps_app_ctxt, void *pv_mb_info) in read_mb_info() argument
86 num_mbs = ALIGN16(ps_app_ctxt->u4_wd) * ALIGN16(ps_app_ctxt->u4_ht); in read_mb_info()
89 switch(ps_app_ctxt->u4_mb_info_type) in read_mb_info()
93 ps_app_ctxt->u4_mb_info_size = sizeof(ih264e_mb_info1_t); in read_mb_info()
97 ps_app_ctxt->u4_mb_info_size = sizeof(ih264e_mb_info2_t); in read_mb_info()
101 ps_app_ctxt->u4_mb_info_size = sizeof(ih264e_mb_info3_t); in read_mb_info()
105 ps_app_ctxt->u4_mb_info_size = sizeof(ih264e_mb_info4_t); in read_mb_info()
112 bytes = fread(pv_mb_info, 1, size, ps_app_ctxt->fp_mb_info); in read_mb_info()
228 void allocate_input(app_ctxt_t *ps_app_ctxt) in allocate_input() argument
239 ih264e_ctl_getbufinfo_op_t *ps_get_buf_info_op = &ps_app_ctxt->s_get_buf_info_op; in allocate_input()
245 luma_size = ps_app_ctxt->u4_wd * ps_app_ctxt->u4_ht; in allocate_input()
249 num_mbs = ALIGN16(ps_app_ctxt->u4_max_wd) * ALIGN16(ps_app_ctxt->u4_max_ht); in allocate_input()
253 memset(ps_app_ctxt->as_input_buf, 0, sizeof(input_buf_t) * DEFAULT_MAX_INPUT_BUFS); in allocate_input()
265 ps_app_ctxt->as_input_buf[i].pu1_buf = pu1_buf[0]; in allocate_input()
275 ps_app_ctxt->as_input_buf[i].pv_mb_info = pu1_buf[0]; in allocate_input()
284 ps_app_ctxt->as_input_buf[i].pv_pic_info = pu1_buf[0]; in allocate_input()
285 ps_app_ctxt->as_input_buf[i].u4_buf_size = pic_size; in allocate_input()
286 ps_app_ctxt->as_input_buf[i].u4_is_free = 1; in allocate_input()
292 void free_input(app_ctxt_t *ps_app_ctxt) in free_input() argument
298 num_bufs = MAX(DEFAULT_NUM_INPUT_BUFS, ps_app_ctxt->s_get_buf_info_op.s_ive_op.u4_min_inp_bufs); in free_input()
303 ih264a_aligned_free(ps_app_ctxt->as_input_buf[i].pu1_buf); in free_input()
304 ih264a_aligned_free(ps_app_ctxt->as_input_buf[i].pv_mb_info); in free_input()
305 ih264a_aligned_free(ps_app_ctxt->as_input_buf[i].pv_pic_info); in free_input()