deepstream-services-library
deepstream-services-library copied to clipboard
Implement new dsl_source_csi_sensor_id_get/set services to support multiple CSI cameras.
New CSI camera services to get/set the sensor-id
/**
* @brief Gets the sensor-id setting for the named CSI Source. A unique
* sensor-id is assigned to each CSI Source on creation, starting with 0. The
* default setting can be overridden by calling dsl_source_decode_uri_set. The
* call will fail if the given sensor-id is not unique. If a source is deleted,
* the sensor-id will be re-assigned to a new CSI Source if one is created.
* @param[in] name unique name of the CSI Source to query.
* @param[out] sensor_id current sensor-id setting. Default: 0.
* @return DSL_RESULT_SUCCESS on success, DSL_RESULT_SOURCE_RESULT otherwise.
*/
DslReturnType dsl_source_csi_sensor_id_get(const wchar_t* name,
uint* sensor_id);
/**
* @brief Sets the sensor-id setting for the named CSI Source. A unique
* sensor-id is assigned to each CSI Source on creation, starting with 0. This
* service will fail if the given sensor-id is not unique. If a source is deleted,
* the sensor-id will be re-assigned to a new CSI Source if one is created.
* @param[in] name unique name of the CSI Source to update.
* @param[in] sensor_id new sensor-id setting to use.
* @return DSL_RESULT_SUCCESS on success, DSL_RESULT_SOURCE_RESULT otherwise.
*/
DslReturnType dsl_source_csi_sensor_id_set(const wchar_t* name,
uint sensor_id);
Merged into v0.26.alpha