Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor PipelineSourcesBintr to optionally support both Audio and/or Video using two Streammuxers #1305

Open
rjhowell44 opened this issue Nov 8, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@rjhowell44
Copy link
Collaborator

New symbolic constant to control the default media support for all Pipelines.

/**
 * @brief Default Media Support for all new Pipelines.
 */
#define DSL_DEFAULT_PIPELINE_MEDIA_TYPE                             DSL_MEDIA_TYPE_VIDEO_ONLY

New services to get and set the Streammuxer's enabled state. Note: all current pipeline streammux services will be renamed to videomux - covered in a separate issue.

/**
 * @brief Returns the current setting - enabled/disabled - for named Pipeline's
 * Video Streammux.
 * @param[in] name name of the Pipeline to query
 * @param[out] enable true if the Video Streammux is enabled, false if not.
 * @return DSL_RESULT_SUCCESS on successful query, one of 
 * DSL_RESULT_PIPELINE_RESULT on failure. 
 */
DslReturnType dsl_pipeline_videomux_enabled_get(const wchar_t* name, 
    boolean* enabled);

/**
 * @brief Updates the current setting - enabled/disabled - for named Pipeline's
 * Video Streammuxer. 
 * @param[in] name name of the Pipeline to update
 * @param[in] enable set to true to enable the Video Streammuxer, false to disable.
 * @return DSL_RESULT_SUCCESS on successful update, one of 
 * DSL_RESULT_PIPELINE_RESULT on failure. 
 */
DslReturnType dsl_pipeline_videomux_enabled_set(const wchar_t* name, 
    boolean enabled);

/**
 * @brief Returns the current setting - enabled/disabled - for named Pipeline's
 * Audio Streammuxer.
 * @param[in] name name of the Pipeline to query
 * @param[out] enable true if the Audio Streammuxer is enabled, false if not.
 * @return DSL_RESULT_SUCCESS on successful query, one of 
 * DSL_RESULT_PIPELINE_RESULT on failure. 
 */
DslReturnType dsl_pipeline_audiomux_enabled_get(const wchar_t* name, 
    boolean* enabled);

/**
 * @param[in] name name of the Pipeline to update
 * @brief Updates the current setting - enabled/disabled - for named Pipeline's
 * Audio Streammux. 
 * @param[in] enable set to true to enable the Audio Streammuxer, false to disable.
 * @return DSL_RESULT_SUCCESS on successful update, one of 
 * DSL_RESULT_PIPELINE_RESULT on failure. 
 */
DslReturnType dsl_pipeline_audiomux_enabled_set(const wchar_t* name, 
    boolean enabled);
@rjhowell44 rjhowell44 self-assigned this Nov 8, 2024
@rjhowell44 rjhowell44 added the enhancement New feature or request label Nov 8, 2024
@rjhowell44 rjhowell44 modified the milestones: v0.31.b.alpha, v0.01.beta Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant