part-caps.txt 676 Bytes
Newer Older
Wim Taymans's avatar
Wim Taymans committed
1 2 3 4 5 6 7 8 9 10
Caps
----

Caps are lighweight refcounted objects describing media types.
They are composed of an array of GstStructures.

Caps are exposed on GstPadTemplates to describe all possible types a
given pad can handle. They are also stored in the registry along with
a description of the element.

Wim Taymans's avatar
Wim Taymans committed
11
Caps are exposed on the element pads using the _get_caps() pad function.
Wim Taymans's avatar
Wim Taymans committed
12 13 14 15 16 17
This function describes the possible types that the pad can handle or
produce (see part-pads.txt and part-negotiation.txt).

Caps are also attached to buffers to describe to content of the data
pointed to be the buffer.

Piotr Fusik's avatar
Piotr Fusik committed
18
Various methods exist to work with the media types such as subtracting
Wim Taymans's avatar
Wim Taymans committed
19 20
or intersecting.