Lines Matching refs:p

73     MppFrameImpl *p;  in mpp_frame_init()  local
83 p = (MppFrameImpl*)mpp_mem_pool_get_f(pool_frame); in mpp_frame_init()
84 if (!p) { in mpp_frame_init()
89 setup_mpp_frame_name(p); in mpp_frame_init()
90 setup_mpp_frame_defaults(p); in mpp_frame_init()
91 *frame = p; in mpp_frame_init()
98 MppFrameImpl *p; in mpp_frame_deinit() local
105 p = (MppFrameImpl *)*frame; in mpp_frame_deinit()
106 if (p->buffer) in mpp_frame_deinit()
107 mpp_buffer_put(p->buffer); in mpp_frame_deinit()
109 if (p->meta) in mpp_frame_deinit()
110 mpp_meta_put(p->meta); in mpp_frame_deinit()
112 if (p->stopwatch) in mpp_frame_deinit()
113 mpp_stopwatch_put(p->stopwatch); in mpp_frame_deinit()
122 MppFrameImpl *p = (MppFrameImpl *)frame; in mpp_frame_get_buffer() local
124 if (check_is_mpp_frame(p)) in mpp_frame_get_buffer()
127 return (MppFrame)p->buffer; in mpp_frame_get_buffer()
132 MppFrameImpl *p = (MppFrameImpl *)frame; in mpp_frame_set_buffer() local
134 if (check_is_mpp_frame(p)) in mpp_frame_set_buffer()
137 if (p->buffer != buffer) { in mpp_frame_set_buffer()
141 if (p->buffer) in mpp_frame_set_buffer()
142 mpp_buffer_put(p->buffer); in mpp_frame_set_buffer()
144 p->buffer = buffer; in mpp_frame_set_buffer()
150 MppFrameImpl *p = (MppFrameImpl *)frame; in mpp_frame_has_meta() local
152 if (check_is_mpp_frame(p)) in mpp_frame_has_meta()
155 return (NULL != p->meta); in mpp_frame_has_meta()
160 MppFrameImpl *p = (MppFrameImpl *)frame; in mpp_frame_get_meta() local
162 if (check_is_mpp_frame(p)) in mpp_frame_get_meta()
165 if (!p->meta) in mpp_frame_get_meta()
166 mpp_meta_get(&p->meta); in mpp_frame_get_meta()
168 return p->meta; in mpp_frame_get_meta()
173 MppFrameImpl *p = (MppFrameImpl *)frame; in mpp_frame_set_meta() local
175 if (check_is_mpp_frame(p)) in mpp_frame_set_meta()
178 if (p->meta) { in mpp_frame_set_meta()
179 mpp_meta_put(p->meta); in mpp_frame_set_meta()
180 p->meta = NULL; in mpp_frame_set_meta()
183 p->meta = meta; in mpp_frame_set_meta()
188 MppFrameImpl *p = (MppFrameImpl *)frame; in mpp_frame_get_status() local
190 return &p->status; in mpp_frame_get_status()
195 MppFrameImpl *p = (MppFrameImpl *)frame; in mpp_frame_set_stopwatch_enable() local
197 if (check_is_mpp_frame(p)) in mpp_frame_set_stopwatch_enable()
200 if (enable && !p->stopwatch) { in mpp_frame_set_stopwatch_enable()
203 snprintf(name, sizeof(name) - 1, "frm %8llx", p->pts); in mpp_frame_set_stopwatch_enable()
204 p->stopwatch = mpp_stopwatch_get(name); in mpp_frame_set_stopwatch_enable()
205 if (p->stopwatch) in mpp_frame_set_stopwatch_enable()
206 mpp_stopwatch_set_show_on_exit(p->stopwatch, 1); in mpp_frame_set_stopwatch_enable()
207 } else if (!enable && p->stopwatch) { in mpp_frame_set_stopwatch_enable()
208 mpp_stopwatch_put(p->stopwatch); in mpp_frame_set_stopwatch_enable()
209 p->stopwatch = NULL; in mpp_frame_set_stopwatch_enable()
215 MppFrameImpl *p = (MppFrameImpl *)frame; in mpp_frame_get_stopwatch() local
217 if (check_is_mpp_frame(p)) in mpp_frame_get_stopwatch()
220 return p->stopwatch; in mpp_frame_get_stopwatch()
225 MppFrameImpl *p = (MppFrameImpl *)src; in mpp_frame_dup() local
239 memcpy(ret, p, sizeof(MppFrameImpl)); in mpp_frame_dup()
241 if (p->meta) in mpp_frame_dup()
242 ret->meta = mpp_meta_dup(p->meta); in mpp_frame_dup()
249 MppFrameImpl *p = (MppFrameImpl *)dst; in mpp_frame_copy() local
256 if (p->meta) in mpp_frame_copy()
257 mpp_meta_put(p->meta); in mpp_frame_copy()
260 p = (MppFrameImpl *)src; in mpp_frame_copy()
261 if (p->meta) in mpp_frame_copy()
262 mpp_meta_inc_ref(p->meta); in mpp_frame_copy()
290 MppFrameImpl *p = (MppFrameImpl *)frame; in mpp_frame_get_fbc_offset() local
292 if (check_is_mpp_frame(p)) in mpp_frame_get_fbc_offset()
295 if (MPP_FRAME_FMT_IS_FBC(p->fmt)) { in mpp_frame_get_fbc_offset()
296 RK_U32 fbc_version = p->fmt & MPP_FRAME_FBC_MASK; in mpp_frame_get_fbc_offset()
300 fbc_offset = MPP_ALIGN(MPP_ALIGN(p->width, 16) * in mpp_frame_get_fbc_offset()
301 MPP_ALIGN(p->height, 16) / 16, SZ_4K); in mpp_frame_get_fbc_offset()
306 p->fbc_offset = fbc_offset; in mpp_frame_get_fbc_offset()
309 return p->fbc_offset; in mpp_frame_get_fbc_offset()
314 MppFrameImpl *p = (MppFrameImpl *)frame; in mpp_frame_get_fbc_stride() local
316 if (check_is_mpp_frame(p)) in mpp_frame_get_fbc_stride()
319 return MPP_ALIGN(p->width, 16); in mpp_frame_get_fbc_stride()