upipe/upipe_helper_subpipe.h header reference
Upipe helper functions for upipe subpipes More
Header inclusion
Members
Macro
Description
Members detail
This macro is declared in upipe/upipe_helper_subpipe.h source file, line 158.
This macro declares nine functions dealing with subpipes of split and join pipes.
You must add two members to your private pipe structure:
Youe must add one member to your private subpipe structure:
You must also declare UPIPE_HELPER_UPIPE on both the pipe and the subpipe.
Supposing the name of your pipe structure is upipe_foo, and subpipe structure is upipe_foo_output, it declares:
struct upipe *upipe_foo_to_output_mgr(struct upipe_foo *s)
Returns a pointer to the public subpipe manager.
struct upipe_foo *upipe_foo_from_output_mgr(struct upipe_mgr *mgr)
Returns a pointer to the private upipe_foo structure from the subpipe manager.
Returns a pointer to the private upipe_foo structure from the chaining structure.
struct uchain *upipe_foo_output_to_uchain(struct upipe_foo_output *s)
Returns a pointer to the chaining structure of the subpipe.
Initializes the private members of upipe_foo_output for this helper and adds the output to the list in upipe_foo.
Typically called from your upipe_foo_output_control() handler, such as:
Cleans up the private members of upipe_foo_output for this helper and removes the output from the list in upipe_foo.
Initializes the list in upipe_foo.
Typically called from your upipe_foo_output_control() handler, such as:
Typically called from your upipe_foo_output_control() handler, such as:
Throws the given event from all subpipes.
Cleans up the list in upipe_foo.
Parameters list:
- STRUCTURE: name of your private upipe structure
- STRUCTURE_SUB: name of your private subpipe structure
- SUB: suffix to use in upipe_foo_init_sub_XXX and upipe_foo_clean_sub_XXX
- MGR: name of the struct upipe_mgr member of your private upipe structure
- ULIST: name of the struct uchain member of your private upipe structure
- UCHAIN: name of the struct uchain member of your private subpipe structure
- UPIPE: name of the struct upipe field of your private upipe structure
This macro is declared in upipe/upipe_helper_subpipe.h source file, line 31.