QtGStreamer 0.10.1
|
Wrapper class for GstBin. More...
#include <QGst/Bin>
Public Types | |
enum | BinFromDescriptionOption { NoGhost = 0, Ghost = 1 } |
enum | RecursionType { RecurseDown, RecurseUp } |
Public Member Functions | |
bool | add (const ElementPtr &element) |
template<typename First , typename Second , typename... Rest> | |
void | add (const First &first, const Second &second, const Rest &...rest) |
bool | remove (const ElementPtr &element) |
ElementPtr | getElementByName (const char *name, RecursionType recursionType=RecurseDown) const |
ElementPtr | getElementByInterface (QGlib::Type interfaceType) const |
template<typename T > | |
QGlib::RefPointer< T > | getElementByInterface () const |
PadPtr | findUnlinkedPad (PadDirection direction) const |
bool | recalculateLatency () |
Static Public Member Functions | |
static BinPtr | create (const char *name=NULL) |
static BinPtr | fromDescription (const char *description, BinFromDescriptionOption ghostUnlinkedPads=Ghost) |
static BinPtr | fromDescription (const QString &description, BinFromDescriptionOption ghostUnlinkedPads=Ghost) |
Wrapper class for GstBin.
Bin is an element that can contain other Elements, allowing them to be managed as a group. Pads from the child elements can be ghosted to the bin, see GhostPad. This makes the bin look like any other elements and enables creation of higher-level abstraction elements.
For more information refer to GStreamer's C API documentation.
This enum is used with getElementByName() to specify where to look for elements if an element is not found as a direct child of this Bin.
build buildd qt gstreamer src QGst bin cpp build buildd qt gstreamer src QGst bin cpp BinPtr QGst::Bin::create | ( | const char * | name = NULL | ) | [static] |
Creates a new Bin with the specified name
Reimplemented in QGst::Pipeline.
BinPtr QGst::Bin::fromDescription | ( | const char * | description, |
BinFromDescriptionOption | ghostUnlinkedPads = Ghost |
||
) | [static] |
Creates a new Bin from a bin description. The description's syntax is the same as the one used in the gst-launch tool. If ghostUnlinkedPads is set to Ghost, Ghost pads on the bin for unlinked source or sink pads within the bin can automatically be created (but only a maximum of one ghost pad for each direction will be created; if you expect multiple unlinked source pads or multiple unlinked sink pads and want them all ghosted, you will have to create the ghost pads yourself)
QGlib::Error | when there was a problem creating the pipeline |
BinPtr QGst::Bin::fromDescription | ( | const QString & | description, |
BinFromDescriptionOption | ghostUnlinkedPads = Ghost |
||
) | [inline, static] |
bool QGst::Bin::add | ( | const ElementPtr & | element | ) |
void QGst::Bin::add | ( | const First & | first, |
const Second & | second, | ||
const Rest &... | rest | ||
) | [inline] |
Adds two or more elements to the bin. This function is equivalent to calling add() for each of the elements. The return value of each add() is ignored.
bool QGst::Bin::remove | ( | const ElementPtr & | element | ) |
ElementPtr QGst::Bin::getElementByName | ( | const char * | name, |
RecursionType | recursionType = RecurseDown |
||
) | const |
ElementPtr QGst::Bin::getElementByInterface | ( | QGlib::Type | interfaceType | ) | const |
QGlib::RefPointer< T > QGst::Bin::getElementByInterface | ( | ) | const |
Looks for an element inside the bin that implements the given interface and returns it casted to the interface type. Example:
QGst::XOverlayPtr xoverlay = bin->getElementByInterface<QGst::XOverlay>();
PadPtr QGst::Bin::findUnlinkedPad | ( | PadDirection | direction | ) | const |