Home
last modified time | relevance | path

Searched refs:ps_app_ctxt (Results 1 – 7 of 7) sorted by relevance

/external/libavc/test/encoder/
Dmain.c499 void parse_argument(app_ctxt_t *ps_app_ctxt, CHAR *argument, CHAR *value) in parse_argument() argument
511 sscanf(value, "%d", &ps_app_ctxt->u4_slice_mode); in parse_argument()
514 sscanf(value, "%d", &ps_app_ctxt->u4_slice_param); in parse_argument()
517 sscanf(value, "%s", ps_app_ctxt->ac_ip_fname); in parse_argument()
521 sscanf(value, "%s", ps_app_ctxt->ac_op_fname); in parse_argument()
525 sscanf(value, "%s", ps_app_ctxt->ac_recon_fname); in parse_argument()
529 sscanf(value, "%d", &ps_app_ctxt->u4_recon_enable); in parse_argument()
533 sscanf(value, "%s", ps_app_ctxt->ac_chksum_fname); in parse_argument()
537 sscanf(value, "%d", &ps_app_ctxt->u4_chksum_enable); in parse_argument()
541 sscanf(value, "%s", ps_app_ctxt->ac_mb_info_fname); in parse_argument()
[all …]
Drecon.c85 void allocate_recon(app_ctxt_t *ps_app_ctxt) in allocate_recon() argument
98 luma_size = ps_app_ctxt->u4_max_wd * ps_app_ctxt->u4_max_ht; in allocate_recon()
113 ps_app_ctxt->as_recon_buf[i].pu1_buf = pu1_buf; in allocate_recon()
114 ps_app_ctxt->as_recon_buf[i].u4_buf_size = pic_size; in allocate_recon()
115 ps_app_ctxt->as_recon_buf[i].u4_is_free = 1; in allocate_recon()
118 if(ps_app_ctxt->u4_psnr_enable) in allocate_recon()
128 ps_app_ctxt->pu1_psnr_buf = pu1_buf; in allocate_recon()
129 ps_app_ctxt->u4_psnr_buf_size = pic_size; in allocate_recon()
134 void free_recon(app_ctxt_t *ps_app_ctxt) in free_recon() argument
144 ih264a_aligned_free(ps_app_ctxt->as_recon_buf[i].pu1_buf); in free_recon()
[all …]
Dinput.c52 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()
[all …]
Dpsnr.c62 void init_psnr(app_ctxt_t *ps_app_ctxt) in init_psnr() argument
64 ps_app_ctxt->adbl_psnr[0] = 0; in init_psnr()
65 ps_app_ctxt->adbl_psnr[1] = 0; in init_psnr()
66 ps_app_ctxt->adbl_psnr[2] = 0; in init_psnr()
67 ps_app_ctxt->u4_psnr_cnt = 0; in init_psnr()
95 void compute_psnr(app_ctxt_t *ps_app_ctxt, iv_raw_buf_t *ps_buf1, iv_raw_buf_t *ps_buf2) in compute_psnr() argument
104 printf("\nPicNum %4d\t ", ps_app_ctxt->u4_psnr_cnt); in compute_psnr()
186 ps_app_ctxt->adbl_psnr[comp] += df_psnr[comp]; in compute_psnr()
205 ps_app_ctxt->u4_psnr_cnt++; in compute_psnr()
233 void print_average_psnr(app_ctxt_t *ps_app_ctxt) in print_average_psnr() argument
[all …]
Doutput.c61 void allocate_output(app_ctxt_t *ps_app_ctxt) in allocate_output() argument
68 … num_bufs = MAX(DEFAULT_NUM_OUTPUT_BUFS, ps_app_ctxt->s_get_buf_info_op.s_ive_op.u4_min_out_bufs); in allocate_output()
71 buf_size = ps_app_ctxt->s_get_buf_info_op.s_ive_op.au4_min_out_buf_size[0]; in allocate_output()
73 memset(ps_app_ctxt->as_output_buf, 0, sizeof(output_buf_t) * DEFAULT_MAX_OUTPUT_BUFS); in allocate_output()
85 ps_app_ctxt->as_output_buf[i].pu1_buf = pu1_buf; in allocate_output()
86 ps_app_ctxt->as_output_buf[i].u4_buf_size = buf_size; in allocate_output()
87 ps_app_ctxt->as_output_buf[i].u4_is_free = 1; in allocate_output()
93 void free_output(app_ctxt_t *ps_app_ctxt) in free_output() argument
99 … num_bufs = MAX(DEFAULT_NUM_OUTPUT_BUFS, ps_app_ctxt->s_get_buf_info_op.s_ive_op.u4_min_out_bufs); in free_output()
104 ih264a_aligned_free(ps_app_ctxt->as_output_buf[i].pu1_buf); in free_output()
Dapp.h330 void allocate_input(app_ctxt_t *ps_app_ctxt);
331 void allocate_output(app_ctxt_t *ps_app_ctxt);
332 void allocate_recon(app_ctxt_t *ps_app_ctxt);
338 IV_STATUS_T read_mb_info(app_ctxt_t *ps_app_ctxt, void *pv_mb_info);
339 IV_STATUS_T read_pic_info(app_ctxt_t *ps_app_ctxt, void *pv_pic_info);
344 void free_input(app_ctxt_t *ps_app_ctxt);
345 void free_recon(app_ctxt_t *ps_app_ctxt);
346 void free_output(app_ctxt_t *ps_app_ctxt);
348 void init_raw_buf_descr(app_ctxt_t *ps_app_ctxt, iv_raw_buf_t *ps_raw_buf, UWORD8 *pu1_buf, IV_COLO…
Dpsnr.h42 void init_psnr(app_ctxt_t *ps_app_ctxt);
44 void compute_psnr(app_ctxt_t *ps_app_ctxt,
48 void print_average_psnr(app_ctxt_t *ps_app_ctxt);