Top |
enum | GstRTSPRangeUnit |
struct | GstRTSPTimeRange |
struct | GstRTSPTime |
struct | GstRTSPTime2 |
enum | GstRTSPTimeType |
GstRTSPResult gst_rtsp_range_parse (const gchar *rangestr
,GstRTSPTimeRange **range
);
Parse rangestr
to a GstRTSPTimeRange.
gboolean gst_rtsp_range_get_times (const GstRTSPTimeRange *range
,GstClockTime *min
,GstClockTime *max
);
Retrieve the minimum and maximum values from range
converted to
GstClockTime in min
and max
.
A value of GST_CLOCK_TIME_NONE
will be used to signal GST_RTSP_TIME_NOW
and GST_RTSP_TIME_END for min
and max
respectively.
UTC times will be converted to nanoseconds since 1900.
Since: 1.2
gchar *
gst_rtsp_range_to_string (const GstRTSPTimeRange *range
);
Convert range
into a string representation.
gboolean gst_rtsp_range_convert_units (GstRTSPTimeRange *range
,GstRTSPRangeUnit unit
);
Converts the range in-place between different types of units. Ranges containing the special value GST_RTSP_TIME_NOW can not be converted as these are only valid for GST_RTSP_RANGE_NPT.
void
gst_rtsp_range_free (GstRTSPTimeRange *range
);
Free the memory allocated by range
.
struct GstRTSPTimeRange { GstRTSPRangeUnit unit; GstRTSPTime min; GstRTSPTime max; GstRTSPTime2 min2; GstRTSPTime2 max2; };
A time range.
GstRTSPRangeUnit |
the time units used |
|
GstRTSPTime |
the minimum interval |
|
GstRTSPTime |
the maximum interval |
|
GstRTSPTime2 |
extra fields in the minimum interval (Since: 1.2) |
|
GstRTSPTime2 |
extra fields in the maximum interval (Since: 1.2) |
struct GstRTSPTime { GstRTSPTimeType type; gdouble seconds; };
A time indication.
GstRTSPTimeType |
the time of the time |
|
gdouble |
seconds when |
struct GstRTSPTime2 { gdouble frames; guint year; guint month; guint day; };
Extra fields for a time indication.
Since: 1.2