Lines Matching refs:buffer

15 MPP_RET mpp_buffer_import_with_tag(MppBufferGroup group, MppBufferInfo *info, MppBuffer *buffer,  in mpp_buffer_import_with_tag()  argument
42 if (buffer) { in mpp_buffer_import_with_tag()
45 *buffer = buf; in mpp_buffer_import_with_tag()
52 MPP_RET mpp_buffer_get_with_tag(MppBufferGroup group, MppBuffer *buffer, size_t size, in mpp_buffer_get_with_tag() argument
55 if (NULL == buffer || 0 == size) { in mpp_buffer_get_with_tag()
57 group, buffer, size, caller); in mpp_buffer_get_with_tag()
83 *buffer = buf; in mpp_buffer_get_with_tag()
88 MPP_RET mpp_buffer_put_with_caller(MppBuffer buffer, const char *caller) in mpp_buffer_put_with_caller() argument
90 if (NULL == buffer) { in mpp_buffer_put_with_caller()
95 return mpp_buffer_ref_dec((MppBufferImpl*)buffer, caller); in mpp_buffer_put_with_caller()
98 MPP_RET mpp_buffer_inc_ref_with_caller(MppBuffer buffer, const char *caller) in mpp_buffer_inc_ref_with_caller() argument
100 if (NULL == buffer) { in mpp_buffer_inc_ref_with_caller()
105 return mpp_buffer_ref_inc((MppBufferImpl*)buffer, caller); in mpp_buffer_inc_ref_with_caller()
108 MPP_RET mpp_buffer_discard_with_caller(MppBuffer buffer, const char *caller) in mpp_buffer_discard_with_caller() argument
110 if (NULL == buffer) { in mpp_buffer_discard_with_caller()
115 return mpp_buffer_discard((MppBufferImpl*)buffer, caller); in mpp_buffer_discard_with_caller()
118 MPP_RET mpp_buffer_read_with_caller(MppBuffer buffer, size_t offset, void *data, size_t size, const… in mpp_buffer_read_with_caller() argument
120 if (NULL == buffer || NULL == data) { in mpp_buffer_read_with_caller()
122 buffer, data, caller); in mpp_buffer_read_with_caller()
129 MppBufferImpl *p = (MppBufferImpl*)buffer; in mpp_buffer_read_with_caller()
141 MPP_RET mpp_buffer_write_with_caller(MppBuffer buffer, size_t offset, void *data, size_t size, cons… in mpp_buffer_write_with_caller() argument
143 if (NULL == buffer || NULL == data) { in mpp_buffer_write_with_caller()
145 buffer, data, caller); in mpp_buffer_write_with_caller()
152 MppBufferImpl *p = (MppBufferImpl*)buffer; in mpp_buffer_write_with_caller()
166 void *mpp_buffer_get_ptr_with_caller(MppBuffer buffer, const char *caller) in mpp_buffer_get_ptr_with_caller() argument
168 if (NULL == buffer) { in mpp_buffer_get_ptr_with_caller()
173 MppBufferImpl *p = (MppBufferImpl*)buffer; in mpp_buffer_get_ptr_with_caller()
179 mpp_err("mpp_buffer_get_ptr buffer %p ret NULL from %s\n", buffer, caller); in mpp_buffer_get_ptr_with_caller()
184 int mpp_buffer_get_fd_with_caller(MppBuffer buffer, const char *caller) in mpp_buffer_get_fd_with_caller() argument
186 if (NULL == buffer) { in mpp_buffer_get_fd_with_caller()
191 MppBufferImpl *p = (MppBufferImpl*)buffer; in mpp_buffer_get_fd_with_caller()
195 mpp_err("mpp_buffer_get_fd buffer %p fd %d from %s\n", buffer, fd, caller); in mpp_buffer_get_fd_with_caller()
200 size_t mpp_buffer_get_size_with_caller(MppBuffer buffer, const char *caller) in mpp_buffer_get_size_with_caller() argument
202 if (NULL == buffer) { in mpp_buffer_get_size_with_caller()
207 MppBufferImpl *p = (MppBufferImpl*)buffer; in mpp_buffer_get_size_with_caller()
209 mpp_err("mpp_buffer_get_size buffer %p ret zero size from %s\n", buffer, caller); in mpp_buffer_get_size_with_caller()
214 int mpp_buffer_get_index_with_caller(MppBuffer buffer, const char *caller) in mpp_buffer_get_index_with_caller() argument
216 if (NULL == buffer) { in mpp_buffer_get_index_with_caller()
221 MppBufferImpl *p = (MppBufferImpl*)buffer; in mpp_buffer_get_index_with_caller()
225 MPP_RET mpp_buffer_set_index_with_caller(MppBuffer buffer, int index, in mpp_buffer_set_index_with_caller() argument
228 if (NULL == buffer) { in mpp_buffer_set_index_with_caller()
233 MppBufferImpl *p = (MppBufferImpl*)buffer; in mpp_buffer_set_index_with_caller()
238 size_t mpp_buffer_get_offset_with_caller(MppBuffer buffer, const char *caller) in mpp_buffer_get_offset_with_caller() argument
240 if (NULL == buffer) { in mpp_buffer_get_offset_with_caller()
245 MppBufferImpl *p = (MppBufferImpl*)buffer; in mpp_buffer_get_offset_with_caller()
249 MPP_RET mpp_buffer_set_offset_with_caller(MppBuffer buffer, size_t offset, const char *caller) in mpp_buffer_set_offset_with_caller() argument
251 if (NULL == buffer) { in mpp_buffer_set_offset_with_caller()
256 MppBufferImpl *p = (MppBufferImpl*)buffer; in mpp_buffer_set_offset_with_caller()
261 MPP_RET mpp_buffer_info_get_with_caller(MppBuffer buffer, MppBufferInfo *info, const char *caller) in mpp_buffer_info_get_with_caller() argument
263 if (NULL == buffer || NULL == info) { in mpp_buffer_info_get_with_caller()
265 buffer, info, caller); in mpp_buffer_info_get_with_caller()
269 MppBufferImpl *p = (MppBufferImpl*)buffer; in mpp_buffer_info_get_with_caller()
278 static MPP_RET check_buf_need_sync(MppBuffer buffer, MPP_RET *ret, const char *caller) in check_buf_need_sync() argument
280 if (NULL == buffer) { in check_buf_need_sync()
285 MppBufferImpl *impl = (MppBufferImpl *)buffer; in check_buf_need_sync()
301 MPP_RET mpp_buffer_sync_begin_f(MppBuffer buffer, RK_S32 ro, const char* caller) in mpp_buffer_sync_begin_f() argument
305 if (check_buf_need_sync(buffer, &ret, caller)) in mpp_buffer_sync_begin_f()
308 MppBufferImpl *impl = (MppBufferImpl *)buffer; in mpp_buffer_sync_begin_f()
313 MPP_RET mpp_buffer_sync_end_f(MppBuffer buffer, RK_S32 ro, const char* caller) in mpp_buffer_sync_end_f() argument
317 if (check_buf_need_sync(buffer, &ret, caller)) in mpp_buffer_sync_end_f()
320 MppBufferImpl *impl = (MppBufferImpl *)buffer; in mpp_buffer_sync_end_f()
325 MPP_RET mpp_buffer_sync_partial_begin_f(MppBuffer buffer, RK_S32 ro, RK_U32 offset, RK_U32 length, … in mpp_buffer_sync_partial_begin_f() argument
329 if (check_buf_need_sync(buffer, &ret, caller)) in mpp_buffer_sync_partial_begin_f()
332 MppBufferImpl *impl = (MppBufferImpl *)buffer; in mpp_buffer_sync_partial_begin_f()
337 MPP_RET mpp_buffer_sync_partial_end_f(MppBuffer buffer, RK_S32 ro, RK_U32 offset, RK_U32 length, co… in mpp_buffer_sync_partial_end_f() argument
341 if (check_buf_need_sync(buffer, &ret, caller)) in mpp_buffer_sync_partial_end_f()
344 MppBufferImpl *impl = (MppBufferImpl *)buffer; in mpp_buffer_sync_partial_end_f()