NAME¶
GStreamer::Caps - Structure describing sets of media formats
SYNOPSIS¶
my $empty = GStreamer::Caps::Empty -> new();
my $any = GStreamer::Caps::Any -> new();
my $structure = {
name => "urgs",
fields => [
[field_one => "Glib::String" => "urgs"],
[field_two => "Glib::Int" => 23]
]
};
my $full = GStreamer::Caps::Full -> new($structure);
my $simple = GStreamer::Caps::Simple -> new(
"audio/mpeg",
field_one => "Glib::String" => "urgs",
field_two => "Glib::Int" => 23);
DESCRIPTION¶
To create a
GStreamer::Caps object, you call one of the following
constructors:
- GStreamer::Caps::Any->new
- GStreamer::Caps::Empty->new
- GStreamer::Caps::Full->new
- GStreamer::Caps::Simple->new
HIERARCHY¶
Glib::Boxed
+----GStreamer::Caps
METHODS¶
$caps1->append ($caps2)¶
- •
- $caps2 (GStreamer::Caps)
$caps->append_structure ($structure)¶
- •
- $structure (GStreamer::Structure)
boolean = $caps-> do_simplify¶
caps = GStreamer::Caps-> from_string ($string)¶
- •
- $string (string)
caps = $caps1-> intersect ($caps2)¶
- •
- $caps2 (GStreamer::Caps)
boolean = $caps1-> is_always_compatible ($caps2)¶
- •
- $caps2 (GStreamer::Caps)
boolean = $caps-> is_any¶
boolean = $caps-> is_empty¶
boolean = $caps1-> is_equal ($caps2)¶
- •
- $caps2 (GStreamer::Caps)
boolean = $caps1-> is_equal_fixed ($caps2)¶
- •
- $caps2 (GStreamer::Caps)
boolean = $caps-> is_fixed¶
boolean = $subset-> is_subset ($superset)¶
- •
- $superset (GStreamer::Caps)
caps = $caps-> make_writable¶
caps = $caps-> normalize¶
$caps->set_simple ($field, $type, $value, ...)¶
- •
- $field (string)
- •
- $type (string)
- •
- $value (scalar)
- •
- ... (list)
integer = $caps-> get_size¶
structure = $caps-> get_structure ($index)¶
- •
- $index (integer)
caps = $minuend-> subtract ($subtrahend)¶
- •
- $subtrahend (GStreamer::Caps)
string = $caps-> to_string¶
$caps->truncate¶
caps = $caps1-> union ($caps2)¶
- •
- $caps2 (GStreamer::Caps)
SEE ALSO¶
GStreamer, Glib::Boxed
COPYRIGHT¶
Copyright (C) 2005-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See GStreamer for a full notice.