You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Create a new queue element and set a propertyretval=dsl_gst_element_new('my-queue', 'queue')
retval=dsl_gst_element_property_boolean_set('my-queue', 'flush-on-eos', True)
# Create a new Identity diagnostics elementretval=dsl_gst_element_new('my-identify-module', 'identity')
# Create a new GStreamer bin and add the elements to it.retval=dsl_gst_bin_new_element_add_many('my-custom-bin',
['my-queue', 'my-identity', None])
# Add the Bin to the Pipeline or Branch along with other components.
There will be certain constraints on what type of plugins can be supported, for example, no Tees, Muxers, Streammuxers, Aggregators, etc.
New Symbolic Constants for the GStreammer Element and Bin Classes
/** * @brief Creates a uniquely named GStreamer Element from a plugin factory name. * @param[in] name unique name for the Element to create * @param[in] factory_name factory (plugin) name for the Element to create * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_GST_ELEMENT_RESULT otherwise. */DslReturnTypedsl_gst_element_new(constwchar_t*name, constwchar_t*factory_name);
/** * @brief Deletes a GStreamer Element by name. * @param[in] name unique name of the Element to delete. * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_PIPELINE_RESULT otherwise. */DslReturnTypedsl_gst_element_delete(constwchar_t*name);
/** * @brief deletes a NULL terminated list of GStreamer Elements * @param[in] names NULL terminated list of names to delete * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_PIPELINE_RESULT */DslReturnTypedsl_gst_element_delete_many(constwchar_t**names);
/** * @brief deletes all GStreamer Elements in memory * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_COMPONENT_RESULT */DslReturnTypedsl_gst_element_delete_all();
/** * @brief returns the current number of GStreamer Elements * @return size of the list of GStreamer Bins */uintdsl_gst_element_list_size();
/** * @brief Gets the GST_OBJECT pointer to the named Element. * @param[in] name unique name for the Element to query. * @param[out] element GST_OBJECT point the the name Element. * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_GST_ELEMENT_RESULT otherwise. */DslReturnTypedsl_gst_element_get(constwchar_t*name, void**element);
/** * @brief Gets a named boolean property from a named Element. * @param[in] name unique name for the Element to query. * @param[in] property unique name of the property to query. * @param[out] value current value for the named property. * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_GST_ELEMENT_RESULT otherwise. */DslReturnTypedsl_gst_element_property_boolean_get(constwchar_t*name,
constwchar_t*property, boolean*value);
/** * @brief Sets a named boolean property for a named Element. * @param[in] name unique name for the Element to update. * @param[in] property unique name of the property to update. * @param[in] value new value for the named property. * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_GST_ELEMENT_RESULT otherwise. */DslReturnTypedsl_gst_element_property_boolean_set(constwchar_t*name,
constwchar_t*property, booleanvalue);
/** * @brief Gets a named float property from a named Element. * @param[in] name unique name for the Element to query. * @param[in] property unique name of the property to query. * @param[out] value current value for the named property. * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_GST_ELEMENT_RESULT otherwise. */DslReturnTypedsl_gst_element_property_float_get(constwchar_t*name,
constwchar_t*property, float*value);
/** * @brief Sets a named float property for a named Element. * @param[in] name unique name for the Element to update. * @param[in] property unique name of the property to update. * @param[in] value new value for the named property. * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_GST_ELEMENT_RESULT otherwise. */DslReturnTypedsl_gst_element_property_float_set(constwchar_t*name,
constwchar_t*property, floatvalue);
/** * @brief Gets a named unsigned int property from a named Element. * @param[in] name unique name for the Element to query. * @param[in] property unique name of the property to query. * @param[out] value current value for the named property. * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_GST_ELEMENT_RESULT otherwise. */DslReturnTypedsl_gst_element_property_uint_get(constwchar_t*name,
constwchar_t*property, uint*value);
/** * @brief Sets a named unsigned int property for a named Element. * @param[in] name unique name for the Element to update. * @param[in] property unique name of the property to update. * @param[in] value new value for the named property. * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_GST_ELEMENT_RESULT otherwise. */DslReturnTypedsl_gst_element_property_uint_set(constwchar_t*name,
constwchar_t*property, uintvalue);
/** * @brief Gets a named signed int property from a named Element. * @param[in] name unique name for the Element to query. * @param[in] property unique name of the property to query. * @param[out] value current value for the named property. * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_GST_ELEMENT_RESULT otherwise. */DslReturnTypedsl_gst_element_property_int_get(constwchar_t*name,
constwchar_t*property, int*value);
/** * @brief Sets a named signed int property for a named Element. * @param[in] name unique name for the Element to update. * @param[in] property unique name of the property to update. * @param[in] value new value for the named property. * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_GST_ELEMENT_RESULT otherwise. */DslReturnTypedsl_gst_element_property_int_set(constwchar_t*name,
constwchar_t*property, intvalue);
/** * @brief Gets a named uint64_t property from a named Element. * @param[in] name unique name for the Element to query. * @param[in] property unique name of the property to query. * @param[out] value current value for the named property. * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_GST_ELEMENT_RESULT otherwise. */DslReturnTypedsl_gst_element_property_uint64_get(constwchar_t*name,
constwchar_t*property, uint64_t*value);
/** * @brief Sets a named uint64_t property for a named Element. * @param[in] name unique name for the Element to update. * @param[in] property unique name of the property to update. * @param[in] value new value for the named property. * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_GST_ELEMENT_RESULT otherwise. */DslReturnTypedsl_gst_element_property_uint64_set(constwchar_t*name,
constwchar_t*property, uint64_tvalue);
/** * @brief Gets a named signed int64_t property from a named Element. * @param[in] name unique name for the Element to query. * @param[in] property unique name of the property to query. * @param[out] value current value for the named property. * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_GST_ELEMENT_RESULT otherwise. */DslReturnTypedsl_gst_element_property_int64_get(constwchar_t*name,
constwchar_t*property, int64_t*value);
/** * @brief Sets a named signed int64_t property for a named Element. * @param[in] name unique name for the Element to update. * @param[in] property unique name of the property to update. * @param[in] value new value for the named property. * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_GST_ELEMENT_RESULT otherwise. */DslReturnTypedsl_gst_element_property_int64_set(constwchar_t*name,
constwchar_t*property, int64_tvalue);
/** * @brief Gets a named string property from a named Element. * @param[in] name unique name for the Element to query. * @param[in] property unique name of the property to query. * @param[out] value current value for the named property. * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_GST_ELEMENT_RESULT otherwise. */DslReturnTypedsl_gst_element_property_string_get(constwchar_t*name,
constwchar_t*property, constwchar_t**value);
/** * @brief Sets a named string property for a named Element. * @param[in] name unique name for the Element to update. * @param[in] property unique name of the property to update. * @param[in] value new value for the named property. * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_GST_ELEMENT_RESULT otherwise. */DslReturnTypedsl_gst_element_property_string_set(constwchar_t*name,
constwchar_t*property, constwchar_t*value);
/** * @brief Adds a pad-probe-handler to a named GStreamer Element. * A GStreamer Element can have multiple Sink and Source pad-probe-handlers * @param[in] name unique name of the GStreamer Element to update * @param[in] handler callback function to process pad probe data * @param[in] pad pad to add the handler to; DSL_PAD_SINK | DSL_PAD SRC * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_GST_BIN_RESULT otherwise. */DslReturnTypedsl_gst_element_pph_add(constwchar_t*name,
constwchar_t*handler, uintpad);
/** * @brief Removes a pad-probe-handler from a named GStreamer Element. * @param[in] name unique name of the GStreamer Element to update * @param[in] handler pad-probe-handler to remove * @param[in] pad pad to remove the handler from; DSL_PAD_SINK | DSL_PAD SRC * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_GST_BIN_RESULT otherwise. */DslReturnTypedsl_gst_element_pph_remove(constwchar_t*name,
constwchar_t*handler, uintpad);
/** * @brief creates a new, uniquely named GStreamer Bin * @param[in] name unique name for the new GStreamer Bin * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_GST_BIN_RESULT otherwise. */DslReturnTypedsl_gst_bin_new(constwchar_t*name);
/** * @brief creates a new GStreamer Bin and adds a list of Elements to it. * @param[in] name name of the GStreamer Bin to update * @param[in] elements NULL terminated array of Element names to add * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_GST_BIN_RESULT otherwise. */DslReturnTypedsl_gst_bin_new_element_add_many(constwchar_t*name,
constwchar_t**components);
/** * @brief adds a single Element to a GStreamer Bin * @param[in] name name of the GStreamer Bin to update * @param[in] element Element names to add * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_GST_BIN_RESULT otherwise. */DslReturnTypedsl_gst_bin_element_add(constwchar_t*name,
constwchar_t*component);
/** * @brief adds a list of Elements to a GStreamer Bin * @param[in] name name of the GStreamer Bin to update * @param[in] components NULL terminated array of element names to add * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_GST_BIN_RESULT otherwise. */DslReturnTypedsl_gst_bin_element_add_many(constwchar_t*name,
constwchar_t**components);
/** * @brief removes an Element from a GStreamer Bin * @param[in] name name of the GStreamer Bin to update * @param[in] element name of the Element to remove * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_GST_BIN_RESULT otherwise. */DslReturnTypedsl_gst_bin_element_remove(constwchar_t*name,
constwchar_t*component);
/** * @brief removes a list of Elements from a GStreamer Bin * @param[in] name name of the GStreamer Bin to update * @param[in] components NULL terminated array of Element names to remove * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_GST_BIN_RESULT otherwise. */DslReturnTypedsl_gst_bin_element_remove_many(constwchar_t*name,
constwchar_t**components);
The text was updated successfully, but these errors were encountered:
New DSL GStreamer API to allow users to create Custom GStreamer Bins with Elements created from proprietary or other GStreamer plugins.
Using a Queue and Identify plugin for example.
There will be certain constraints on what type of plugins can be supported, for example, no Tees, Muxers, Streammuxers, Aggregators, etc.
New Symbolic Constants for the GStreammer Element and Bin Classes
The text was updated successfully, but these errors were encountered: