Package org.freedesktop.gstreamer.gst
Class BufferMapInfo
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.gst.MapInfo
org.freedesktop.gstreamer.gst.BufferMapInfo
- All Implemented Interfaces:
Proxy
Alias for
GstMapInfo
to be used with g_auto():
void my_func(GstBuffer *buf)
{
g_auto(GstBufferMapInfo) map = GST_MAP_INFO_INIT;
if (!gst_buffer_map(buf, &map, GST_MAP_READWRITE))
return;
...
// No need to call gst_buffer_unmap()
}
GstMapInfo
cannot be used with g_auto() because it is ambiguous whether it
needs to be unmapped using gst_buffer_unmap() or gst_memory_unmap().
See also GstMemoryMapInfo
.
-
Field Summary
Fields inherited from class io.github.jwharm.javagi.base.ProxyInstance
address
-
Constructor Summary
ConstructorsConstructorDescriptionBufferMapInfo
(MemorySegment address) Create a BufferMapInfo proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic BufferMapInfo
fromMapInfo
(MapInfo alias) Cast a MapInfo instance to a BufferMapInfo with the same memory address.Methods inherited from class org.freedesktop.gstreamer.gst.MapInfo
getMemoryLayout, readData, readFlags, readMaxsize, readMemory, readSize, readUserData, writeData, writeFlags, writeMaxsize, writeMemory, writeSize, writeUserData
Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode