1GStreamer::Caps(3)    User Contributed Perl Documentation   GStreamer::Caps(3)
2
3
4

NAME

6       GStreamer::Caps
7

SYNOPSIS

9         my $empty = GStreamer::Caps::Empty -> new();
10
11         my $any = GStreamer::Caps::Any -> new();
12
13         my $structure = {
14           name => "urgs",
15           fields => [
16             [field_one => "Glib::String" => "urgs"],
17             [field_two => "Glib::Int" => 23]
18           ]
19         };
20         my $full = GStreamer::Caps::Full -> new($structure);
21
22         my $simple = GStreamer::Caps::Simple -> new(
23                        "audio/mpeg",
24                        field_one => "Glib::String" => "urgs",
25                        field_two => "Glib::Int" => 23);
26

DESCRIPTION

28       To create a GStreamer::Caps object, you call one of the following con‐
29       structors:
30
31       GStreamer::Caps::Any->new
32       GStreamer::Caps::Empty->new
33       GStreamer::Caps::Full->new
34       GStreamer::Caps::Simple->new
35

HIERARCHY

37         Glib::Boxed
38         +----GStreamer::Caps
39

METHODS

41       $caps1->append ($caps2)
42
43           * $caps2 (GStreamer::Caps)
44
45       $caps->append_structure ($structure)
46
47           * $structure (GStreamer::Structure)
48
49       boolean = $caps->do_simplify
50
51       caps = GStreamer::Caps->from_string ($string)
52
53           * $string (string)
54
55       caps = $caps1->intersect ($caps2)
56
57           * $caps2 (GStreamer::Caps)
58
59       boolean = $caps1->is_always_compatible ($caps2)
60
61           * $caps2 (GStreamer::Caps)
62
63       boolean = $caps->is_any
64
65       boolean = $caps->is_empty
66
67       boolean = $caps1->is_equal ($caps2)
68
69           * $caps2 (GStreamer::Caps)
70
71       boolean = $caps1->is_equal_fixed ($caps2)
72
73           * $caps2 (GStreamer::Caps)
74
75       boolean = $caps->is_fixed
76
77       boolean = $subset->is_subset ($superset)
78
79           * $superset (GStreamer::Caps)
80
81       caps = $caps->make_writable
82
83       caps = $caps->normalize
84
85       $caps->set_simple ($field, $type, $value, ...)
86
87           * $field (string)
88           * $type (string)
89           * $value (scalar)
90           * ... (list)
91
92       integer = $caps->get_size
93
94       structure = $caps->get_structure ($index)
95
96           * $index (integer)
97
98       caps = $minuend->subtract ($subtrahend)
99
100           * $subtrahend (GStreamer::Caps)
101
102       string = $caps->to_string
103
104       $caps->truncate
105
106       caps = $caps1->union ($caps2)
107
108           * $caps2 (GStreamer::Caps)
109

SEE ALSO

111       GStreamer, Glib::Boxed
112
114       Copyright (C) 2005-2006 by the gtk2-perl team.
115
116       This software is licensed under the LGPL.  See GStreamer for a full
117       notice.
118
119
120
121perl v5.8.8                       2007-02-20                GStreamer::Caps(3)
Impressum