From 78321b96fff4d78f01ed43330b7561332bf759e5 Mon Sep 17 00:00:00 2001 From: "Reynaldo H. Verdejo Pinochet" Date: Mon, 27 Feb 2017 15:45:59 -0800 Subject: [PATCH] design: memory: add referred-to structure to doc --- markdown/design/memory.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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