Thankyou for confirming it is possible, Could you provide more details on the how as I am unsure if what I am trying is achievable or if another approach is needed.
I have tried the following method, creating a gsteamer plugin, that has an overlay buffer then using g2d to blit to the buffer
buffer = gst_buffer_new_and_alloc (4 * overlay->width * overlay->height);
gst_buffer_replace (&overlay->overlay_image, buffer);
gst_buffer_unref (buffer);
gst_buffer_map (buffer, &map, GST_MAP_READWRITE);
To test the overlay, I can write directly to the overlay buffer using memcpy etc however If I try to blit directly into the gst_buffer, I run into issues
G2D – Requires Physical memory address
Gst – allocates virtual memory address
Would obtaining the Physical address for the gst buffer be a workable approach, or have I misunderstood how to link g2d to gstreamer.
Thankyou for confirming it is possible,
I have tried the following method, creating a gsteamer plugin, that has an overlay buffer then using g2d to blit to the buffer
buffer = gst_buffer_new_and_alloc (4 * overlay->width * overlay->height);
gst_buffer_replace (&overlay->overlay_image, buffer);
gst_buffer_unref (buffer);
gst_buffer_map (buffer, &map, GST_MAP_READWRITE);
To test the overlay, I can write directly to the overlay buffer using memcpy etc however If I try to blit directly into the gst_buffer, I run into issues
G2D – Requires Physical memory address
Gst – allocates virtual memory address
Would obtaining the Physical address for the gst buffer be a workable approach, or have I misunderstood how to link g2d to gstreamer.