mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
clock: improve the GST_TIME_FORMAT/ARGS docs
This commit is contained in:
parent
1718abcbbb
commit
696a9a694f
1 changed files with 13 additions and 6 deletions
|
@ -205,15 +205,22 @@ G_STMT_START { \
|
|||
/**
|
||||
* GST_TIME_FORMAT:
|
||||
*
|
||||
* A format that can be used in printf like format strings to format
|
||||
* a #GstClockTime value.
|
||||
* A string that can be used in printf-like format strings to display a
|
||||
* #GstClockTime value in h:m:s format. Use GST_TIME_ARGS() to construct
|
||||
* the matching arguments.
|
||||
*
|
||||
* Example:
|
||||
* |[
|
||||
* printf("%" GST_TIME_FORMAT "\n", GST_TIME_ARGS(ts));
|
||||
* ]|
|
||||
*/
|
||||
#define GST_TIME_FORMAT "u:%02u:%02u.%09u"
|
||||
/**
|
||||
* GST_TIME_ARGS:
|
||||
* @t: a #GstClockTime
|
||||
*
|
||||
* Format @t for the GST_TIME_FORMAT format string.
|
||||
* Format @t for the #GST_TIME_FORMAT format string. Note: @t will be
|
||||
* evaluated more than once.
|
||||
*/
|
||||
#define GST_TIME_ARGS(t) \
|
||||
GST_CLOCK_TIME_IS_VALID (t) ? \
|
||||
|
|
Loading…
Reference in a new issue