7.7
3.8 Capabilities
Capabilities, or caps, are a mechanism to describe the data that can flow or currently flows through a pad. They are a structure describing media types.
procedure
(string->caps str) → (or/c caps? #f)
str : string?
procedure
(caps->string caps) → string?
caps : caps?
Convert caps to a string representation.
procedure
(caps-append! caps1 caps2) → void?
caps1 : caps? caps2 : caps?
Appends the structure contained in caps2 to caps1. The structures in caps2 are not copied — they are transferred and caps1 is mutated.
Returns #t if caps represents any media format, #f otherwise.
procedure
(caps-empty? caps) → boolean?
caps : caps?
Returns #t if caps represents no media formats, #f otherwise.
procedure
(caps-fixed? caps) → boolean?
caps : caps?
Returns #t if caps is fixed, #f otherwise. Fixed caps describe exactly one format.
Returns #t if caps1 and caps2 represent the same set of caps, #f otherwise.