diff --git a/markdown/design/memory.md b/markdown/design/memory.md index 3427a41099..550fde6adf 100644 --- a/markdown/design/memory.md +++ b/markdown/design/memory.md @@ -5,6 +5,20 @@ This document describes the design of the memory objects. `GstMemory` objects are usually added to `GstBuffer` objects and contain the multimedia data passed around in the pipeline. +``` c +struct GstMemory { + GstMiniObject mini_object; + + GstAllocator *allocator; + + GstMemory *parent; + gsize maxsize; + gsize align; + gsize offset; + gsize size; +}; +``` + ## Requirements - It must be possible to have different memory allocators