GstTimeCache
Name
GstTimeCache -- Cache time and byteoffsets.
Description
This class is used by plugins to manage time vs byte offsets. It is mainly
used for efficient seeking.
Details
struct GstTimeCacheEntry
struct GstTimeCacheEntry {
guint64 location;
gint64 timestamp;
}; |
struct GstTimeCacheGroup
struct GstTimeCacheGroup {
/* unique ID of group in cache */
gint groupnum;
/* list of entries */
GList *entries;
/* the certainty level of the group */
GstTimeCacheCertainty certainty;
/* peer group that contains more certain entries */
gint peergroup;
/* range variables */
gint64 mintimestamp,maxtimestamp;
guint64 minlocation,maxlocation;
}; |
enum GstTimeCacheCertainty
typedef enum {
GST_TIME_CACHE_UNKNOWN,
GST_TIME_CACHE_CERTAIN,
GST_TIME_CACHE_FUZZY_LOCATION,
GST_TIME_CACHE_FUZZY_TIMESTAMP,
GST_TIME_CACHE_FUZZY
} GstTimeCacheCertainty; |
gst_time_cache_new ()
Create a new tilecache object
gst_time_cache_get_group ()
Get the id of the current group.
gst_time_cache_new_group ()
Create a new group for the given timecache. It will be
set as the current group.
gst_time_cache_set_group ()
gboolean gst_time_cache_set_group (GstTimeCache *tc,
gint groupnum); |
Set the current groupnumber to the given argument.
gst_time_cache_set_certainty ()
Set the certainty of the given timecache.
gst_time_cache_get_certainty ()
Get the certainty of the given timecache.
gst_time_cache_add_entry ()
void gst_time_cache_add_entry (GstTimeCache *tc,
guint64 location,
gint64 timestamp); |
Associate the given timestamp with the given location in the
timecache.
gst_time_cache_find_location ()
gboolean gst_time_cache_find_location (GstTimeCache *tc,
guint64 location,
gint64 *timestamp); |
Look up the associated timestamp for the given location in the
timecache.
gst_time_cache_find_timestamp ()
gboolean gst_time_cache_find_timestamp (GstTimeCache *tc,
gint64 timestamp,
guint64 *location); |
Look up the associated location for the given timestamp in the
timecache.