2002-12-12 22:16:11 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
|
|
|
|
* 2000 Wim Taymans <wim.taymans@chello.be>
|
|
|
|
*
|
|
|
|
* gstindex.h: Header for GstIndex, base class to handle efficient
|
|
|
|
* storage or caching of seeking information.
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
2012-11-03 20:44:48 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
2002-12-12 22:16:11 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GST_INDEX_H__
|
|
|
|
#define __GST_INDEX_H__
|
|
|
|
|
|
|
|
#include <gst/gstobject.h>
|
|
|
|
#include <gst/gstformat.h>
|
|
|
|
#include <gst/gstpluginfeature.h>
|
2018-03-12 23:03:26 +00:00
|
|
|
#include <gst/base/base-prelude.h>
|
2002-12-12 22:16:11 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
2004-03-15 14:43:35 +00:00
|
|
|
|
2010-01-21 15:19:44 +00:00
|
|
|
#define GST_TYPE_INDEX (gst_index_get_type ())
|
|
|
|
#define GST_INDEX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_INDEX, GstIndex))
|
|
|
|
#define GST_IS_INDEX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_INDEX))
|
|
|
|
#define GST_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_INDEX, GstIndexClass))
|
|
|
|
#define GST_IS_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_INDEX))
|
|
|
|
#define GST_INDEX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_INDEX, GstIndexClass))
|
2004-03-15 14:43:35 +00:00
|
|
|
|
2004-02-18 05:26:59 +00:00
|
|
|
#define GST_TYPE_INDEX_ENTRY (gst_index_entry_get_type())
|
2004-03-15 14:43:35 +00:00
|
|
|
|
2002-12-12 22:16:11 +00:00
|
|
|
typedef struct _GstIndexEntry GstIndexEntry;
|
|
|
|
typedef struct _GstIndexGroup GstIndexGroup;
|
|
|
|
typedef struct _GstIndex GstIndex;
|
|
|
|
typedef struct _GstIndexClass GstIndexClass;
|
|
|
|
|
more docs inlined, splitted gstindex.{c,h}
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/.cvsignore:
* gst/Makefile.am:
* gst/gst.h:
* gst/gstbin.c:
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_class_init):
* gst/gstindex.h:
* gst/gstindexfactory.c: (gst_index_factory_get_type),
(gst_index_factory_class_init), (gst_index_factory_init),
(gst_index_factory_finalize), (gst_index_factory_new),
(gst_index_factory_destroy), (gst_index_factory_find),
(gst_index_factory_create), (gst_index_factory_make):
* gst/gstindexfactory.h:
* gst/gstpluginfeature.c:
* gst/gstpluginfeature.h:
* libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
more docs inlined, splitted gstindex.{c,h}
2005-09-20 20:40:00 +00:00
|
|
|
/**
|
|
|
|
* GstIndexCertainty:
|
|
|
|
* @GST_INDEX_UNKNOWN: accuracy is not known
|
|
|
|
* @GST_INDEX_CERTAIN: accuracy is perfect
|
|
|
|
* @GST_INDEX_FUZZY: accuracy is fuzzy
|
2005-10-15 15:30:24 +00:00
|
|
|
*
|
more docs inlined, splitted gstindex.{c,h}
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/.cvsignore:
* gst/Makefile.am:
* gst/gst.h:
* gst/gstbin.c:
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_class_init):
* gst/gstindex.h:
* gst/gstindexfactory.c: (gst_index_factory_get_type),
(gst_index_factory_class_init), (gst_index_factory_init),
(gst_index_factory_finalize), (gst_index_factory_new),
(gst_index_factory_destroy), (gst_index_factory_find),
(gst_index_factory_create), (gst_index_factory_make):
* gst/gstindexfactory.h:
* gst/gstpluginfeature.c:
* gst/gstpluginfeature.h:
* libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
more docs inlined, splitted gstindex.{c,h}
2005-09-20 20:40:00 +00:00
|
|
|
* The certainty of a group in the index.
|
|
|
|
*/
|
2004-03-15 14:43:35 +00:00
|
|
|
typedef enum {
|
2002-12-12 22:16:11 +00:00
|
|
|
GST_INDEX_UNKNOWN,
|
|
|
|
GST_INDEX_CERTAIN,
|
|
|
|
GST_INDEX_FUZZY
|
2004-03-15 14:43:35 +00:00
|
|
|
} GstIndexCertainty;
|
2002-12-12 22:16:11 +00:00
|
|
|
|
more docs inlined, splitted gstindex.{c,h}
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/.cvsignore:
* gst/Makefile.am:
* gst/gst.h:
* gst/gstbin.c:
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_class_init):
* gst/gstindex.h:
* gst/gstindexfactory.c: (gst_index_factory_get_type),
(gst_index_factory_class_init), (gst_index_factory_init),
(gst_index_factory_finalize), (gst_index_factory_new),
(gst_index_factory_destroy), (gst_index_factory_find),
(gst_index_factory_create), (gst_index_factory_make):
* gst/gstindexfactory.h:
* gst/gstpluginfeature.c:
* gst/gstpluginfeature.h:
* libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
more docs inlined, splitted gstindex.{c,h}
2005-09-20 20:40:00 +00:00
|
|
|
/**
|
|
|
|
* GstIndexEntryType:
|
|
|
|
* @GST_INDEX_ENTRY_ID: This entry is an id that maps an index id to its owner object
|
|
|
|
* @GST_INDEX_ENTRY_ASSOCIATION: This entry is an association between formats
|
|
|
|
* @GST_INDEX_ENTRY_OBJECT: An object
|
|
|
|
* @GST_INDEX_ENTRY_FORMAT: A format definition
|
2005-10-15 15:30:24 +00:00
|
|
|
*
|
more docs inlined, splitted gstindex.{c,h}
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/.cvsignore:
* gst/Makefile.am:
* gst/gst.h:
* gst/gstbin.c:
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_class_init):
* gst/gstindex.h:
* gst/gstindexfactory.c: (gst_index_factory_get_type),
(gst_index_factory_class_init), (gst_index_factory_init),
(gst_index_factory_finalize), (gst_index_factory_new),
(gst_index_factory_destroy), (gst_index_factory_find),
(gst_index_factory_create), (gst_index_factory_make):
* gst/gstindexfactory.h:
* gst/gstpluginfeature.c:
* gst/gstpluginfeature.h:
* libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
more docs inlined, splitted gstindex.{c,h}
2005-09-20 20:40:00 +00:00
|
|
|
* The different types of entries in the index.
|
|
|
|
*/
|
2004-03-15 14:43:35 +00:00
|
|
|
typedef enum {
|
2002-12-12 22:16:11 +00:00
|
|
|
GST_INDEX_ENTRY_ID,
|
|
|
|
GST_INDEX_ENTRY_ASSOCIATION,
|
|
|
|
GST_INDEX_ENTRY_OBJECT,
|
2003-05-15 22:46:37 +00:00
|
|
|
GST_INDEX_ENTRY_FORMAT
|
2004-03-15 14:43:35 +00:00
|
|
|
} GstIndexEntryType;
|
2002-12-12 22:16:11 +00:00
|
|
|
|
more docs inlined, splitted gstindex.{c,h}
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/.cvsignore:
* gst/Makefile.am:
* gst/gst.h:
* gst/gstbin.c:
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_class_init):
* gst/gstindex.h:
* gst/gstindexfactory.c: (gst_index_factory_get_type),
(gst_index_factory_class_init), (gst_index_factory_init),
(gst_index_factory_finalize), (gst_index_factory_new),
(gst_index_factory_destroy), (gst_index_factory_find),
(gst_index_factory_create), (gst_index_factory_make):
* gst/gstindexfactory.h:
* gst/gstpluginfeature.c:
* gst/gstpluginfeature.h:
* libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
more docs inlined, splitted gstindex.{c,h}
2005-09-20 20:40:00 +00:00
|
|
|
/**
|
|
|
|
* GstIndexLookupMethod:
|
|
|
|
* @GST_INDEX_LOOKUP_EXACT: There has to be an exact indexentry with the given format/value
|
|
|
|
* @GST_INDEX_LOOKUP_BEFORE: The exact entry or the one before it
|
|
|
|
* @GST_INDEX_LOOKUP_AFTER: The exact entry or the one after it
|
2005-10-15 15:30:24 +00:00
|
|
|
*
|
more docs inlined, splitted gstindex.{c,h}
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/.cvsignore:
* gst/Makefile.am:
* gst/gst.h:
* gst/gstbin.c:
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_class_init):
* gst/gstindex.h:
* gst/gstindexfactory.c: (gst_index_factory_get_type),
(gst_index_factory_class_init), (gst_index_factory_init),
(gst_index_factory_finalize), (gst_index_factory_new),
(gst_index_factory_destroy), (gst_index_factory_find),
(gst_index_factory_create), (gst_index_factory_make):
* gst/gstindexfactory.h:
* gst/gstpluginfeature.c:
* gst/gstpluginfeature.h:
* libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
more docs inlined, splitted gstindex.{c,h}
2005-09-20 20:40:00 +00:00
|
|
|
* Specify the method to find an index entry in the index.
|
|
|
|
*/
|
2004-03-15 14:43:35 +00:00
|
|
|
typedef enum {
|
2002-12-12 22:16:11 +00:00
|
|
|
GST_INDEX_LOOKUP_EXACT,
|
|
|
|
GST_INDEX_LOOKUP_BEFORE,
|
2003-05-15 22:46:37 +00:00
|
|
|
GST_INDEX_LOOKUP_AFTER
|
2004-03-15 14:43:35 +00:00
|
|
|
} GstIndexLookupMethod;
|
2002-12-12 22:16:11 +00:00
|
|
|
|
more docs inlined, splitted gstindex.{c,h}
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/.cvsignore:
* gst/Makefile.am:
* gst/gst.h:
* gst/gstbin.c:
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_class_init):
* gst/gstindex.h:
* gst/gstindexfactory.c: (gst_index_factory_get_type),
(gst_index_factory_class_init), (gst_index_factory_init),
(gst_index_factory_finalize), (gst_index_factory_new),
(gst_index_factory_destroy), (gst_index_factory_find),
(gst_index_factory_create), (gst_index_factory_make):
* gst/gstindexfactory.h:
* gst/gstpluginfeature.c:
* gst/gstpluginfeature.h:
* libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
more docs inlined, splitted gstindex.{c,h}
2005-09-20 20:40:00 +00:00
|
|
|
/**
|
|
|
|
* GST_INDEX_NASSOCS:
|
|
|
|
* @entry: The entry to query
|
|
|
|
*
|
|
|
|
* Get the number of associations in the entry.
|
|
|
|
*/
|
2010-01-21 15:19:44 +00:00
|
|
|
#define GST_INDEX_NASSOCS(entry) ((entry)->data.assoc.nassocs)
|
more docs inlined, splitted gstindex.{c,h}
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/.cvsignore:
* gst/Makefile.am:
* gst/gst.h:
* gst/gstbin.c:
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_class_init):
* gst/gstindex.h:
* gst/gstindexfactory.c: (gst_index_factory_get_type),
(gst_index_factory_class_init), (gst_index_factory_init),
(gst_index_factory_finalize), (gst_index_factory_new),
(gst_index_factory_destroy), (gst_index_factory_find),
(gst_index_factory_create), (gst_index_factory_make):
* gst/gstindexfactory.h:
* gst/gstpluginfeature.c:
* gst/gstpluginfeature.h:
* libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
more docs inlined, splitted gstindex.{c,h}
2005-09-20 20:40:00 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GST_INDEX_ASSOC_FLAGS:
|
|
|
|
* @entry: The entry to query
|
|
|
|
*
|
|
|
|
* Get the flags for this entry.
|
|
|
|
*/
|
2010-01-21 15:19:44 +00:00
|
|
|
#define GST_INDEX_ASSOC_FLAGS(entry) ((entry)->data.assoc.flags)
|
more docs inlined, splitted gstindex.{c,h}
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/.cvsignore:
* gst/Makefile.am:
* gst/gst.h:
* gst/gstbin.c:
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_class_init):
* gst/gstindex.h:
* gst/gstindexfactory.c: (gst_index_factory_get_type),
(gst_index_factory_class_init), (gst_index_factory_init),
(gst_index_factory_finalize), (gst_index_factory_new),
(gst_index_factory_destroy), (gst_index_factory_find),
(gst_index_factory_create), (gst_index_factory_make):
* gst/gstindexfactory.h:
* gst/gstpluginfeature.c:
* gst/gstpluginfeature.h:
* libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
more docs inlined, splitted gstindex.{c,h}
2005-09-20 20:40:00 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GST_INDEX_ASSOC_FORMAT:
|
|
|
|
* @entry: The entry to query
|
|
|
|
* @i: The format index
|
|
|
|
*
|
|
|
|
* Get the i-th format of the entry.
|
|
|
|
*/
|
2010-01-21 15:19:44 +00:00
|
|
|
#define GST_INDEX_ASSOC_FORMAT(entry,i) ((entry)->data.assoc.assocs[(i)].format)
|
more docs inlined, splitted gstindex.{c,h}
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/.cvsignore:
* gst/Makefile.am:
* gst/gst.h:
* gst/gstbin.c:
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_class_init):
* gst/gstindex.h:
* gst/gstindexfactory.c: (gst_index_factory_get_type),
(gst_index_factory_class_init), (gst_index_factory_init),
(gst_index_factory_finalize), (gst_index_factory_new),
(gst_index_factory_destroy), (gst_index_factory_find),
(gst_index_factory_create), (gst_index_factory_make):
* gst/gstindexfactory.h:
* gst/gstpluginfeature.c:
* gst/gstpluginfeature.h:
* libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
more docs inlined, splitted gstindex.{c,h}
2005-09-20 20:40:00 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GST_INDEX_ASSOC_VALUE:
|
|
|
|
* @entry: The entry to query
|
|
|
|
* @i: The value index
|
|
|
|
*
|
|
|
|
* Get the i-th value of the entry.
|
|
|
|
*/
|
2010-01-21 15:19:44 +00:00
|
|
|
#define GST_INDEX_ASSOC_VALUE(entry,i) ((entry)->data.assoc.assocs[(i)].value)
|
2002-12-12 22:16:11 +00:00
|
|
|
|
|
|
|
typedef struct _GstIndexAssociation GstIndexAssociation;
|
|
|
|
|
more docs inlined, splitted gstindex.{c,h}
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/.cvsignore:
* gst/Makefile.am:
* gst/gst.h:
* gst/gstbin.c:
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_class_init):
* gst/gstindex.h:
* gst/gstindexfactory.c: (gst_index_factory_get_type),
(gst_index_factory_class_init), (gst_index_factory_init),
(gst_index_factory_finalize), (gst_index_factory_new),
(gst_index_factory_destroy), (gst_index_factory_find),
(gst_index_factory_create), (gst_index_factory_make):
* gst/gstindexfactory.h:
* gst/gstpluginfeature.c:
* gst/gstpluginfeature.h:
* libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
more docs inlined, splitted gstindex.{c,h}
2005-09-20 20:40:00 +00:00
|
|
|
/**
|
|
|
|
* GstIndexAssociation:
|
|
|
|
* @format: the format of the association
|
|
|
|
* @value: the value of the association
|
|
|
|
*
|
|
|
|
* An association in an entry.
|
|
|
|
*/
|
2004-03-15 14:43:35 +00:00
|
|
|
struct _GstIndexAssociation {
|
2010-01-21 15:19:44 +00:00
|
|
|
GstFormat format;
|
|
|
|
gint64 value;
|
2002-12-12 22:16:11 +00:00
|
|
|
};
|
|
|
|
|
more docs inlined, splitted gstindex.{c,h}
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/.cvsignore:
* gst/Makefile.am:
* gst/gst.h:
* gst/gstbin.c:
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_class_init):
* gst/gstindex.h:
* gst/gstindexfactory.c: (gst_index_factory_get_type),
(gst_index_factory_class_init), (gst_index_factory_init),
(gst_index_factory_finalize), (gst_index_factory_new),
(gst_index_factory_destroy), (gst_index_factory_find),
(gst_index_factory_create), (gst_index_factory_make):
* gst/gstindexfactory.h:
* gst/gstpluginfeature.c:
* gst/gstpluginfeature.h:
* libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
more docs inlined, splitted gstindex.{c,h}
2005-09-20 20:40:00 +00:00
|
|
|
/**
|
2011-12-30 15:31:17 +00:00
|
|
|
* 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
|
more docs inlined, splitted gstindex.{c,h}
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/.cvsignore:
* gst/Makefile.am:
* gst/gst.h:
* gst/gstbin.c:
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_class_init):
* gst/gstindex.h:
* gst/gstindexfactory.c: (gst_index_factory_get_type),
(gst_index_factory_class_init), (gst_index_factory_init),
(gst_index_factory_finalize), (gst_index_factory_new),
(gst_index_factory_destroy), (gst_index_factory_find),
(gst_index_factory_create), (gst_index_factory_make):
* gst/gstindexfactory.h:
* gst/gstpluginfeature.c:
* gst/gstpluginfeature.h:
* libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
more docs inlined, splitted gstindex.{c,h}
2005-09-20 20:40:00 +00:00
|
|
|
* that marks a place where one can randomly seek to.
|
2011-12-30 15:31:17 +00:00
|
|
|
* @GST_INDEX_ASSOCIATION_FLAG_DELTA_UNIT: the entry marks a delta unit, a delta unit
|
more docs inlined, splitted gstindex.{c,h}
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/.cvsignore:
* gst/Makefile.am:
* gst/gst.h:
* gst/gstbin.c:
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_class_init):
* gst/gstindex.h:
* gst/gstindexfactory.c: (gst_index_factory_get_type),
(gst_index_factory_class_init), (gst_index_factory_init),
(gst_index_factory_finalize), (gst_index_factory_new),
(gst_index_factory_destroy), (gst_index_factory_find),
(gst_index_factory_create), (gst_index_factory_make):
* gst/gstindexfactory.h:
* gst/gstpluginfeature.c:
* gst/gstpluginfeature.h:
* libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
more docs inlined, splitted gstindex.{c,h}
2005-09-20 20:40:00 +00:00
|
|
|
* is one that marks a place where one can relatively seek to.
|
2011-12-30 15:31:17 +00:00
|
|
|
* @GST_INDEX_ASSOCIATION_FLAG_LAST: extra user defined flags should start here.
|
more docs inlined, splitted gstindex.{c,h}
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/.cvsignore:
* gst/Makefile.am:
* gst/gst.h:
* gst/gstbin.c:
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_class_init):
* gst/gstindex.h:
* gst/gstindexfactory.c: (gst_index_factory_get_type),
(gst_index_factory_class_init), (gst_index_factory_init),
(gst_index_factory_finalize), (gst_index_factory_new),
(gst_index_factory_destroy), (gst_index_factory_find),
(gst_index_factory_create), (gst_index_factory_make):
* gst/gstindexfactory.h:
* gst/gstpluginfeature.c:
* gst/gstpluginfeature.h:
* libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
more docs inlined, splitted gstindex.{c,h}
2005-09-20 20:40:00 +00:00
|
|
|
*
|
|
|
|
* Flags for an association entry.
|
|
|
|
*/
|
2004-03-15 14:43:35 +00:00
|
|
|
typedef enum {
|
2011-12-30 15:31:17 +00:00
|
|
|
GST_INDEX_ASSOCIATION_FLAG_NONE = 0,
|
|
|
|
GST_INDEX_ASSOCIATION_FLAG_KEY_UNIT = (1 << 0),
|
|
|
|
GST_INDEX_ASSOCIATION_FLAG_DELTA_UNIT = (1 << 1),
|
2002-12-26 22:35:58 +00:00
|
|
|
|
|
|
|
/* new flags should start here */
|
2011-12-30 15:31:17 +00:00
|
|
|
GST_INDEX_ASSOCIATION_FLAG_LAST = (1 << 8)
|
|
|
|
} GstIndexAssociationFlags;
|
2002-12-12 22:16:11 +00:00
|
|
|
|
more docs inlined, splitted gstindex.{c,h}
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/.cvsignore:
* gst/Makefile.am:
* gst/gst.h:
* gst/gstbin.c:
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_class_init):
* gst/gstindex.h:
* gst/gstindexfactory.c: (gst_index_factory_get_type),
(gst_index_factory_class_init), (gst_index_factory_init),
(gst_index_factory_finalize), (gst_index_factory_new),
(gst_index_factory_destroy), (gst_index_factory_find),
(gst_index_factory_create), (gst_index_factory_make):
* gst/gstindexfactory.h:
* gst/gstpluginfeature.c:
* gst/gstpluginfeature.h:
* libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
more docs inlined, splitted gstindex.{c,h}
2005-09-20 20:40:00 +00:00
|
|
|
/**
|
|
|
|
* GST_INDEX_FORMAT_FORMAT:
|
|
|
|
* @entry: The entry to query
|
|
|
|
*
|
|
|
|
* Get the format of the format entry
|
|
|
|
*/
|
2010-01-21 15:19:44 +00:00
|
|
|
#define GST_INDEX_FORMAT_FORMAT(entry) ((entry)->data.format.format)
|
more docs inlined, splitted gstindex.{c,h}
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/.cvsignore:
* gst/Makefile.am:
* gst/gst.h:
* gst/gstbin.c:
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_class_init):
* gst/gstindex.h:
* gst/gstindexfactory.c: (gst_index_factory_get_type),
(gst_index_factory_class_init), (gst_index_factory_init),
(gst_index_factory_finalize), (gst_index_factory_new),
(gst_index_factory_destroy), (gst_index_factory_find),
(gst_index_factory_create), (gst_index_factory_make):
* gst/gstindexfactory.h:
* gst/gstpluginfeature.c:
* gst/gstpluginfeature.h:
* libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
more docs inlined, splitted gstindex.{c,h}
2005-09-20 20:40:00 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GST_INDEX_FORMAT_KEY:
|
|
|
|
* @entry: The entry to query
|
|
|
|
*
|
|
|
|
* Get the key of the format entry
|
|
|
|
*/
|
2010-01-21 15:19:44 +00:00
|
|
|
#define GST_INDEX_FORMAT_KEY(entry) ((entry)->data.format.key)
|
2002-12-12 22:16:11 +00:00
|
|
|
|
more docs inlined, splitted gstindex.{c,h}
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/.cvsignore:
* gst/Makefile.am:
* gst/gst.h:
* gst/gstbin.c:
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_class_init):
* gst/gstindex.h:
* gst/gstindexfactory.c: (gst_index_factory_get_type),
(gst_index_factory_class_init), (gst_index_factory_init),
(gst_index_factory_finalize), (gst_index_factory_new),
(gst_index_factory_destroy), (gst_index_factory_find),
(gst_index_factory_create), (gst_index_factory_make):
* gst/gstindexfactory.h:
* gst/gstpluginfeature.c:
* gst/gstpluginfeature.h:
* libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
more docs inlined, splitted gstindex.{c,h}
2005-09-20 20:40:00 +00:00
|
|
|
/**
|
|
|
|
* GST_INDEX_ID_INVALID:
|
|
|
|
*
|
|
|
|
* Constant for an invalid index id
|
|
|
|
*/
|
2010-01-21 15:19:44 +00:00
|
|
|
#define GST_INDEX_ID_INVALID (-1)
|
2003-01-04 21:57:28 +00:00
|
|
|
|
more docs inlined, splitted gstindex.{c,h}
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/.cvsignore:
* gst/Makefile.am:
* gst/gst.h:
* gst/gstbin.c:
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_class_init):
* gst/gstindex.h:
* gst/gstindexfactory.c: (gst_index_factory_get_type),
(gst_index_factory_class_init), (gst_index_factory_init),
(gst_index_factory_finalize), (gst_index_factory_new),
(gst_index_factory_destroy), (gst_index_factory_find),
(gst_index_factory_create), (gst_index_factory_make):
* gst/gstindexfactory.h:
* gst/gstpluginfeature.c:
* gst/gstpluginfeature.h:
* libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
more docs inlined, splitted gstindex.{c,h}
2005-09-20 20:40:00 +00:00
|
|
|
/**
|
|
|
|
* GST_INDEX_ID_DESCRIPTION:
|
|
|
|
* @entry: The entry to query
|
|
|
|
*
|
|
|
|
* Get the description of the id entry
|
|
|
|
*/
|
2010-01-21 15:19:44 +00:00
|
|
|
#define GST_INDEX_ID_DESCRIPTION(entry) ((entry)->data.id.description)
|
2002-12-12 22:16:11 +00:00
|
|
|
|
more docs inlined, splitted gstindex.{c,h}
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/.cvsignore:
* gst/Makefile.am:
* gst/gst.h:
* gst/gstbin.c:
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_class_init):
* gst/gstindex.h:
* gst/gstindexfactory.c: (gst_index_factory_get_type),
(gst_index_factory_class_init), (gst_index_factory_init),
(gst_index_factory_finalize), (gst_index_factory_new),
(gst_index_factory_destroy), (gst_index_factory_find),
(gst_index_factory_create), (gst_index_factory_make):
* gst/gstindexfactory.h:
* gst/gstpluginfeature.c:
* gst/gstpluginfeature.h:
* libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
more docs inlined, splitted gstindex.{c,h}
2005-09-20 20:40:00 +00:00
|
|
|
/**
|
|
|
|
* GstIndexEntry:
|
|
|
|
*
|
|
|
|
* The basic element of an index.
|
|
|
|
*/
|
2004-03-15 14:43:35 +00:00
|
|
|
struct _GstIndexEntry {
|
2005-09-25 18:34:49 +00:00
|
|
|
/*< private >*/
|
2010-01-21 15:19:44 +00:00
|
|
|
GstIndexEntryType type;
|
|
|
|
gint id;
|
2004-03-15 14:43:35 +00:00
|
|
|
|
|
|
|
union {
|
|
|
|
struct {
|
2010-01-21 15:19:44 +00:00
|
|
|
gchar *description;
|
2004-03-15 14:43:35 +00:00
|
|
|
} id;
|
|
|
|
struct {
|
2010-01-21 15:19:44 +00:00
|
|
|
gint nassocs;
|
2005-10-15 15:30:24 +00:00
|
|
|
GstIndexAssociation
|
2010-01-21 15:19:44 +00:00
|
|
|
*assocs;
|
2011-12-30 15:31:17 +00:00
|
|
|
GstIndexAssociationFlags flags;
|
2004-03-15 14:43:35 +00:00
|
|
|
} assoc;
|
|
|
|
struct {
|
2010-01-21 15:19:44 +00:00
|
|
|
gchar *key;
|
|
|
|
GType type;
|
|
|
|
gpointer object;
|
2004-03-15 14:43:35 +00:00
|
|
|
} object;
|
|
|
|
struct {
|
2010-01-21 15:19:44 +00:00
|
|
|
GstFormat format;
|
|
|
|
const gchar *key;
|
2004-03-15 14:43:35 +00:00
|
|
|
} format;
|
|
|
|
} data;
|
2015-09-28 14:21:55 +00:00
|
|
|
// FIXME 2.0: add padding
|
2002-12-12 22:16:11 +00:00
|
|
|
};
|
|
|
|
|
more docs inlined, splitted gstindex.{c,h}
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/.cvsignore:
* gst/Makefile.am:
* gst/gst.h:
* gst/gstbin.c:
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_class_init):
* gst/gstindex.h:
* gst/gstindexfactory.c: (gst_index_factory_get_type),
(gst_index_factory_class_init), (gst_index_factory_init),
(gst_index_factory_finalize), (gst_index_factory_new),
(gst_index_factory_destroy), (gst_index_factory_find),
(gst_index_factory_create), (gst_index_factory_make):
* gst/gstindexfactory.h:
* gst/gstpluginfeature.c:
* gst/gstpluginfeature.h:
* libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
more docs inlined, splitted gstindex.{c,h}
2005-09-20 20:40:00 +00:00
|
|
|
/**
|
|
|
|
* GstIndexGroup:
|
|
|
|
*
|
|
|
|
* A group of related entries in an index.
|
|
|
|
*/
|
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
struct _GstIndexGroup {
|
2005-09-25 18:34:49 +00:00
|
|
|
/*< private >*/
|
2002-12-12 22:16:11 +00:00
|
|
|
/* unique ID of group in index */
|
|
|
|
gint groupnum;
|
|
|
|
|
|
|
|
/* list of entries */
|
|
|
|
GList *entries;
|
|
|
|
|
|
|
|
/* the certainty level of the group */
|
|
|
|
GstIndexCertainty certainty;
|
|
|
|
|
|
|
|
/* peer group that contains more certain entries */
|
|
|
|
gint peergroup;
|
2015-09-28 14:21:55 +00:00
|
|
|
// FIXME 2.0: add padding
|
2002-12-12 22:16:11 +00:00
|
|
|
};
|
|
|
|
|
more docs inlined, splitted gstindex.{c,h}
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/.cvsignore:
* gst/Makefile.am:
* gst/gst.h:
* gst/gstbin.c:
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_class_init):
* gst/gstindex.h:
* gst/gstindexfactory.c: (gst_index_factory_get_type),
(gst_index_factory_class_init), (gst_index_factory_init),
(gst_index_factory_finalize), (gst_index_factory_new),
(gst_index_factory_destroy), (gst_index_factory_find),
(gst_index_factory_create), (gst_index_factory_make):
* gst/gstindexfactory.h:
* gst/gstpluginfeature.c:
* gst/gstpluginfeature.h:
* libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
more docs inlined, splitted gstindex.{c,h}
2005-09-20 20:40:00 +00:00
|
|
|
/**
|
|
|
|
* GstIndexFilter:
|
|
|
|
* @index: The index being queried
|
|
|
|
* @entry: The entry to be added.
|
2005-11-20 14:50:43 +00:00
|
|
|
* @user_data: User data passed to the function.
|
more docs inlined, splitted gstindex.{c,h}
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/.cvsignore:
* gst/Makefile.am:
* gst/gst.h:
* gst/gstbin.c:
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_class_init):
* gst/gstindex.h:
* gst/gstindexfactory.c: (gst_index_factory_get_type),
(gst_index_factory_class_init), (gst_index_factory_init),
(gst_index_factory_finalize), (gst_index_factory_new),
(gst_index_factory_destroy), (gst_index_factory_find),
(gst_index_factory_create), (gst_index_factory_make):
* gst/gstindexfactory.h:
* gst/gstpluginfeature.c:
* gst/gstpluginfeature.h:
* libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
more docs inlined, splitted gstindex.{c,h}
2005-09-20 20:40:00 +00:00
|
|
|
*
|
|
|
|
* Function to filter out entries in the index.
|
|
|
|
*
|
|
|
|
* Returns: This function should return %TRUE if the entry is to be added
|
|
|
|
* to the index, %FALSE otherwise.
|
|
|
|
*
|
|
|
|
*/
|
2010-01-21 15:19:44 +00:00
|
|
|
typedef gboolean (*GstIndexFilter) (GstIndex *index,
|
|
|
|
GstIndexEntry *entry,
|
2005-11-19 17:28:58 +00:00
|
|
|
gpointer user_data);
|
more docs inlined, splitted gstindex.{c,h}
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/.cvsignore:
* gst/Makefile.am:
* gst/gst.h:
* gst/gstbin.c:
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_class_init):
* gst/gstindex.h:
* gst/gstindexfactory.c: (gst_index_factory_get_type),
(gst_index_factory_class_init), (gst_index_factory_init),
(gst_index_factory_finalize), (gst_index_factory_new),
(gst_index_factory_destroy), (gst_index_factory_find),
(gst_index_factory_create), (gst_index_factory_make):
* gst/gstindexfactory.h:
* gst/gstpluginfeature.c:
* gst/gstpluginfeature.h:
* libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
more docs inlined, splitted gstindex.{c,h}
2005-09-20 20:40:00 +00:00
|
|
|
/**
|
|
|
|
* GstIndexResolverMethod:
|
|
|
|
* @GST_INDEX_RESOLVER_CUSTOM: Use a custom resolver
|
|
|
|
* @GST_INDEX_RESOLVER_GTYPE: Resolve based on the GType of the object
|
|
|
|
* @GST_INDEX_RESOLVER_PATH: Resolve on the path in graph
|
|
|
|
*
|
|
|
|
* The method used to resolve index writers
|
|
|
|
*/
|
2004-03-15 14:43:35 +00:00
|
|
|
typedef enum {
|
2003-01-05 20:34:24 +00:00
|
|
|
GST_INDEX_RESOLVER_CUSTOM,
|
|
|
|
GST_INDEX_RESOLVER_GTYPE,
|
|
|
|
GST_INDEX_RESOLVER_PATH
|
2004-03-15 14:43:35 +00:00
|
|
|
} GstIndexResolverMethod;
|
2003-01-05 20:34:24 +00:00
|
|
|
|
more docs inlined, splitted gstindex.{c,h}
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/.cvsignore:
* gst/Makefile.am:
* gst/gst.h:
* gst/gstbin.c:
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_class_init):
* gst/gstindex.h:
* gst/gstindexfactory.c: (gst_index_factory_get_type),
(gst_index_factory_class_init), (gst_index_factory_init),
(gst_index_factory_finalize), (gst_index_factory_new),
(gst_index_factory_destroy), (gst_index_factory_find),
(gst_index_factory_create), (gst_index_factory_make):
* gst/gstindexfactory.h:
* gst/gstpluginfeature.c:
* gst/gstpluginfeature.h:
* libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
more docs inlined, splitted gstindex.{c,h}
2005-09-20 20:40:00 +00:00
|
|
|
/**
|
|
|
|
* GstIndexResolver:
|
|
|
|
* @index: the index being queried.
|
|
|
|
* @writer: The object that wants to write
|
|
|
|
* @writer_string: A description of the writer.
|
|
|
|
* @user_data: user_data as registered
|
|
|
|
*
|
|
|
|
* Function to resolve ids to writer descriptions.
|
|
|
|
*
|
|
|
|
* Returns: %TRUE if an id could be assigned to the writer.
|
|
|
|
*/
|
2010-01-21 15:19:44 +00:00
|
|
|
typedef gboolean (*GstIndexResolver) (GstIndex *index,
|
|
|
|
GstObject *writer,
|
|
|
|
gchar **writer_string,
|
|
|
|
gpointer user_data);
|
more docs inlined, splitted gstindex.{c,h}
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/.cvsignore:
* gst/Makefile.am:
* gst/gst.h:
* gst/gstbin.c:
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_class_init):
* gst/gstindex.h:
* gst/gstindexfactory.c: (gst_index_factory_get_type),
(gst_index_factory_class_init), (gst_index_factory_init),
(gst_index_factory_finalize), (gst_index_factory_new),
(gst_index_factory_destroy), (gst_index_factory_find),
(gst_index_factory_create), (gst_index_factory_make):
* gst/gstindexfactory.h:
* gst/gstpluginfeature.c:
* gst/gstpluginfeature.h:
* libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
more docs inlined, splitted gstindex.{c,h}
2005-09-20 20:40:00 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GstIndexFlags:
|
|
|
|
* @GST_INDEX_WRITABLE: The index is writable
|
|
|
|
* @GST_INDEX_READABLE: The index is readable
|
|
|
|
* @GST_INDEX_FLAG_LAST: First flag that can be used by subclasses
|
|
|
|
*
|
|
|
|
* Flags for this index
|
|
|
|
*/
|
2004-03-15 14:43:35 +00:00
|
|
|
typedef enum {
|
2005-10-15 15:30:24 +00:00
|
|
|
GST_INDEX_WRITABLE = (GST_OBJECT_FLAG_LAST << 0),
|
|
|
|
GST_INDEX_READABLE = (GST_OBJECT_FLAG_LAST << 1),
|
2002-12-23 00:31:14 +00:00
|
|
|
|
renamed GST_FLAGS macros to GST_OBJECT_FLAGS moved bitshift from macro to enum definition
Original commit message from CVS:
* check/gst/gstbin.c: (GST_START_TEST):
* docs/gst/gstreamer-sections.txt:
* gst/base/gstbasesink.c: (gst_base_sink_init):
* gst/base/gstbasesrc.c: (gst_base_src_init),
(gst_base_src_get_range), (gst_base_src_check_get_range),
(gst_base_src_start), (gst_base_src_stop):
* gst/base/gstbasesrc.h:
* gst/elements/gstfakesrc.c: (gst_fake_src_set_property):
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_remove_func),
(bin_element_is_sink), (reset_degree), (gst_bin_element_set_state),
(bin_bus_handler):
* gst/gstbin.h:
* gst/gstbuffer.h:
* gst/gstbus.c: (gst_bus_post), (gst_bus_set_flushing):
* gst/gstbus.h:
* gst/gstelement.c: (gst_element_is_locked_state),
(gst_element_set_locked_state), (gst_element_commit_state),
(gst_element_set_state):
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_init):
* gst/gstindex.h:
* gst/gstminiobject.h:
* gst/gstobject.c: (gst_object_init), (gst_object_sink),
(gst_object_set_parent):
* gst/gstobject.h:
* gst/gstpad.c: (gst_pad_set_blocked_async), (gst_pad_is_blocked),
(gst_pad_get_caps_unlocked), (gst_pad_set_caps):
* gst/gstpad.h:
* gst/gstpadtemplate.h:
* gst/gstpipeline.c: (gst_pipeline_provide_clock_func),
(gst_pipeline_use_clock), (gst_pipeline_auto_clock):
* gst/gstpipeline.h:
* gst/indexers/gstfileindex.c: (gst_file_index_load),
(gst_file_index_commit):
* testsuite/bytestream/filepadsink.c: (gst_fp_sink_init):
* testsuite/pad/link.c: (gst_test_src_init),
(gst_test_filter_init), (gst_test_sink_init):
* testsuite/states/locked.c: (main):
renamed GST_FLAGS macros to GST_OBJECT_FLAGS
moved bitshift from macro to enum definition
2005-10-12 14:28:39 +00:00
|
|
|
GST_INDEX_FLAG_LAST = (GST_OBJECT_FLAG_LAST << 8)
|
2004-03-15 14:43:35 +00:00
|
|
|
} GstIndexFlags;
|
2002-12-23 00:31:14 +00:00
|
|
|
|
more docs inlined, splitted gstindex.{c,h}
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/.cvsignore:
* gst/Makefile.am:
* gst/gst.h:
* gst/gstbin.c:
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_class_init):
* gst/gstindex.h:
* gst/gstindexfactory.c: (gst_index_factory_get_type),
(gst_index_factory_class_init), (gst_index_factory_init),
(gst_index_factory_finalize), (gst_index_factory_new),
(gst_index_factory_destroy), (gst_index_factory_find),
(gst_index_factory_create), (gst_index_factory_make):
* gst/gstindexfactory.h:
* gst/gstpluginfeature.c:
* gst/gstpluginfeature.h:
* libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
more docs inlined, splitted gstindex.{c,h}
2005-09-20 20:40:00 +00:00
|
|
|
/**
|
|
|
|
* GST_INDEX_IS_READABLE:
|
|
|
|
* @obj: The index to check
|
|
|
|
*
|
|
|
|
* Check if the index can be read from
|
|
|
|
*/
|
renamed GST_FLAGS macros to GST_OBJECT_FLAGS moved bitshift from macro to enum definition
Original commit message from CVS:
* check/gst/gstbin.c: (GST_START_TEST):
* docs/gst/gstreamer-sections.txt:
* gst/base/gstbasesink.c: (gst_base_sink_init):
* gst/base/gstbasesrc.c: (gst_base_src_init),
(gst_base_src_get_range), (gst_base_src_check_get_range),
(gst_base_src_start), (gst_base_src_stop):
* gst/base/gstbasesrc.h:
* gst/elements/gstfakesrc.c: (gst_fake_src_set_property):
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_remove_func),
(bin_element_is_sink), (reset_degree), (gst_bin_element_set_state),
(bin_bus_handler):
* gst/gstbin.h:
* gst/gstbuffer.h:
* gst/gstbus.c: (gst_bus_post), (gst_bus_set_flushing):
* gst/gstbus.h:
* gst/gstelement.c: (gst_element_is_locked_state),
(gst_element_set_locked_state), (gst_element_commit_state),
(gst_element_set_state):
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_init):
* gst/gstindex.h:
* gst/gstminiobject.h:
* gst/gstobject.c: (gst_object_init), (gst_object_sink),
(gst_object_set_parent):
* gst/gstobject.h:
* gst/gstpad.c: (gst_pad_set_blocked_async), (gst_pad_is_blocked),
(gst_pad_get_caps_unlocked), (gst_pad_set_caps):
* gst/gstpad.h:
* gst/gstpadtemplate.h:
* gst/gstpipeline.c: (gst_pipeline_provide_clock_func),
(gst_pipeline_use_clock), (gst_pipeline_auto_clock):
* gst/gstpipeline.h:
* gst/indexers/gstfileindex.c: (gst_file_index_load),
(gst_file_index_commit):
* testsuite/bytestream/filepadsink.c: (gst_fp_sink_init):
* testsuite/pad/link.c: (gst_test_src_init),
(gst_test_filter_init), (gst_test_sink_init):
* testsuite/states/locked.c: (main):
renamed GST_FLAGS macros to GST_OBJECT_FLAGS
moved bitshift from macro to enum definition
2005-10-12 14:28:39 +00:00
|
|
|
#define GST_INDEX_IS_READABLE(obj) (GST_OBJECT_FLAG_IS_SET (obj, GST_INDEX_READABLE))
|
more docs inlined, splitted gstindex.{c,h}
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/.cvsignore:
* gst/Makefile.am:
* gst/gst.h:
* gst/gstbin.c:
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_class_init):
* gst/gstindex.h:
* gst/gstindexfactory.c: (gst_index_factory_get_type),
(gst_index_factory_class_init), (gst_index_factory_init),
(gst_index_factory_finalize), (gst_index_factory_new),
(gst_index_factory_destroy), (gst_index_factory_find),
(gst_index_factory_create), (gst_index_factory_make):
* gst/gstindexfactory.h:
* gst/gstpluginfeature.c:
* gst/gstpluginfeature.h:
* libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
more docs inlined, splitted gstindex.{c,h}
2005-09-20 20:40:00 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GST_INDEX_IS_WRITABLE:
|
|
|
|
* @obj: The index to check
|
|
|
|
*
|
|
|
|
* Check if the index can be written to
|
|
|
|
*/
|
renamed GST_FLAGS macros to GST_OBJECT_FLAGS moved bitshift from macro to enum definition
Original commit message from CVS:
* check/gst/gstbin.c: (GST_START_TEST):
* docs/gst/gstreamer-sections.txt:
* gst/base/gstbasesink.c: (gst_base_sink_init):
* gst/base/gstbasesrc.c: (gst_base_src_init),
(gst_base_src_get_range), (gst_base_src_check_get_range),
(gst_base_src_start), (gst_base_src_stop):
* gst/base/gstbasesrc.h:
* gst/elements/gstfakesrc.c: (gst_fake_src_set_property):
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_remove_func),
(bin_element_is_sink), (reset_degree), (gst_bin_element_set_state),
(bin_bus_handler):
* gst/gstbin.h:
* gst/gstbuffer.h:
* gst/gstbus.c: (gst_bus_post), (gst_bus_set_flushing):
* gst/gstbus.h:
* gst/gstelement.c: (gst_element_is_locked_state),
(gst_element_set_locked_state), (gst_element_commit_state),
(gst_element_set_state):
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_init):
* gst/gstindex.h:
* gst/gstminiobject.h:
* gst/gstobject.c: (gst_object_init), (gst_object_sink),
(gst_object_set_parent):
* gst/gstobject.h:
* gst/gstpad.c: (gst_pad_set_blocked_async), (gst_pad_is_blocked),
(gst_pad_get_caps_unlocked), (gst_pad_set_caps):
* gst/gstpad.h:
* gst/gstpadtemplate.h:
* gst/gstpipeline.c: (gst_pipeline_provide_clock_func),
(gst_pipeline_use_clock), (gst_pipeline_auto_clock):
* gst/gstpipeline.h:
* gst/indexers/gstfileindex.c: (gst_file_index_load),
(gst_file_index_commit):
* testsuite/bytestream/filepadsink.c: (gst_fp_sink_init):
* testsuite/pad/link.c: (gst_test_src_init),
(gst_test_filter_init), (gst_test_sink_init):
* testsuite/states/locked.c: (main):
renamed GST_FLAGS macros to GST_OBJECT_FLAGS
moved bitshift from macro to enum definition
2005-10-12 14:28:39 +00:00
|
|
|
#define GST_INDEX_IS_WRITABLE(obj) (GST_OBJECT_FLAG_IS_SET (obj, GST_INDEX_WRITABLE))
|
2002-12-23 00:31:14 +00:00
|
|
|
|
2005-11-24 09:44:07 +00:00
|
|
|
/**
|
|
|
|
* GstIndex:
|
2011-11-11 15:52:41 +00:00
|
|
|
*
|
2005-11-24 09:44:07 +00:00
|
|
|
* Opaque #GstIndex structure.
|
|
|
|
*/
|
2004-03-15 14:43:35 +00:00
|
|
|
struct _GstIndex {
|
2010-01-21 15:19:44 +00:00
|
|
|
GstObject object;
|
2002-12-12 22:16:11 +00:00
|
|
|
|
2005-11-24 09:44:07 +00:00
|
|
|
/*< private >*/
|
2010-01-21 15:19:44 +00:00
|
|
|
GList *groups;
|
|
|
|
GstIndexGroup *curgroup;
|
|
|
|
gint maxgroup;
|
2002-12-12 22:16:11 +00:00
|
|
|
|
2003-01-05 20:34:24 +00:00
|
|
|
GstIndexResolverMethod method;
|
2010-01-21 15:19:44 +00:00
|
|
|
GstIndexResolver resolver;
|
|
|
|
gpointer resolver_user_data;
|
2011-02-22 15:04:12 +00:00
|
|
|
GDestroyNotify resolver_user_data_destroy;
|
2002-12-12 22:16:11 +00:00
|
|
|
|
2010-01-21 15:19:44 +00:00
|
|
|
GstIndexFilter filter;
|
|
|
|
gpointer filter_user_data;
|
|
|
|
GDestroyNotify filter_user_data_destroy;
|
2002-12-12 22:16:11 +00:00
|
|
|
|
2010-01-21 15:19:44 +00:00
|
|
|
GHashTable *writers;
|
|
|
|
gint last_id;
|
2002-12-19 21:31:03 +00:00
|
|
|
|
2005-11-24 09:44:07 +00:00
|
|
|
/*< private >*/
|
2011-02-22 15:04:12 +00:00
|
|
|
gpointer _gst_reserved[GST_PADDING];
|
2002-12-12 22:16:11 +00:00
|
|
|
};
|
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
struct _GstIndexClass {
|
2002-12-12 22:16:11 +00:00
|
|
|
GstObjectClass parent_class;
|
|
|
|
|
2005-11-24 09:44:07 +00:00
|
|
|
/*< protected >*/
|
2011-08-29 16:50:40 +00:00
|
|
|
gboolean (*get_writer_id) (GstIndex *index, gint *id, gchar *writer);
|
2002-12-12 22:16:11 +00:00
|
|
|
|
2010-01-21 15:19:44 +00:00
|
|
|
void (*commit) (GstIndex *index, gint id);
|
2002-12-23 00:31:14 +00:00
|
|
|
|
2002-12-12 22:16:11 +00:00
|
|
|
/* abstract methods */
|
2010-01-21 15:19:44 +00:00
|
|
|
void (*add_entry) (GstIndex *index, GstIndexEntry *entry);
|
2002-12-12 22:16:11 +00:00
|
|
|
|
2010-01-21 15:19:44 +00:00
|
|
|
GstIndexEntry* (*get_assoc_entry) (GstIndex *index, gint id,
|
2011-12-30 15:31:17 +00:00
|
|
|
GstIndexLookupMethod method, GstIndexAssociationFlags flags,
|
2010-01-21 15:19:44 +00:00
|
|
|
GstFormat format, gint64 value,
|
|
|
|
GCompareDataFunc func,
|
|
|
|
gpointer user_data);
|
2002-12-12 22:16:11 +00:00
|
|
|
/* signals */
|
2010-01-21 15:19:44 +00:00
|
|
|
void (*entry_added) (GstIndex *index, GstIndexEntry *entry);
|
2002-12-19 21:31:03 +00:00
|
|
|
|
2005-11-24 09:44:07 +00:00
|
|
|
/*< private >*/
|
2003-12-15 18:22:57 +00:00
|
|
|
gpointer _gst_reserved[GST_PADDING];
|
2002-12-12 22:16:11 +00:00
|
|
|
};
|
|
|
|
|
2011-12-30 15:24:52 +00:00
|
|
|
static
|
2010-01-21 15:19:44 +00:00
|
|
|
GType gst_index_get_type (void);
|
2011-12-30 15:24:52 +00:00
|
|
|
|
|
|
|
#if 0
|
2010-01-21 15:19:44 +00:00
|
|
|
GstIndex* gst_index_new (void);
|
|
|
|
void gst_index_commit (GstIndex *index, gint id);
|
2004-03-15 14:43:35 +00:00
|
|
|
|
2010-01-21 15:19:44 +00:00
|
|
|
gint gst_index_get_group (GstIndex *index);
|
|
|
|
gint gst_index_new_group (GstIndex *index);
|
|
|
|
gboolean gst_index_set_group (GstIndex *index, gint groupnum);
|
2004-03-15 14:43:35 +00:00
|
|
|
|
2010-01-21 15:19:44 +00:00
|
|
|
void gst_index_set_certainty (GstIndex *index,
|
|
|
|
GstIndexCertainty certainty);
|
|
|
|
GstIndexCertainty gst_index_get_certainty (GstIndex *index);
|
2004-03-15 14:43:35 +00:00
|
|
|
|
2011-12-30 15:24:52 +00:00
|
|
|
static
|
2010-01-21 15:19:44 +00:00
|
|
|
void gst_index_set_filter (GstIndex *index,
|
|
|
|
GstIndexFilter filter, gpointer user_data);
|
2011-12-30 15:24:52 +00:00
|
|
|
static
|
2010-01-21 15:19:44 +00:00
|
|
|
void gst_index_set_filter_full (GstIndex *index,
|
|
|
|
GstIndexFilter filter, gpointer user_data,
|
2005-11-19 17:26:27 +00:00
|
|
|
GDestroyNotify user_data_destroy);
|
2011-12-30 15:24:52 +00:00
|
|
|
|
2010-01-21 15:19:44 +00:00
|
|
|
void gst_index_set_resolver (GstIndex *index,
|
|
|
|
GstIndexResolver resolver, gpointer user_data);
|
|
|
|
void gst_index_set_resolver_full (GstIndex *index, GstIndexResolver resolver,
|
2008-02-11 17:53:57 +00:00
|
|
|
gpointer user_data,
|
|
|
|
GDestroyNotify user_data_destroy);
|
2011-12-30 15:24:52 +00:00
|
|
|
#endif
|
2004-03-15 14:43:35 +00:00
|
|
|
|
2011-12-30 15:24:52 +00:00
|
|
|
static
|
2010-01-21 15:19:44 +00:00
|
|
|
gboolean gst_index_get_writer_id (GstIndex *index, GstObject *writer, gint *id);
|
2004-03-15 14:43:35 +00:00
|
|
|
|
2011-12-30 15:24:52 +00:00
|
|
|
#if 0
|
2010-01-21 15:19:44 +00:00
|
|
|
GstIndexEntry* gst_index_add_format (GstIndex *index, gint id, GstFormat format);
|
2011-12-30 15:24:52 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
static
|
2011-12-30 15:31:17 +00:00
|
|
|
GstIndexEntry* gst_index_add_associationv (GstIndex * index, gint id, GstIndexAssociationFlags flags,
|
2006-01-18 09:42:12 +00:00
|
|
|
gint n, const GstIndexAssociation * list);
|
2011-12-30 15:24:52 +00:00
|
|
|
#if 0
|
2011-12-30 15:31:17 +00:00
|
|
|
GstIndexEntry* gst_index_add_association (GstIndex *index, gint id, GstIndexAssociationFlags flags,
|
2011-12-30 15:24:52 +00:00
|
|
|
GstFormat format, gint64 value, ...)
|
2010-01-21 15:19:44 +00:00
|
|
|
GstIndexEntry* gst_index_add_object (GstIndex *index, gint id, gchar *key,
|
|
|
|
GType type, gpointer object);
|
2011-12-30 15:24:52 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
static
|
2010-01-21 15:19:44 +00:00
|
|
|
GstIndexEntry* gst_index_add_id (GstIndex *index, gint id,
|
|
|
|
gchar *description);
|
|
|
|
|
2011-12-30 15:24:52 +00:00
|
|
|
static
|
2010-01-21 15:19:44 +00:00
|
|
|
GstIndexEntry* gst_index_get_assoc_entry (GstIndex *index, gint id,
|
2011-12-30 15:31:17 +00:00
|
|
|
GstIndexLookupMethod method, GstIndexAssociationFlags flags,
|
2010-01-21 15:19:44 +00:00
|
|
|
GstFormat format, gint64 value);
|
2011-12-30 15:24:52 +00:00
|
|
|
static
|
2010-01-21 15:19:44 +00:00
|
|
|
GstIndexEntry* gst_index_get_assoc_entry_full (GstIndex *index, gint id,
|
2011-12-30 15:31:17 +00:00
|
|
|
GstIndexLookupMethod method, GstIndexAssociationFlags flags,
|
2010-01-21 15:19:44 +00:00
|
|
|
GstFormat format, gint64 value,
|
|
|
|
GCompareDataFunc func,
|
|
|
|
gpointer user_data);
|
2002-12-12 22:16:11 +00:00
|
|
|
|
|
|
|
/* working with index entries */
|
2011-12-30 15:24:52 +00:00
|
|
|
static
|
2004-02-18 05:26:59 +00:00
|
|
|
GType gst_index_entry_get_type (void);
|
2011-12-30 15:24:52 +00:00
|
|
|
static
|
2004-03-15 14:43:35 +00:00
|
|
|
GstIndexEntry * gst_index_entry_copy (GstIndexEntry *entry);
|
2011-12-30 15:24:52 +00:00
|
|
|
static
|
2010-01-21 15:19:44 +00:00
|
|
|
void gst_index_entry_free (GstIndexEntry *entry);
|
2011-12-30 15:24:52 +00:00
|
|
|
static
|
2010-01-21 15:19:44 +00:00
|
|
|
gboolean gst_index_entry_assoc_map (GstIndexEntry *entry,
|
|
|
|
GstFormat format, gint64 *value);
|
2002-12-12 22:16:11 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
2004-03-15 14:43:35 +00:00
|
|
|
|
2002-12-12 22:16:11 +00:00
|
|
|
#endif /* __GST_INDEX_H__ */
|