GStreamer Base Plugins 0.10 Library Reference Manual | ||||
---|---|---|---|---|
Top | Description |
#include <gst/rtsp/gstrtsrange.h> enum GstRTSPRangeUnit; struct GstRTSPTimeRange; struct GstRTSPTime; enum GstRTSPTimeType; GstRTSPResult gst_rtsp_range_parse (const gchar *rangestr
,GstRTSPTimeRange **range
); gchar * gst_rtsp_range_to_string (const GstRTSPTimeRange *range
); void gst_rtsp_range_free (GstRTSPTimeRange *range
);
Provides helper functions to deal with time ranges. Last reviewed on 2007-07-25 (0.10.14)
typedef enum { GST_RTSP_RANGE_SMPTE, GST_RTSP_RANGE_SMPTE_30_DROP, GST_RTSP_RANGE_SMPTE_25, GST_RTSP_RANGE_NPT, GST_RTSP_RANGE_CLOCK } GstRTSPRangeUnit;
Different possible time range units.
struct GstRTSPTimeRange { GstRTSPRangeUnit unit; GstRTSPTime min; GstRTSPTime max; };
A time range.
GstRTSPRangeUnit |
the time units used |
GstRTSPTime |
the minimum interval |
GstRTSPTime |
the maximum interval |
struct GstRTSPTime { GstRTSPTimeType type; gdouble seconds; };
A time indication.
GstRTSPTimeType |
the time of the time |
gdouble |
seconds when type is GST_RTSP_TIME_SECONDS |
typedef enum { GST_RTSP_TIME_SECONDS, GST_RTSP_TIME_NOW, GST_RTSP_TIME_END } GstRTSPTimeType;
Possible time types.
GstRTSPResult gst_rtsp_range_parse (const gchar *rangestr
,GstRTSPTimeRange **range
);
Parse rangestr
to a GstRTSPTimeRange.
|
a range string to parse |
|
location to hold the GstRTSPTimeRange result |
Returns : |
GST_RTSP_OK on success. |
gchar * gst_rtsp_range_to_string (const GstRTSPTimeRange *range
);
Convert range
into a string representation.
|
a GstRTSPTimeRange |
Returns : |
The string representation of range . g_free() after usage. |
Since 0.10.23
void gst_rtsp_range_free (GstRTSPTimeRange *range
);
Free the memory alocated by range
.
|
a GstRTSPTimeRange |