deepstream-services-library icon indicating copy to clipboard operation
deepstream-services-library copied to clipboard

Implement new dsl_ode_trigger_limit_frame_get/set services

Open rjhowell44 opened this issue 2 years ago • 1 comments

New services to set/get a frame-limit for a named ODE Trigger. Similar to the event-limit, the Trigger will be auto-disabled once the frame limit (if non-zero, default) has been reached.

The limit-listener and

New services

/**
 * @brief Gets the current frame limit setting for the ODE Trigger
 * @param[in] name unique name of the ODE Trigger to query
 * @param[out] limit returns the current trigger frame limit in use
 * @return DSL_RESULT_SUCCESS on successful query, 
 * DSL_RESULT_ODE_TRIGGER_RESULT otherwise.
 */
DslReturnType dsl_ode_trigger_limit_frame_get(const wchar_t* name, uint* limit);

/**
 * @brief Sets the frame limit for the named ODE Trigger to use.
 * @param[in] name unique name of the ODE Trigger to update
 * @param[in] limit new frame limit to use. Setting the limit to a 
 * value less that the current trigger frame count will effectively 
 * disable the trigger until reset.
 * @return DSL_RESULT_SUCCESS on successful update, 
 * DSL_RESULT_ODE_TRIGGER_RESULT otherwise.
 */
DslReturnType dsl_ode_trigger_limit_frame_set(const wchar_t* name, uint limit);

rjhowell44 avatar Sep 12 '22 19:09 rjhowell44

Merged into v0.26.alpha

rjhowell44 avatar Sep 27 '22 00:09 rjhowell44