Lines Matching refs:p

220 static void h264e_add_syntax(H264eCtx *ctx, H264eSyntaxType type, void *p)  in h264e_add_syntax()  argument
223 ctx->syntax[ctx->syn_num].p = p; in h264e_add_syntax()
230 H264eCtx *p = (H264eCtx *)ctx; in h264e_init() local
236 p->type = ctrl_cfg->type; in h264e_init()
237 p->hdr_size = SZ_1K; in h264e_init()
238 p->hdr_buf = mpp_malloc_size(void, p->hdr_size); in h264e_init()
239 mpp_assert(p->hdr_buf); in h264e_init()
240 mpp_packet_init(&p->hdr_pkt, p->hdr_buf, p->hdr_size); in h264e_init()
241 mpp_assert(p->hdr_pkt); in h264e_init()
243 p->cfg = ctrl_cfg->cfg; in h264e_init()
244 p->refs = ctrl_cfg->refs; in h264e_init()
245 p->idr_request = 0; in h264e_init()
247 h264e_reorder_init(&p->reorder); in h264e_init()
248 h264e_marking_init(&p->marking); in h264e_init()
250 h264e_dpb_init(&p->dpb, &p->reorder, &p->marking); in h264e_init()
251 h264e_slice_init(&p->slice, &p->reorder, &p->marking); in h264e_init()
253 init_h264e_cfg_set(p->cfg, p->type); in h264e_init()
263 H264eCtx *p = (H264eCtx *)ctx; in h264e_deinit() local
267 if (p->hdr_pkt) in h264e_deinit()
268 mpp_packet_deinit(&p->hdr_pkt); in h264e_deinit()
270 MPP_FREE(p->hdr_buf); in h264e_deinit()
293 H264eCtx *p = (H264eCtx *)ctx; in h264e_proc_cfg() local
294 MppEncCfgSet *cfg = p->cfg; in h264e_proc_cfg()
319 H264eCtx *p = (H264eCtx *)ctx; in h264e_gen_hdr() local
323 h264e_sps_update(&p->sps, p->cfg); in h264e_gen_hdr()
324 h264e_pps_update(&p->pps, p->cfg); in h264e_gen_hdr()
329 if (!p->dpb.total_cnt) in h264e_gen_hdr()
330 h264e_dpb_setup(&p->dpb, p->cfg, &p->sps); in h264e_gen_hdr()
332 mpp_packet_reset(p->hdr_pkt); in h264e_gen_hdr()
334 h264e_sps_to_packet(&p->sps, p->hdr_pkt, &p->sps_offset, &p->sps_len, p->cfg); in h264e_gen_hdr()
335 h264e_pps_to_packet(&p->pps, p->hdr_pkt, &p->pps_offset, &p->pps_len); in h264e_gen_hdr()
336 p->hdr_len = mpp_packet_get_length(p->hdr_pkt); in h264e_gen_hdr()
339 mpp_packet_write(pkt, 0, p->hdr_buf, p->hdr_len); in h264e_gen_hdr()
340 mpp_packet_set_length(pkt, p->hdr_len); in h264e_gen_hdr()
343 p->sps_offset, p->sps_len); in h264e_gen_hdr()
345 p->pps_offset, p->pps_len); in h264e_gen_hdr()
397 H264eCtx *p = (H264eCtx *)ctx; in h264e_start() local
398 MppEncH264Cfg *h264 = &p->cfg->h264; in h264e_start()
446 H264eCtx *p = (H264eCtx *)ctx; in h264e_proc_dpb() local
447 H264eDpb *dpb = &p->dpb; in h264e_proc_dpb()
448 H264eFrmInfo *frms = &p->frms; in h264e_proc_dpb()
464 h264e_slice_update(&p->slice, p->cfg, &p->sps, &p->pps, dpb->curr); in h264e_proc_dpb()
497 H264eCtx *p = (H264eCtx *)ctx; in h264e_proc_hal() local
498 MppEncH264Cfg *h264 = &p->cfg->h264; in h264e_proc_hal()
502 p->syn_num = 0; in h264e_proc_hal()
503 h264e_add_syntax(p, H264E_SYN_CFG, p->cfg); in h264e_proc_hal()
504 h264e_add_syntax(p, H264E_SYN_SPS, &p->sps); in h264e_proc_hal()
505 h264e_add_syntax(p, H264E_SYN_PPS, &p->pps); in h264e_proc_hal()
506 h264e_add_syntax(p, H264E_SYN_DPB, &p->dpb); in h264e_proc_hal()
507 h264e_add_syntax(p, H264E_SYN_SLICE, &p->slice); in h264e_proc_hal()
508 h264e_add_syntax(p, H264E_SYN_FRAME, &p->frms); in h264e_proc_hal()
512 MppEncCpbInfo *cpb_info = mpp_enc_ref_cfg_get_cpb_info(p->cfg->ref_cfg); in h264e_proc_hal()
525 H264ePrefixNal *prefix = &p->prefix; in h264e_proc_hal()
526 H264eSlice *slice = &p->slice; in h264e_proc_hal()
542 h264e_add_syntax(p, H264E_SYN_PREFIX, &p->prefix); in h264e_proc_hal()
547 h264e_add_syntax(p, H264E_SYN_PREFIX, NULL); in h264e_proc_hal()
550 task->syntax.data = &p->syntax[0]; in h264e_proc_hal()
551 task->syntax.number = p->syn_num; in h264e_proc_hal()
560 H264eCtx *p = (H264eCtx *)ctx; in h264e_sw_enc() local
561 MppEncH264Cfg *h264 = &p->cfg->h264; in h264e_sw_enc()
575 RK_S32 prefix_bit = h264e_slice_write_prefix_nal_unit_svc(&p->prefix, base, buf_size); in h264e_sw_enc()
585 slice_len = h264e_slice_write_pskip(&p->slice, base, buf_size); in h264e_sw_enc()
593 p->dpb.curr->prev_ref_idx = p->frms.refr_idx; in h264e_sw_enc()