Package org.freedesktop.gstreamer.gst
Class MemoryMapInfo
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.gst.MapInfo
org.freedesktop.gstreamer.gst.MemoryMapInfo
- All Implemented Interfaces:
Proxy
Alias for
GstMapInfo
to be used with g_auto():
void my_func(GstMemory *mem)
{
g_auto(GstMemoryMapInfo) map = GST_MAP_INFO_INIT;
if (!gst_memory_map(mem, &map, GST_MAP_READWRITE))
return;
...
// No need to call gst_memory_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 GstBufferMapInfo
.
-
Constructor Summary
ConstructorDescriptionMemoryMapInfo
(MemorySegment address) Create a MemoryMapInfo proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryMapInfo
fromMapInfo
(MapInfo alias) Cast a MapInfo instance to a MemoryMapInfo 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
-
Constructor Details
-
MemoryMapInfo
Create a MemoryMapInfo proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
-
Method Details
-
fromMapInfo
Cast a MapInfo instance to a MemoryMapInfo with the same memory address.- Parameters:
alias
- the MapInfo to cast to a MemoryMapInfo- Returns:
- a MemoryMapInfo with the memory address of the MapInfo
-