|
I found that the
GST_API
GstBuffer * gst_buffer_new_wrapped_full (GstMemoryFlags flags, gpointer data, gsize maxsize,
gsize offset, gsize size, gpointer user_data,
GDestroyNotify notify);
could do what I want.
My memory allocate function gives both virtual address and physical address,
using the virtual address to do my task works normally,
now the problem is how to set the physical address for downstream element usage?
The first argument flags could be set as GST_MEMORY_FLAG_PHYSICALLY_CONTIGUOUS, but I'm wondering how could downstream element get physical address?
Thanks a lot.
|