Lines Matching refs:ref

19 #define setup_mpp_enc_ref_cfg(ref) \  argument
20 ((MppEncRefCfgImpl*)ref)->name = MODULE_TAG;
22 MPP_RET _check_is_mpp_enc_ref_cfg(const char *func, void *ref) in _check_is_mpp_enc_ref_cfg() argument
24 if (NULL == ref) { in _check_is_mpp_enc_ref_cfg()
29 if (strcmp(((MppEncRefCfgImpl*)(ref))->name, MODULE_TAG) != 0) { in _check_is_mpp_enc_ref_cfg()
30 mpp_err("%s input ref check %p %p failed\n", func, ((MppEncRefCfgImpl*)(ref))->name); in _check_is_mpp_enc_ref_cfg()
37 MPP_RET mpp_enc_ref_cfg_init(MppEncRefCfg *ref) in mpp_enc_ref_cfg_init() argument
39 if (NULL == ref) { in mpp_enc_ref_cfg_init()
45 *ref = p; in mpp_enc_ref_cfg_init()
58 MPP_RET mpp_enc_ref_cfg_deinit(MppEncRefCfg *ref) in mpp_enc_ref_cfg_deinit() argument
60 if (!ref || check_is_mpp_enc_ref_cfg(*ref)) { in mpp_enc_ref_cfg_deinit()
61 mpp_err_f("input %p check failed\n", ref); in mpp_enc_ref_cfg_deinit()
65 MppEncRefCfgImpl *p = (MppEncRefCfgImpl *)(*ref); in mpp_enc_ref_cfg_deinit()
73 MPP_RET mpp_enc_ref_cfg_reset(MppEncRefCfg ref) in mpp_enc_ref_cfg_reset() argument
75 if (check_is_mpp_enc_ref_cfg(ref)) in mpp_enc_ref_cfg_reset()
78 MppEncRefCfgImpl *p = (MppEncRefCfgImpl *)ref; in mpp_enc_ref_cfg_reset()
87 MPP_RET mpp_enc_ref_cfg_set_cfg_cnt(MppEncRefCfg ref, RK_S32 lt_cnt, RK_S32 st_cnt) in mpp_enc_ref_cfg_set_cfg_cnt() argument
89 if (check_is_mpp_enc_ref_cfg(ref)) in mpp_enc_ref_cfg_set_cfg_cnt()
92 MppEncRefCfgImpl *p = (MppEncRefCfgImpl *)ref; in mpp_enc_ref_cfg_set_cfg_cnt()
124 MPP_RET mpp_enc_ref_cfg_add_lt_cfg(MppEncRefCfg ref, RK_S32 cnt, MppEncRefLtFrmCfg *frm) in mpp_enc_ref_cfg_add_lt_cfg() argument
126 if (check_is_mpp_enc_ref_cfg(ref)) in mpp_enc_ref_cfg_add_lt_cfg()
129 MppEncRefCfgImpl *p = (MppEncRefCfgImpl *)ref; in mpp_enc_ref_cfg_add_lt_cfg()
133 ref, p->lt_cfg_cnt, frm->lt_idx, frm->temporal_id, in mpp_enc_ref_cfg_add_lt_cfg()
142 MPP_RET mpp_enc_ref_cfg_add_st_cfg(MppEncRefCfg ref, RK_S32 cnt, MppEncRefStFrmCfg *frm) in mpp_enc_ref_cfg_add_st_cfg() argument
144 if (check_is_mpp_enc_ref_cfg(ref)) { in mpp_enc_ref_cfg_add_st_cfg()
145 mpp_err_f("input %p check failed\n", ref); in mpp_enc_ref_cfg_add_st_cfg()
149 MppEncRefCfgImpl *p = (MppEncRefCfgImpl *)ref; in mpp_enc_ref_cfg_add_st_cfg()
153 ref, p->st_cfg_cnt, frm->is_non_ref, frm->temporal_id, in mpp_enc_ref_cfg_add_st_cfg()
162 MPP_RET mpp_enc_ref_cfg_check(MppEncRefCfg ref) in mpp_enc_ref_cfg_check() argument
164 if (check_is_mpp_enc_ref_cfg(ref)) in mpp_enc_ref_cfg_check()
167 MppEncRefCfgImpl *p = (MppEncRefCfgImpl *)ref; in mpp_enc_ref_cfg_check()
194 ref, pos, lt_idx); in mpp_enc_ref_cfg_check()
200 ref, pos, lt_idx); in mpp_enc_ref_cfg_check()
215 ref, pos, temporal_id); in mpp_enc_ref_cfg_check()
222 ref, pos, ref_mode); in mpp_enc_ref_cfg_check()
248 ref, pos, temporal_id); in mpp_enc_ref_cfg_check()
255 ref, pos, ref_mode); in mpp_enc_ref_cfg_check()
261 ref, pos, cfg->repeat); in mpp_enc_ref_cfg_check()
269 ref, pos); in mpp_enc_ref_cfg_check()
275 ref, pos, temporal_id); in mpp_enc_ref_cfg_check()
311 ret = mpp_enc_refs_set_cfg(refs, ref); in mpp_enc_ref_cfg_check()
323 mpp_err_f("check ref cfg %p failed\n", ref); in mpp_enc_ref_cfg_check()
330 MPP_RET mpp_enc_ref_cfg_set_keep_cpb(MppEncRefCfg ref, RK_S32 keep) in mpp_enc_ref_cfg_set_keep_cpb() argument
332 if (check_is_mpp_enc_ref_cfg(ref)) in mpp_enc_ref_cfg_set_keep_cpb()
335 MppEncRefCfgImpl *p = (MppEncRefCfgImpl *)ref; in mpp_enc_ref_cfg_set_keep_cpb()
341 MPP_RET mpp_enc_ref_cfg_show(MppEncRefCfg ref) in mpp_enc_ref_cfg_show() argument
343 if (check_is_mpp_enc_ref_cfg(ref)) in mpp_enc_ref_cfg_show()
398 MppEncCpbInfo *mpp_enc_ref_cfg_get_cpb_info(MppEncRefCfg ref) in mpp_enc_ref_cfg_get_cpb_info() argument
400 if (check_is_mpp_enc_ref_cfg(ref)) in mpp_enc_ref_cfg_get_cpb_info()
403 MppEncRefCfgImpl *p = (MppEncRefCfgImpl *)ref; in mpp_enc_ref_cfg_get_cpb_info()