gstreamermm 1.10.0
Gst::QueryScheduling Class Reference

A new scheduling query object. More...

#include <gstreamermm/query.h>

Inheritance diagram for Gst::QueryScheduling:

Public Member Functions

void parse (Gst::SchedulingFlags& flags, gint& minsize, gint& maxsize, gint&align) const
 Set the scheduling properties.
void set (Gst::SchedulingFlags flags, gint minsize, gint maxsize, gint align)
 Set the scheduling properties.
void add_scheduling_mode (Gst::PadMode mode)
 Add mode as aone of the supported scheduling modes to query.
guint get_n_scheduling_modes () const
 Retrieve the number of values currently stored in the scheduling mode array of the query's structure.
Gst::PadMode parse_nth_scheduling_mode (guint index) const
 Parse an available query and get the scheduling mode at index of the scheduling modes array.
bool has_scheduling_mode (Gst::PadMode mode) const
 Check if query has scheduling mode set.
bool has_scheduling_mode_with_flags (Gst::PadMode mode, Gst::SchedulingFlags flags) const
 Check if query has scheduling mode set and flags is set in query scheduling flags.
Public Member Functions inherited from Gst::Query
void reference () const
 Increment the reference count for this object.
void unreference () const
 Decrement the reference count for this object.
GstQuery* gobj ()
 Provides access to the underlying C instance.
const GstQuery* gobj () const
 Provides access to the underlying C instance.
GstQuery* gobj_copy () const
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
 Query ()=delete
 Query (const Query&)=delete
Queryoperator= (const Query&)=delete
Glib::RefPtr< Gst::Querycreate_writable ()
 Makes a writable query from the given query.
Gst::Structure get_structure () const
 Get the structure of a query.
QueryType get_query_type () const
 Get the Gst::QueryType of the query.
Glib::RefPtr< Gst::Querycopy ()
 Copies the given query using the copy function of the parent Gst::Structure.
Public Member Functions inherited from Gst::MiniObject
void reference () const
 Increment the reference count for this object.
void unreference () const
 Decrement the reference count for this object.
GstMiniObject* gobj ()
 Provides access to the underlying C instance.
const GstMiniObject* gobj () const
 Provides access to the underlying C instance.
GstMiniObject* gobj_copy () const
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
 MiniObject ()=delete
 MiniObject (const MiniObject&)=delete
MiniObjectoperator= (const MiniObject&)=delete
 ~MiniObject ()
guint get_flags () const
void set_flags (const guint& value)
gint get_refcount () const
gint get_lockstate () const
bool lock (LockFlags flags)
 Lock the mini-object with the specified access mode in flags.
void unlock (LockFlags flags)
 Unlock the mini-object with the specified access mode in flags.
bool is_writable () const
 If mini_object has the LOCKABLE flag set, check if the current EXCLUSIVE lock on object is the only one, this means that changes to the object will not be visible to any other object.
Glib::RefPtr< MiniObjectcreate_writable ()
 Checks if a mini-object is writable.
void set_qdata (GQuark quark, QuarkData*data)
 This sets an opaque, named pointer on a miniobject.
QuarkDataget_qdata (GQuark quark) const
 This function gets back user data pointers stored via set_qdata().
QuarkDatasteal_qdata (GQuark quark)
 This function gets back user data pointers stored via set_qdata() and removes the data from object without invoking its destroy() function (if any was set).
void add_finalize_notifier (const SlotFinalizer& slot)
 Adds notifier when mini object is finalized.
void remove_finalize_notifier ()
 Remove finalize notifier.

Static Public Member Functions

static Glib::RefPtr< Gst::QuerySchedulingcreate ()
 Constructs a new query object for querying the scheduling properties.
Static Public Member Functions inherited from Gst::Query
static Glib::RefPtr< Gst::Querycreate_buffering (Gst::Format format)
 Constructs a new query object for querying the buffering status of a stream.
static Glib::RefPtr< Gst::Querycreate_allocation (Glib::RefPtr< Gst::Caps > caps, bool need_pool)
 Constructs a new query object for querying the allocation properties.
static Glib::RefPtr< Gst::Querycreate_uri ()
 Constructs a new query URI query object.
static Glib::RefPtr< Gst::Querycreate_scheduling ()
 Constructs a new query object for querying the scheduling properties.
static Glib::RefPtr< Gst::Querycreate_drain ()
 Constructs a new query object for querying the drain state.
