Skip to content

Buffer creation from native memory #149

@svnhub

Description

@svnhub

I want to construct a new org.freedesktop.gstreamer.Buffer object with data from a piece of native memory. For example, with the direct API, I could do something like this:

GstBuffer * gst_buffer_new_wrapped_full (GstMemoryFlags flags, gpointer data,
    gsize maxsize, gsize offset, gsize size, gpointer user_data,
GDestroyNotify notify)

Is there any way I could do this using the java library? Neither Buffer nor GSTBufferApi seems to have this functionality?

The intention is to avoid having to allocate a new identical piece of memory and perform a copy into that when sending the buffer to GStreamer.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions