GStreamer::Caps(3pm)

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)
o $caps2 (GStreamer::Caps)
$caps->append_structure ($structure)
o $structure (GStreamer::Structure)
boolean = $caps->do_simplify caps = GStreamer::Caps->from_string ($string)
o $string (string)
caps = $caps1->intersect ($caps2)
o $caps2 (GStreamer::Caps)
boolean = $caps1->is_always_compatible ($caps2)
o $caps2 (GStreamer::Caps)
boolean = $caps->is_any
boolean = $caps->is_empty
boolean = $caps1->is_equal ($caps2)
o $caps2 (GStreamer::Caps)
boolean = $caps1->is_equal_fixed ($caps2)
o $caps2 (GStreamer::Caps)
boolean = $caps->is_fixed
boolean = $subset->is_subset ($superset)
o $superset (GStreamer::Caps)
caps = $caps->make_writable caps = $caps->normalize
$caps->set_simple ($field, $type, $value, ...)
o $field (string)
o $type (string)
o $value (scalar)
o ... (list)
integer = $caps->get_size
structure = $caps->get_structure ($index)
o $index (integer)
caps = $minuend->subtract ($subtrahend)
o $subtrahend (GStreamer::Caps)
string = $caps->to_string
$caps->truncate
caps = $caps1->union ($caps2)
o $caps2 (GStreamer::Caps)

SEE ALSO

GStreamer, Glib::Boxed

COPYRIGHT

Copyright (C) 2005-2008 by the gtk2-perl team.

This software is licensed under the LGPL. See GStreamer for a full
notice.
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout