mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
design: memory: merge redundant offset/size explanation
This commit is contained in:
parent
7a10a881ca
commit
bff7e4012b
1 changed files with 4 additions and 7 deletions
|
@ -12,13 +12,10 @@ multimedia data passed around in the pipeline.
|
||||||
|
|
||||||
## Memory layout
|
## Memory layout
|
||||||
|
|
||||||
`GstMemory` manages a memory region. The accessible part of the managed region
|
A `GstMemory` has a pointer to a memory region of `maxsize`. The accessible part
|
||||||
is defined by an offset relative to the start of the region and a size. This
|
of this managed region is defined by an `offset` relative to the start of the
|
||||||
means that the managed region can be larger than what is visible to the user of
|
region and a `size`. This means that the managed region can be larger than what
|
||||||
`GstMemory` API.
|
is visible to the user of the `GstMemory` API.
|
||||||
|
|
||||||
Schematically, `GstMemory` has a pointer to a memory region of _maxsize_. The
|
|
||||||
area starting from `offset` and `size` is accessible.
|
|
||||||
|
|
||||||
```
|
```
|
||||||
memory
|
memory
|
||||||
|
|
Loading…
Reference in a new issue