Need to know the native pointer of a Buffer object #278
-
Hello,
I am hoping to mimic this functionality using javas new project Panama. I currently am able to natively call gst_buffer_get_nvds_batch_meta and functionally it works as excepted. However it expects a pointer to the underlying GstBuffer object. I am able to pass this to the native function using Project Panama but I need to know what this value is. I have the Java Gstreamer equivalent of the above code shown below.
Assuming metadataBuffer is the equivalent java object to GstBuffer I would like to now if its possible to access its native pointer value which can then be passed into my native call to gst_buffer_get_nvds_batch_meta. Please let me know if this is possible! Thank you, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can use I would map Deepstream API with JNA, or map GStreamer using Panama, rather than trying to mix the two. It would be nice to have a gst1-java-core backend using Panama, but that's not happening any time soon. |
Beta Was this translation helpful? Give feedback.
You can use
Natives::getPointer
orNatives::getRawPointer
.I would map Deepstream API with JNA, or map GStreamer using Panama, rather than trying to mix the two.
It would be nice to have a gst1-java-core backend using Panama, but that's not happening any time soon.