GStreamer::Caps(3pm)

GStreamer::Caps3pm

Structure describing sets of media formats

Usage

  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);

Overview

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)

Releases

4 releases since Debian 5.0 (Lenny); the text changed 3 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8

From libgstreamer-perl 0.19-1+b1 in Debian 8 (Jessie). Parsed by carta from the page's man source.