static Glib::RefPtr< Gst::Querycreate_custom (Gst::QueryType type, const Gst::Structure& structure)
 Constructs a new custom query object.
static Glib::RefPtr< Gst::Querycreate_convert (Gst::Format format, gint64 value, Gst::Format dest_format)
 Constructs a new convert query object.
static Glib::RefPtr< Gst::Querycreate_position (Gst::Format format)
 Constructs a new query stream position query object.
static Glib::RefPtr< Gst::Querycreate_duration (Gst::Format format)
 Constructs a new stream duration query object to query in the given format.
static Glib::RefPtr< Gst::Querycreate_latency ()
 Constructs a new latency query object.
static Glib::RefPtr< Gst::Querycreate_seeking (Gst::Format format)
 Constructs a new query object for querying seeking properties of the stream.
static Glib::RefPtr< Gst::Querycreate_formats ()
 Constructs a new query object for querying formats of the stream.
static Glib::RefPtr< Gst::Querycreate_segment (Gst::Format format)
 Constructs a new segment query object.
static Glib::RefPtr< Gst::Querycreate_caps (Glib::RefPtr< Gst::Caps > filter)
 Constructs a new query object for querying the caps.
static Glib::RefPtr< Gst::Querycreate_accept_caps (Glib::RefPtr< Gst::Caps > filter)
 Constructs a new query object for querying if filter are accepted.

Additional Inherited Members

Public Types inherited from Gst::MiniObject
typedef sigc::slot< void > SlotFinalizer
Protected Member Functions inherited from Gst::Query
void operator delete (void*, std::size_t)
Protected Member Functions inherited from Gst::MiniObject
void operator delete (void*, std::size_t)
Static Protected Member Functions inherited from Gst::Query
template <class QueryType>
static Glib::RefPtr< QueryTypewrap (GstQuery* query, bool take_copy=false)

Detailed Description

A new scheduling query object.

See create() for more details.

Member Function Documentation

◆ add_scheduling_mode()

void Gst::QueryScheduling::add_scheduling_mode ( Gst::PadMode mode)

Add mode as aone of the supported scheduling modes to query.

Parameters
modeA Gst::PadMode.

◆ create()

Glib::RefPtr< Gst::QueryScheduling > Gst::QueryScheduling::create ( )
static

Constructs a new query object for querying the scheduling properties.

Returns
A new Gst::QueryScheduling.

◆ get_n_scheduling_modes()

guint Gst::QueryScheduling::get_n_scheduling_modes ( ) const

Retrieve the number of values currently stored in the scheduling mode array of the query's structure.

Returns
the scheduling mode array size as a guint.

◆ has_scheduling_mode()

bool Gst::QueryScheduling::has_scheduling_mode ( Gst::PadMode mode) const

Check if query has scheduling mode set.

Parameters
modethe scheduling mode.
Returns
true when mode is in the list of scheduling modes.

◆ has_scheduling_mode_with_flags()

bool Gst::QueryScheduling::has_scheduling_mode_with_flags ( Gst::PadMode mode,
Gst::SchedulingFlags flags ) const

Check if query has scheduling mode set and flags is set in query scheduling flags.

Parameters
modethe scheduling mode.
flagsGst::SchedulingFlags.

◆ parse()

void Gst::QueryScheduling::parse ( Gst::SchedulingFlags& flags,
gint & minsize,
gint & maxsize,
gint & align ) const

Set the scheduling properties.

Parameters
flagsGst::SchedulingFlags.
minsizethe suggested minimum size of pull requests.
maxsizethe suggested maximum size of pull requests.
alignthe suggested alignment of pull requests.

◆ parse_nth_scheduling_mode()

Gst::PadMode Gst::QueryScheduling::parse_nth_scheduling_mode ( guint index) const

Parse an available query and get the scheduling mode at index of the scheduling modes array.

Parameters
indexposition in the scheduling modes array to read
Returns
a Gst::PadMode of the scheduling mode at index.

◆ set()

void Gst::QueryScheduling::set ( Gst::SchedulingFlags flags,
gint minsize,
gint maxsize,
gint align )

Set the scheduling properties.

Parameters
flagsGst::SchedulingFlags.
minsizethe suggested minimum size of pull requests.
maxsizethe suggested maximum size of pull requests.
alignthe suggested alignment of pull requests.