[...]
-
+
```
### Implementing a GstAllocator
[...]
-
+
```
## GstMeta
meta->height = 80;
[...]
-
+
```
An element can then use the metadata on the buffer when rendering the
[...]
-
+
```
### Implementing new GstMeta
#define gst_buffer_get_my_example_meta(b) \
((MyExampleMeta*)gst_buffer_get_meta((b),MY_EXAMPLE_META_API_TYPE))
-
+
```
The metadata API definition consists of the definition of the structure
return type;
}
-
+
```
As you can see, it simply uses the `gst_meta_api_type_register ()`
gint age,
const gchar *name);
-
+
```
Let's have a look at how these functions are implemented in the
return meta;
}
-
+
```
`gst_meta_register ()` registers the implementation details, like the
[...]
-
+
```
The configuration of the bufferpool is maintained in a generic
[...]
-
+
```
It is important to check the return value of the acquire function
[...]
-
+
```
This particular implementation will make a custom `GstVideoBufferPool`
Implementors of these methods should modify the given `GstQuery` object
by updating the pool options and allocation options.
-