/**
* gst_video_time_code_to_string:
- * @tc: #GstVideoTimeCode to convert
+ * @tc: A valid #GstVideoTimeCode to convert
*
* Returns: the SMPTE ST 2059-1:2015 string representation of @tc. That will
- * take the form hh:mm:ss:ff . The last separator (between seconds and frames)
+ * take the form hh:mm:ss:ff. The last separator (between seconds and frames)
* may vary:
*
* ';' for drop-frame, non-interlaced content and for drop-frame interlaced
* gst_video_time_code_to_date_time:
* @tc: A valid #GstVideoTimeCode to convert
*
- * The @tc.config->latest_daily_jam is required to be non-NULL.
+ * The @tc.config->latest_daily_jam is required to be non-NULL and non-0/1
+ * framerate is required.
*
- * Returns: the #GDateTime representation of @tc.
+ * Returns: (nullable): the #GDateTime representation of @tc or %NULL if @tc
+ * has no daily jam.
*
* Since: 1.10
*/
/**
* gst_video_time_code_init_from_date_time:
- * @tc: a #GstVideoTimeCode
+ * @tc: an uninitialized #GstVideoTimeCode
* @fps_n: Numerator of the frame rate
* @fps_d: Denominator of the frame rate
* @dt: #GDateTime to convert
* @flags: #GstVideoTimeCodeFlags
* @field_count: Interlaced video field count
*
- * The resulting config->latest_daily_jam is set to
- * midnight, and timecode is set to the given time.
+ * The resulting config->latest_daily_jam is set to midnight, and timecode is
+ * set to the given time.
*
* Will assert on invalid parameters, use gst_video_time_code_init_from_date_time_full()
* for being able to handle invalid parameters.
* gst_video_time_code_nsec_since_daily_jam:
* @tc: a valid #GstVideoTimeCode
*
- * Returns: how many nsec have passed since the daily jam of @tc .
+ * Returns: how many nsec have passed since the daily jam of @tc or -1 if no
+ * framerate is known for the timecode.
*
* Since: 1.10
*/
* gst_video_time_code_frames_since_daily_jam:
* @tc: a valid #GstVideoTimeCode
*
- * Returns: how many frames have passed since the daily jam of @tc .
+ * Returns: how many frames have passed since the daily jam of @tc, or -1 if no
+ * framerate is known for the timecode or an invalid drop-frame framerate is
+ * used.
*
* Since: 1.10
*/
* gst_video_time_code_increment_frame:
* @tc: a valid #GstVideoTimeCode
*
- * Adds one frame to @tc .
+ * Adds one frame to @tc.
*
* Since: 1.10
*/
* @frames: How many frames to add or subtract
*
* Adds or subtracts @frames amount of frames to @tc. tc needs to
- * contain valid data, as verified by #gst_video_time_code_is_valid.
+ * contain valid data, as verified by gst_video_time_code_is_valid().
*
* Since: 1.10
*/
/**
* gst_video_time_code_compare:
- * @tc1: a #GstVideoTimeCode
- * @tc2: another #GstVideoTimeCode
+ * @tc1: a valid #GstVideoTimeCode
+ * @tc2: another valid #GstVideoTimeCode with non-0/1 framerate
*
- * Compares @tc1 and @tc2 . If both have latest daily jam information, it is
+ * Compares @tc1 and @tc2. If both have latest daily jam information, it is
* taken into account. Otherwise, it is assumed that the daily jam of both
- * @tc1 and @tc2 was at the same time. Both time codes must be valid.
+ * @tc1 and @tc2 was at the same time. Both time codes must be valid and have
+ * a non-0/1 framerate.
*
* Returns: 1 if @tc1 is after @tc2, -1 if @tc1 is before @tc2, 0 otherwise.
*
*
* Returns: a new #GstVideoTimeCode with the given values.
* The values are not checked for being in a valid range. To see if your
- * timecode actually has valid content, use #gst_video_time_code_is_valid.
+ * timecode actually has valid content, use gst_video_time_code_is_valid().
*
* Since: 1.10
*/
/**
* gst_video_time_code_new_empty:
*
- * Returns: a new empty #GstVideoTimeCode
+ * Returns: a new empty, invalid #GstVideoTimeCode
*
* Since: 1.10
*/
* gst_video_time_code_new_from_string:
* @tc_str: The string that represents the #GstVideoTimeCode
*
- * Returns: a new #GstVideoTimeCode from the given string
+ * Returns: (nullable): a new #GstVideoTimeCode from the given string or %NULL
+ * if the string could not be passed.
*
* Since: 1.12
*/
*
* Initializes @tc with the given values.
* The values are not checked for being in a valid range. To see if your
- * timecode actually has valid content, use #gst_video_time_code_is_valid.
+ * timecode actually has valid content, use gst_video_time_code_is_valid().
*
* Since: 1.10
*/
* gst_video_time_code_clear:
* @tc: a #GstVideoTimeCode
*
- * Initializes @tc with empty/zero/NULL values.
+ * Initializes @tc with empty/zero/NULL values and frees any memory
+ * it might currently use.
*
* Since: 1.10
*/
* gst_video_time_code_copy:
* @tc: a #GstVideoTimeCode
*
- * Returns: a new #GstVideoTimeCode with the same values as @tc .
+ * Returns: a new #GstVideoTimeCode with the same values as @tc.
*
* Since: 1.10
*/
* gst_video_time_code_free:
* @tc: a #GstVideoTimeCode
*
- * Frees @tc .
+ * Frees @tc.
*
* Since: 1.10
*/
* adding ("00:09:00;02", "00:01:00:00") will return "00:10:00;00"
* because this time we can have an exact minute.
*
- * Returns: A new #GstVideoTimeCode with @tc_inter added.
+ * Returns: (nullable): A new #GstVideoTimeCode with @tc_inter added or %NULL
+ * if the interval can't be added.
*
* Since: 1.12
*/
*
* @tc_inter_str must only have ":" as separators.
*
- * Returns: a new #GstVideoTimeCodeInterval from the given string
+ * Returns: (nullable): a new #GstVideoTimeCodeInterval from the given string
+ * or %NULL if the string could not be passed.
*
* Since: 1.12
*/
* gst_video_time_code_interval_copy:
* @tc: a #GstVideoTimeCodeInterval
*
- * Returns: a new #GstVideoTimeCodeInterval with the same values as @tc .
+ * Returns: a new #GstVideoTimeCodeInterval with the same values as @tc.
*
* Since: 1.12
*/
* gst_video_time_code_interval_free:
* @tc: a #GstVideoTimeCodeInterval
*
- * Frees @tc .
+ * Frees @tc.
*
* Since: 1.12
*/