Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GstLAL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lscsoft
GstLAL
Commits
9179471d
Commit
9179471d
authored
10 years ago
by
Kipp Cannon
Browse files
Options
Downloads
Patches
Plain Diff
gstlalcollectpads.c: improve documentation
parent
e96e6fdb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gstlal/lib/gstlal/gstlalcollectpads.c
+43
-19
43 additions, 19 deletions
gstlal/lib/gstlal/gstlalcollectpads.c
with
43 additions
and
19 deletions
gstlal/lib/gstlal/gstlalcollectpads.c
+
43
−
19
View file @
9179471d
...
...
@@ -22,9 +22,14 @@
/**
* SECTION:gstlalcollectpads
*
* Custom GstCollectData structure with extra metadata required for
* synchronous mixing of input streams.
* @short_description: Custom #GstCollectPads to assist with combining
* input streams synchronously
*
* Custom GstCollectData structure with extra metadata to facilitate
* synchronous mixing of input streams. In fact, only the #GstCollectData
* structure is customized, replaced here with the #GstLALCollectData
* structure; however, a few shim functions are required to adapt function
* signatures to accept and return pointers to the custom type.
*/
...
...
@@ -62,8 +67,8 @@
* @size: passed to #gst_collect_pads_add_pad()
* @destroy_notify: passed to#gst_collect_pads_add_pad()
*
* Wraps #gst_collect_pads_add_pad(), initializing the additional
fields in
* the custom #GstLALCollectData object.
* Wraps #gst_collect_pads_add_pad
_full
(), initializing the additional
*
fields in
the custom #GstLALCollectData object.
*
* Returns: #GstLALCollectData associated with the #GstPad.
*/
...
...
@@ -104,7 +109,7 @@ GstLALCollectData *gstlal_collect_pads_add_pad_full(GstCollectPads *pads, GstPad
* @pad: passed to #gstlal_collect_pads_add_pad_full()
* @size: passed to #gstlal_collect_pads_add_pad_full()
*
* Equivalent o
f
#gst_collect_pads_add_pad().
* Equivalent
t
o #gst_collect_pads_add_pad().
*
* Returns: #GstLALCollectData associated with the #GstPad.
*/
...
...
@@ -121,7 +126,7 @@ GstLALCollectData *gstlal_collect_pads_add_pad(GstCollectPads *pads, GstPad *pad
* @pads: passed to #gst_collect_pads_remove_pad()
* @pad: passed to #gst_collect_pads_remove_pad()
*
*
Wraps
#gst_collect_pads_remove_pad().
*
Equivalent to
#gst_collect_pads_remove_pad().
*
* Returns: TRUE if #GstPad was removed successfully, FALSE if not.
*/
...
...
@@ -319,10 +324,6 @@ done:
* Computes the earliest of the start and of the end times of the
* #GstCollectPad's input buffers.
*
* The return value indicates the successful execution of this function.
* TRUE indicates the function was able to procede to a successful
* conclusion, FALSE indicates that one or more errors occured.
*
* Upon the successful completion of this function, both time parameters
* will be set to #GST_CLOCK_TIME_NONE if all input streams are at EOS.
* Otherwise, if at least one stream is not at EOS, the times are set to
...
...
@@ -335,18 +336,41 @@ done:
* therefore only after at least one pad has received a buffer, and
* therefore the "no data available" condition is only seen at EOS.
*
* Summary:
*
* condition return value times
* ----------------------------------
* bad input FALSE ?
* EOS TRUE GST_CLOCK_TIME_NONE
* success TRUE >= 0
* <table><title>Return Values</title>
* <tgroup cols='3' align='center'>
* <thead>
* <row>
* <entry>condition</entry>
* <entry>return value</entry>
* <entry>t_end, t_start</entry>
* </row>
* </thead>
* <tbody>
* <row>
* <entry>bad input</entry>
* <entry>FALSE</entry>
* <entry>undefined</entry>
* </row>
* <row>
* <entry>EOS</entry>
* <entry>TRUE</entry>
* <entry>#GST_CLOCK_TIME_NONE</entry>
* </row>
* <row>
* <entry>success</entry>
* <entry>TRUE</entry>
* <entry>≥0</entry>
* </row>
* </tbody>
* </tgroup>
* </table>
*
* Should be called with the #GstCollectPads' lock held (i.e., from the
* collected() method).
*
* Returns: see above.
* Returns: TRUE indicates the function was able to procede to a
* successful conclusion, FALSE indicates that one or more errors occured
* (see above).
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment