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

Implement new dsl_tiler_frame_numbering_enabled_get/set services

Open rjhowell44 opened this issue 2 years ago • 1 comments

Problem - the NVIDIA tiler plugin sets the frame-number to 0 for all outgoing frames. Solution - add new services to get/set a new feature of the DSL Tiler component, that when enabled, adds a new specialized pad probe handler to add an incrementing frame_number to each frame meta structure that crosses the Tiler's source pad.

Note: the frame-number will be reset each time the Tiler is linked (i.e when the parent Pipeline is called to play)

New services

/**
 * @brief Gets the current frame-numbering enabled setting for the named Tiler.
 * @param[in] name unique name of the Tiler to query.
 * @param[out] enabled if true, the Tiler will add an incrementing frame number
 * to each frame metadata structure -- for each buffer flowing over the Tiler's 
 * source pad -- overwriting the 0 value set by the NVIDIA Tiler plugin. 
 * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_TILER_RESULT
 */
DslReturnType dsl_tiler_frame_numbering_enabled_get(const wchar_t name,
    boolean* enabled);

/**
 * @brief Sets the frame-numbering enabled setting for the named Tiler.
 * @param[in] name unique name of the Tiler to update.
 * @param[in] enabled set to true to have the Tiler add an incrementing frame number
 * to each frame metadata structure -- for each buffer flowing over the Tiler's 
 * source pad -- overwriting the 0 value set by the NVIDIA Tiler plugin. 
 * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_TILER_RESULT
 */
DslReturnType dsl_tiler_frame_numbering_enabled_set(const wchar_t name,
    boolean enabled);

rjhowell44 avatar Aug 25 '22 19:08 rjhowell44

Merged into v0.26.alpha

rjhowell44 avatar Sep 27 '22 01:09 rjhowell44