Memory.isSpan

Check if @mem1 and mem2 share the memory with a common parent memory object and that the memory is contiguous.

If this is the case, the memory of @mem1 and @mem2 can be merged efficiently by performing gst_memory_share() on the parent object from the returned @offset.

class Memory
bool
isSpan
(,
size_t* offset
)

Parameters

mem2 Memory

a #GstMemory

offset size_t*

a pointer to a result offset

Return Value

Type: bool

%TRUE if the memory is contiguous and of a common parent.

Meta