Lines Matching refs:mbuf
122 MppBuffer mbuf = ptr; in gst_mpp_mem_destroy() local
124 mpp_buffer_put (mbuf); in gst_mpp_mem_destroy()
133 MppBuffer mbuf = NULL; in gst_mpp_allocator_import_dmafd() local
141 mpp_buffer_import_with_tag (self->ext_group, &info, &mbuf, NULL, __func__); in gst_mpp_allocator_import_dmafd()
142 if (!mbuf) in gst_mpp_allocator_import_dmafd()
145 mpp_buffer_set_index (mbuf, self->index); in gst_mpp_allocator_import_dmafd()
147 mem = gst_mpp_allocator_import_mppbuf (allocator, mbuf); in gst_mpp_allocator_import_dmafd()
148 mpp_buffer_put (mbuf); in gst_mpp_allocator_import_dmafd()
154 gst_mpp_allocator_import_mppbuf (GstAllocator * allocator, MppBuffer mbuf) in gst_mpp_allocator_import_mppbuf() argument
164 fd = mpp_buffer_get_fd (mbuf); in gst_mpp_allocator_import_mppbuf()
171 size = GST_ROUND_UP_N (mpp_buffer_get_size (mbuf), 4096); in gst_mpp_allocator_import_mppbuf()
173 if (mpp_buffer_get_index (mbuf) != self->index) { in gst_mpp_allocator_import_mppbuf()
183 mpp_buffer_inc_ref (mbuf); in gst_mpp_allocator_import_mppbuf()
184 gst_mini_object_set_qdata (GST_MINI_OBJECT (mem), quark, mbuf, in gst_mpp_allocator_import_mppbuf()
194 MppBuffer mbuf; in gst_mpp_allocator_import_gst_memory() local
204 mbuf = gst_mpp_mpp_buffer_from_gst_memory (mem); in gst_mpp_allocator_import_gst_memory()
205 if (mbuf) in gst_mpp_allocator_import_gst_memory()
206 return gst_mpp_allocator_import_mppbuf (allocator, mbuf); in gst_mpp_allocator_import_gst_memory()
225 MppBuffer mbuf = NULL; in gst_mpp_allocator_alloc_mppbuf() local
227 mpp_buffer_get (self->group, &mbuf, size); in gst_mpp_allocator_alloc_mppbuf()
228 mpp_buffer_set_index (mbuf, self->index); in gst_mpp_allocator_alloc_mppbuf()
230 return mbuf; in gst_mpp_allocator_alloc_mppbuf()
238 MppBuffer mbuf; in gst_mpp_allocator_alloc() local
240 mbuf = gst_mpp_allocator_alloc_mppbuf (allocator, size); in gst_mpp_allocator_alloc()
241 if (!mbuf) in gst_mpp_allocator_alloc()
244 mem = gst_mpp_allocator_import_mppbuf (allocator, mbuf); in gst_mpp_allocator_alloc()
245 mpp_buffer_put (mbuf); in gst_mpp_allocator_alloc()