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
29       constructors:
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       ·   $caps2 (GStreamer::Caps)
43
44   $caps->append_structure ($structure)
45       ·   $structure (GStreamer::Structure)
46
47   boolean = $caps->do_simplify
48   caps = GStreamer::Caps->from_string ($string)
49       ·   $string (string)
50
51   caps = $caps1->intersect ($caps2)
52       ·   $caps2 (GStreamer::Caps)
53
54   boolean = $caps1->is_always_compatible ($caps2)
55       ·   $caps2 (GStreamer::Caps)
56
57   boolean = $caps->is_any
58   boolean = $caps->is_empty
59   boolean = $caps1->is_equal ($caps2)
60       ·   $caps2 (GStreamer::Caps)
61
62   boolean = $caps1->is_equal_fixed ($caps2)
63       ·   $caps2 (GStreamer::Caps)
64
65   boolean = $caps->is_fixed
66   boolean = $subset->is_subset ($superset)
67       ·   $superset (GStreamer::Caps)
68
69   caps = $caps->make_writable
70   caps = $caps->normalize
71   $caps->set_simple ($field, $type, $value, ...)
72       ·   $field (string)
73
74       ·   $type (string)
75
76       ·   $value (scalar)
77
78       ·   ... (list)
79
80   integer = $caps->get_size
81   structure = $caps->get_structure ($index)
82       ·   $index (integer)
83
84   caps = $minuend->subtract ($subtrahend)
85       ·   $subtrahend (GStreamer::Caps)
86
87   string = $caps->to_string
88   $caps->truncate
89   caps = $caps1->union ($caps2)
90       ·   $caps2 (GStreamer::Caps)
91

SEE ALSO

93       GStreamer, Glib::Boxed
94
96       Copyright (C) 2005-2014 by the gtk2-perl team.
97
98       This software is licensed under the LGPL.  See GStreamer for a full
99       notice.
100
101
102
103perl v5.30.0                      2019-09-19                GStreamer::Caps(3)
Impressum