|
superclass: gst-object% |
A pad is defined by two properties: its direction and its availability. A pad direction can be a source pad or a sink pad. Elements receive data on their sink pads and generate data on their source pads.
A pad can have three availabilities: always, sometimes, and on request.
method
(send a-pad get-direction) → (one-of/c 'unknown 'src 'sink)
method
(send a-pad get-parent-element) → (is-a?/c element%)
method
(send a-pad get-pad-template) → (or/c pad-template? #f)
method
→ (one-of/c 'ok 'wrong-hierarchy 'was-linked 'wrong-direction 'noformat 'nosched 'refused) sinkpad : (is-a?/c pad%)
method
(send a-pad link-maybe-ghosting sink) → boolean?
sink : (is-a?/c pad%)
method
(send a-pad get-allowed-caps) → (or/c caps? #f)
method
(send a-pad get-current-caps) → caps?
method
(send a-pad get-pad-template-caps) → caps?
method
(send a-pad has-current-caps?) → boolean?
|
superclass: pad% |
method
(send a-ghost-pad get-target) → (or/c (is-a?/c pad%) #f)
Get the target pad of a-ghost-pad or #f if no target is set.
method
(send a-ghost-pad set-target target) → boolean?
target : (is-a?/c pad%) Sets the new target of a-ghost-pad to target. Returns #t on success or #f if pads could not be linked.
procedure
(ghost-pad%-new name target) → (or/c (is-a?/c ghost-pad%) #f)
name : (or/c string? #f) target : (is-a?/c pad%)
procedure
(ghost-pad%-new-no-target name direction)
→ (or/c (is-a?/c ghost-pad%) #f) name : (or/c string? #f) direction : (one-of/c 'unknown 'src 'sink)
3.5.2 Pad Templates
procedure
(pad-template? v) → boolean?
v : any/c
procedure
(pad-template-caps template) → caps?
template : pad-template?
procedure
(make-pad-template name direction presence caps) → pad-template? name : string? direction : (one-of/c 'unknown 'src 'sink) presence : (one-of/c 'always 'sometimes 'request) caps : caps?
procedure
(pad%-new-from-template template [name])
→ (or/c (is-a?/c pad%) #f) template : pad-template? name : (or/c string? #f) = #f