mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
design: memory: add referred-to structure to doc
This commit is contained in:
parent
bff7e4012b
commit
78321b96ff
1 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue