gstreamermm  1.4.3
Public Member Functions | Static Public Member Functions | Protected Attributes | Related Functions | List of all members
Gst::CapsFeatures Class Reference

Public Member Functions

 CapsFeatures (GstCapsFeatures* gobject, bool make_a_copy=true)
 
 CapsFeatures (const CapsFeatures& other)
 
CapsFeaturesoperator= (const CapsFeatures& other)
 
 ~CapsFeatures ()
 
void swap (CapsFeatures& other)
 
GstCapsFeatures* gobj ()
 Provides access to the underlying C instance. More...
 
const GstCapsFeatures* gobj () const
 Provides access to the underlying C instance. More...
 
GstCapsFeatures* gobj_copy () const
 Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs. More...
 
 CapsFeatures ()
 Creates a new, empty Gst::CapsFeatures. More...
 
 CapsFeatures (const Glib::ustring& feature1)
 Creates a new Gst::CapsFeatures with the given first feature. More...
 
Glib::ustring to_string () const
 Converts features to a human-readable string representation. More...
 
bool set_parent_refcount (gint* refcount)
 Sets the parent_refcount field of Gst::CapsFeatures. More...
 
bool is_equal (const Gst::CapsFeatures& features2) const
 Check if features1 and features2 are equal. More...
 
bool is_any () const
 Check if features is Gst::CAPS_FEATURES_ANY. More...
 
bool contains (const Glib::ustring& feature) const
 Check if features contains feature. More...
 
bool contains (GQuark feature) const
 Check if features contains feature. More...
 
guint get_size () const
 Returns the number of features in features. More...
 
Glib::ustring get_nth (guint i) const
 Returns the i-th feature of features. More...
 
GQuark get_nth_id (guint i) const
 Returns the i-th feature of features. More...
 
void add (const Glib::ustring& feature)
 Adds feature to features. More...
 
void add (GQuark feature)
 Adds feature to features. More...
 
void remove (const Glib::ustring& feature)
 Removes feature from features. More...
 
void remove (GQuark feature)
 Removes feature from features. More...
 

Static Public Member Functions

static GType get_type ()
 Get the GType for this class, for use with the underlying GObject type system. More...
 
static CapsFeatures create_any ()
 Creates a new, ANY Gst::CapsFeatures. More...
 
static CapsFeatures create_from_string (const Glib::ustring& features)
 

Protected Attributes

GstCapsFeatures* gobject_
 

Related Functions

(Note that these are not member functions.)

void swap (CapsFeatures& lhs, CapsFeatures& rhs)
 
Gst::CapsFeatures wrap (GstCapsFeatures* object, bool take_copy=false)
 A Glib::wrap() method for this object. More...
 

Constructor & Destructor Documentation

§ CapsFeatures() [1/4]

Gst::CapsFeatures::CapsFeatures ( GstCapsFeatures *  gobject,
bool  make_a_copy = true 
)
explicit

§ CapsFeatures() [2/4]

Gst::CapsFeatures::CapsFeatures ( const CapsFeatures other)

§ ~CapsFeatures()

Gst::CapsFeatures::~CapsFeatures ( )

§ CapsFeatures() [3/4]

Gst::CapsFeatures::CapsFeatures ( )

Creates a new, empty Gst::CapsFeatures.

§ CapsFeatures() [4/4]

Gst::CapsFeatures::CapsFeatures ( const Glib::ustring &  feature1)
explicit

Creates a new Gst::CapsFeatures with the given first feature.

Parameters
feature1name of first feature to set.

Member Function Documentation

§ add() [1/2]

void Gst::CapsFeatures::add ( const Glib::ustring &  feature)

Adds feature to features.

Parameters
featureA feature.

§ add() [2/2]

void Gst::CapsFeatures::add ( GQuark  feature)

Adds feature to features.

Parameters
featureA feature.

§ contains() [1/2]

bool Gst::CapsFeatures::contains ( const Glib::ustring &  feature) const

Check if features contains feature.

Parameters
featureA feature.
Returns
true if features contains feature.

