An interface for probing possible property values. More...
Inherits Glib::Interface.
Inherited by Gst::AlsaMixer, Gst::AlsaSink, Gst::AlsaSrc, and Gst::XvImageSink.
List of all members.
Detailed Description
An interface for probing possible property values.
The property probe is a way to autodetect allowed values for a GObject property. Its primary use is to autodetect device-names in several elements.
The interface is implemented by many hardware sources and sinks.
Constructor & Destructor Documentation
virtual Gst::PropertyProbe::~PropertyProbe |
( |
|
) |
[virtual] |
Member Function Documentation
static void Gst::PropertyProbe::add_interface |
( |
GType |
gtype_implementer |
) |
[static] |
const GList* Gst::PropertyProbe::get_properties |
( |
|
) |
const |
Get a list of properties for which probing is supported.
- Returns:
- The list of properties for which probing is supported by this element.
virtual const GList* Gst::PropertyProbe::get_properties_vfunc |
( |
|
) |
const [virtual] |
const GParamSpec* Gst::PropertyProbe::get_property |
( |
const Glib::ustring & |
name |
) |
const |
Get ParamSpec for a property for which probing is supported.
- Parameters:
-
| name | Name of the property. |
- Returns:
- The ParamSpec of
0
.
Same as gst_property_probe_get_values().
- Parameters:
-
| name | The name of the property to get values for. |
- Returns:
- A list of valid values for the given property.
Glib::ValueArray Gst::PropertyProbe::get_values |
( |
const GParamSpec * |
pspec |
) |
const |
Gets the possible (probed) values for the given property, requires the property to have been probed before.
- Parameters:
-
| pspec | The ParamSpec property identifier. |
- Returns:
- A list of valid values for the given property.
virtual Glib::ValueArray Gst::PropertyProbe::get_values_vfunc |
( |
guint |
prop_id, |
|
|
const GParamSpec * |
pspec | |
|
) |
| | const [virtual] |
const GstPropertyProbe* Gst::PropertyProbe::gobj |
( |
|
) |
const [inline] |
GstPropertyProbe* Gst::PropertyProbe::gobj |
( |
|
) |
[inline] |
bool Gst::PropertyProbe::needs_probe |
( |
const Glib::ustring & |
name |
) |
const |
Same as gst_property_probe_needs_probe().
- Parameters:
-
| name | The name of the property to check. |
- Returns:
true
if the property needs a new probe, false
if not.
bool Gst::PropertyProbe::needs_probe |
( |
const GParamSpec * |
pspec |
) |
const |
Checks whether a property needs a probe.
This might be because the property wasn't initialized before, or because host setup changed. This might be, for example, because a new device was added, and thus device probing needs to be refreshed to display the new device.
- Parameters:
-
| pspec | A ParamSpec that identifies the property to check. |
- Returns:
true
if the property needs a new probe, false
if not.
virtual bool Gst::PropertyProbe::needs_probe_vfunc |
( |
guint |
prop_id, |
|
|
const GParamSpec * |
pspec | |
|
) |
| | const [virtual] |
virtual void Gst::PropertyProbe::on_probe_needed |
( |
const GParamSpec * |
pspec |
) |
[protected, virtual] |
Same as gst_property_probe_probe_and_get_values().
- Parameters:
-
| name | The name of the property to get values for. |
- Returns:
- The list of valid values for this property.
Glib::ValueArray Gst::PropertyProbe::probe_and_get_values |
( |
const GParamSpec * |
pspec |
) |
|
Check whether the given property requires a new probe.
If so, fo the probe. After that, retrieve a value list. Meant as a utility function that wraps the above functions.
- Parameters:
-
| pspec | The ParamSpec property identifier. |
- Returns:
- The list of valid values for this property.
void Gst::PropertyProbe::probe_property |
( |
const Glib::ustring & |
name |
) |
|
Runs a probe on the property specified by name.
- Parameters:
-
| name | Name of the property. |
void Gst::PropertyProbe::probe_property |
( |
const GParamSpec * |
pspec |
) |
|
Runs a probe on the property specified by pspec.
- Parameters:
-
| pspec | ParamSpec of the property. |
virtual void Gst::PropertyProbe::probe_property_vfunc |
( |
guint |
prop_id, |
|
|
const GParamSpec * |
pspec | |
|
) |
| | [virtual] |
- Prototype:
void on_my_probe_needed(const GParamSpec* pspec)
Friends And Related Function Documentation
A Glib::wrap() method for this object.
- Parameters:
-
| object | The C instance. |
| take_copy | False 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.
The documentation for this class was generated from the following file:
- gstreamermm/propertyprobe.h