![]() |
![]() |
![]() |
GStreamer Base Plugins 0.10 Library Reference Manual | ![]() |
---|---|---|---|---|
#include <gst/rtsp/gstrtsrange.h> enum GstRTSPRangeUnit; GstRTSPTimeRange; GstRTSPTime; enum GstRTSPTimeType; GstRTSPResult gst_rtsp_range_parse (const gchar *rangestr, GstRTSPTimeRange **range); void gst_rtsp_range_free (GstRTSPTimeRange *range);
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.
typedef struct { GstRTSPRangeUnit unit; GstRTSPTime min; GstRTSPTime max; } GstRTSPTimeRange;
A time range.
GstRTSPRangeUnit unit; | the time units used |
GstRTSPTime min; | the minimum interval |
GstRTSPTime max; | the maximum interval |
typedef struct { GstRTSPTimeType type; gdouble seconds; } GstRTSPTime;
A time indication.
GstRTSPTimeType type; | the time of the time |
gdouble seconds; | 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.
rangestr : | a range string to parse |
range : | location to hold the GstRTSPTimeRange result |
Returns : | GST_RTSP_OK on success. |
void gst_rtsp_range_free (GstRTSPTimeRange *range);
Free the memory alocated by range.
range : | a GstRTSPTimeRange |