§ contains() [2/2]

bool Gst::CapsFeatures::contains ( GQuark  feature) const

Check if features contains feature.

Parameters
featureA feature.
Returns
true if features contains feature.

§ create_any()

static CapsFeatures Gst::CapsFeatures::create_any ( )
static

Creates a new, ANY Gst::CapsFeatures.

This will be equal to any other Gst::CapsFeatures but caps with these are unfixed.

§ create_from_string()

static CapsFeatures Gst::CapsFeatures::create_from_string ( const Glib::ustring &  features)
static

§ get_nth()

Glib::ustring Gst::CapsFeatures::get_nth ( guint  i) const

Returns the i-th feature of features.

Parameters
iIndex of the feature.
Returns
The i-th feature of features.

§ get_nth_id()

GQuark Gst::CapsFeatures::get_nth_id ( guint  i) const

Returns the i-th feature of features.

Parameters
iIndex of the feature.
Returns
The i-th feature of features.

§ get_size()

guint Gst::CapsFeatures::get_size ( ) const

Returns the number of features in features.

Returns
The number of features in features.

§ get_type()

static GType Gst::CapsFeatures::get_type ( )
static

Get the GType for this class, for use with the underlying GObject type system.

§ gobj() [1/2]

GstCapsFeatures* Gst::CapsFeatures::gobj ( )
inline

Provides access to the underlying C instance.

§ gobj() [2/2]

const GstCapsFeatures* Gst::CapsFeatures::gobj ( ) const
inline

Provides access to the underlying C instance.

§ gobj_copy()

GstCapsFeatures* Gst::CapsFeatures::gobj_copy ( ) const

Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs.

§ is_any()

bool Gst::CapsFeatures::is_any ( ) const

Check if features is Gst::CAPS_FEATURES_ANY.

Returns
true if features is Gst::CAPS_FEATURES_ANY.

§ is_equal()

bool Gst::CapsFeatures::is_equal ( const Gst::CapsFeatures features2) const

Check if features1 and features2 are equal.

Parameters
features2A Gst::CapsFeatures.
Returns
true if features1 and features2 are equal.

§ operator=()

CapsFeatures& Gst::CapsFeatures::operator= ( const CapsFeatures other)

§ remove() [1/2]

void Gst::CapsFeatures::remove ( const Glib::ustring &  feature)

Removes feature from features.

Parameters
featureA feature.

§ remove() [2/2]

void Gst::CapsFeatures::remove ( GQuark  feature)

Removes feature from features.

Parameters
featureA feature.

§ set_parent_refcount()

bool Gst::CapsFeatures::set_parent_refcount ( gint *  refcount)

Sets the parent_refcount field of Gst::CapsFeatures.

This field is used to determine whether a caps features is mutable or not. This function should only be called by code implementing parent objects of Gst::CapsFeatures, as described in the MT Refcounting section of the design documents.

Parameters
refcountA pointer to the parent's refcount.
Returns
true if the parent refcount could be set.

§ swap()

void Gst::CapsFeatures::swap ( CapsFeatures other)

§ to_string()

Glib::ustring Gst::CapsFeatures::to_string ( ) const

Converts features to a human-readable string representation.

For debugging purposes its easier to do something like this:

[C example ellipted] This prints the features in human readble form.

Free-function: g_free

Returns
A pointer to string allocated by Glib::malloc(). Glib::free() after usage.

Friends And Related Function Documentation

§ swap()

void swap ( CapsFeatures lhs,
CapsFeatures rhs 
)
related
Parameters
lhsThe left-hand side
rhsThe right-hand side

§ wrap()

Gst::CapsFeatures wrap ( GstCapsFeatures *  object,
bool  take_copy = false 
)
related

A Glib::wrap() method for this object.

Parameters
objectThe C instance.
take_copyFalse if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns
A C++ instance that wraps this C instance.

Member Data Documentation

§ gobject_

GstCapsFeatures* Gst::CapsFeatures::gobject_
protected

The documentation for this class was generated from the following file: