design: memory: add referred-to structure to doc

This commit is contained in:
Reynaldo H. Verdejo Pinochet 2017-02-27 15:45:59 -08:00
parent bff7e4012b
commit 78321b96ff

View file

@ -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