Just in case we resurrect this later.
/* index might change on-the-fly, although that would be nutty app ... */
GST_BASE_PARSE_INDEX_LOCK (parse);
gst_index_add_associationv (parse->priv->index, parse->priv->index_id,
- (key) ? GST_ASSOCIATION_FLAG_KEY_UNIT : GST_ASSOCIATION_FLAG_DELTA_UNIT,
- 2, (const GstIndexAssociation *) &associations);
+ (key) ? GST_INDEX_ASSOCIATION_FLAG_KEY_UNIT :
+ GST_INDEX_ASSOCIATION_FLAG_DELTA_UNIT, 2,
+ (const GstIndexAssociation *) &associations);
GST_BASE_PARSE_INDEX_UNLOCK (parse);
if (key) {
entry = gst_index_get_assoc_entry (parse->priv->index,
parse->priv->index_id,
before ? GST_INDEX_LOOKUP_BEFORE : GST_INDEX_LOOKUP_AFTER,
- GST_ASSOCIATION_FLAG_KEY_UNIT, GST_FORMAT_TIME, time);
+ GST_INDEX_ASSOCIATION_FLAG_KEY_UNIT, GST_FORMAT_TIME, time);
}
if (entry) {
* Returns: a pointer to the newly added entry in the index.
*/
GstIndexEntry *
-gst_index_add_associationv (GstIndex * index, gint id, GstAssocFlags flags,
- gint n, const GstIndexAssociation * list)
+gst_index_add_associationv (GstIndex * index, gint id,
+ GstIndexAssociationFlags flags, gint n, const GstIndexAssociation * list)
{
GstIndexEntry *entry;
* Returns: a pointer to the newly added entry in the index.
*/
GstIndexEntry *
-gst_index_add_association (GstIndex * index, gint id, GstAssocFlags flags,
- GstFormat format, gint64 value, ...)
+gst_index_add_association (GstIndex * index, gint id,
+ GstIndexAssociationFlags flags, GstFormat format, gint64 value, ...)
{
va_list args;
GstIndexEntry *entry;
*/
GstIndexEntry *
gst_index_get_assoc_entry (GstIndex * index, gint id,
- GstIndexLookupMethod method, GstAssocFlags flags,
+ GstIndexLookupMethod method, GstIndexAssociationFlags flags,
GstFormat format, gint64 value)
{
g_return_val_if_fail (GST_IS_INDEX (index), NULL);
*/
GstIndexEntry *
gst_index_get_assoc_entry_full (GstIndex * index, gint id,
- GstIndexLookupMethod method, GstAssocFlags flags,
+ GstIndexLookupMethod method, GstIndexAssociationFlags flags,
GstFormat format, gint64 value, GCompareDataFunc func, gpointer user_data)
{
GstIndexClass *iclass;
};
/**
- * GstAssocFlags:
- * @GST_ASSOCIATION_FLAG_NONE: no extra flags
- * @GST_ASSOCIATION_FLAG_KEY_UNIT: the entry marks a key unit, a key unit is one
+ * GstIndexAssociationFlags:
+ * @GST_INDEX_ASSOCIATION_FLAG_NONE: no extra flags
+ * @GST_INDEX_ASSOCIATION_FLAG_KEY_UNIT: the entry marks a key unit, a key unit is one
* that marks a place where one can randomly seek to.
- * @GST_ASSOCIATION_FLAG_DELTA_UNIT: the entry marks a delta unit, a delta unit
+ * @GST_INDEX_ASSOCIATION_FLAG_DELTA_UNIT: the entry marks a delta unit, a delta unit
* is one that marks a place where one can relatively seek to.
- * @GST_ASSOCIATION_FLAG_LAST: extra user defined flags should start here.
+ * @GST_INDEX_ASSOCIATION_FLAG_LAST: extra user defined flags should start here.
*
* Flags for an association entry.
*/
typedef enum {
- GST_ASSOCIATION_FLAG_NONE = 0,
- GST_ASSOCIATION_FLAG_KEY_UNIT = (1 << 0),
- GST_ASSOCIATION_FLAG_DELTA_UNIT = (1 << 1),
+ GST_INDEX_ASSOCIATION_FLAG_NONE = 0,
+ GST_INDEX_ASSOCIATION_FLAG_KEY_UNIT = (1 << 0),
+ GST_INDEX_ASSOCIATION_FLAG_DELTA_UNIT = (1 << 1),
/* new flags should start here */
- GST_ASSOCIATION_FLAG_LAST = (1 << 8)
-} GstAssocFlags;
+ GST_INDEX_ASSOCIATION_FLAG_LAST = (1 << 8)
+} GstIndexAssociationFlags;
/**
* GST_INDEX_FORMAT_FORMAT:
gint nassocs;
GstIndexAssociation
*assocs;
- GstAssocFlags flags;
+ GstIndexAssociationFlags flags;
} assoc;
struct {
gchar *key;
void (*add_entry) (GstIndex *index, GstIndexEntry *entry);
GstIndexEntry* (*get_assoc_entry) (GstIndex *index, gint id,
- GstIndexLookupMethod method, GstAssocFlags flags,
+ GstIndexLookupMethod method, GstIndexAssociationFlags flags,
GstFormat format, gint64 value,
GCompareDataFunc func,
gpointer user_data);
#endif
static
-GstIndexEntry* gst_index_add_associationv (GstIndex * index, gint id, GstAssocFlags flags,
+GstIndexEntry* gst_index_add_associationv (GstIndex * index, gint id, GstIndexAssociationFlags flags,
gint n, const GstIndexAssociation * list);
#if 0
-GstIndexEntry* gst_index_add_association (GstIndex *index, gint id, GstAssocFlags flags,
+GstIndexEntry* gst_index_add_association (GstIndex *index, gint id, GstIndexAssociationFlags flags,
GstFormat format, gint64 value, ...)
GstIndexEntry* gst_index_add_object (GstIndex *index, gint id, gchar *key,
GType type, gpointer object);
static
GstIndexEntry* gst_index_get_assoc_entry (GstIndex *index, gint id,
- GstIndexLookupMethod method, GstAssocFlags flags,
+ GstIndexLookupMethod method, GstIndexAssociationFlags flags,
GstFormat format, gint64 value);
static
GstIndexEntry* gst_index_get_assoc_entry_full (GstIndex *index, gint id,
- GstIndexLookupMethod method, GstAssocFlags flags,
+ GstIndexLookupMethod method, GstIndexAssociationFlags flags,
GstFormat format, gint64 value,
GCompareDataFunc func,
gpointer user_data);
static void gst_mem_index_add_entry (GstIndex * index, GstIndexEntry * entry);
static GstIndexEntry *gst_mem_index_get_assoc_entry (GstIndex * index, gint id,
- GstIndexLookupMethod method, GstAssocFlags flags,
+ GstIndexLookupMethod method, GstIndexAssociationFlags flags,
GstFormat format, gint64 value, GCompareDataFunc func, gpointer user_data);
#define CLASS(mem_index) GST_MEM_INDEX_CLASS (G_OBJECT_GET_CLASS (mem_index))
static GstIndexEntry *
gst_mem_index_get_assoc_entry (GstIndex * index, gint id,
GstIndexLookupMethod method,
- GstAssocFlags flags,
+ GstIndexAssociationFlags flags,
GstFormat format, gint64 value, GCompareDataFunc func, gpointer user_data)
{
GstMemIndex *memindex = GST_MEM_INDEX (index);