Top |
Types and Values
enum | GstRTSPRangeUnit |
struct | GstRTSPTimeRange |
struct | GstRTSPTime |
struct | GstRTSPTime2 |
enum | GstRTSPTimeType |
Functions
gst_rtsp_range_parse ()
GstRTSPResult gst_rtsp_range_parse (const gchar *rangestr
,GstRTSPTimeRange **range
);
Parse rangestr
to a GstRTSPTimeRange.
gst_rtsp_range_get_times ()
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
gst_rtsp_range_to_string ()
gchar *
gst_rtsp_range_to_string (const GstRTSPTimeRange *range
);
Convert range
into a string representation.
gst_rtsp_range_convert_units ()
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.
gst_rtsp_range_free ()
void
gst_rtsp_range_free (GstRTSPTimeRange *range
);
Free the memory allocated by range
.
Types and Values
struct GstRTSPTimeRange
struct GstRTSPTimeRange { GstRTSPRangeUnit unit; GstRTSPTime min; GstRTSPTime max; GstRTSPTime2 min2; GstRTSPTime2 max2; };
A time range.
Members
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
struct GstRTSPTime { GstRTSPTimeType type; gdouble seconds; };
A time indication.
Members
GstRTSPTimeType |
the time of the time |
|
gdouble |
seconds when |
struct GstRTSPTime2
struct GstRTSPTime2 { gdouble frames; guint year; guint month; guint day; };
Extra fields for a time indication.
Since: 1.2