projects
/
platform
/
upstream
/
gstreamer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
aggregator: Assert if the sink/src pad type that is to be used is not a GstAggregator...
[platform/upstream/gstreamer.git]
/
libs
/
gst
/
base
/
gsttypefindhelper.h
diff --git
a/libs/gst/base/gsttypefindhelper.h
b/libs/gst/base/gsttypefindhelper.h
index
a61c042
..
bda346c
100644
(file)
--- a/
libs/gst/base/gsttypefindhelper.h
+++ b/
libs/gst/base/gsttypefindhelper.h
@@
-17,37
+17,56
@@
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
- * Free Software Foundation, Inc., 5
9 Temple Place - Suite 330
,
- * Boston, MA 0211
1-1307
, USA.
+ * Free Software Foundation, Inc., 5
1 Franklin St, Fifth Floor
,
+ * Boston, MA 0211
0-1301
, USA.
*/
#ifndef __GST_TYPEFINDHELPER_H__
#define __GST_TYPEFINDHELPER_H__
#include <gst/gst.h>
*/
#ifndef __GST_TYPEFINDHELPER_H__
#define __GST_TYPEFINDHELPER_H__
#include <gst/gst.h>
+#include <gst/base/base-prelude.h>
G_BEGIN_DECLS
G_BEGIN_DECLS
+GST_BASE_API
GstCaps * gst_type_find_helper (GstPad *src, guint64 size);
GstCaps * gst_type_find_helper (GstPad *src, guint64 size);
+GST_BASE_API
GstCaps * gst_type_find_helper_for_data (GstObject *obj,
const guint8 *data,
gsize size,
GstTypeFindProbability *prob);
GstCaps * gst_type_find_helper_for_data (GstObject *obj,
const guint8 *data,
gsize size,
GstTypeFindProbability *prob);
+
+GST_BASE_API
+GstCaps * gst_type_find_helper_for_data_with_extension (GstObject *obj,
+ const guint8 *data,
+ gsize size,
+ const gchar *extension,
+ GstTypeFindProbability *prob);
+
+GST_BASE_API
GstCaps * gst_type_find_helper_for_buffer (GstObject *obj,
GstBuffer *buf,
GstTypeFindProbability *prob);
GstCaps * gst_type_find_helper_for_buffer (GstObject *obj,
GstBuffer *buf,
GstTypeFindProbability *prob);
+GST_BASE_API
+GstCaps * gst_type_find_helper_for_buffer_with_extension (GstObject *obj,
+ GstBuffer *buf,
+ const gchar *extension,
+ GstTypeFindProbability *prob);
+
+GST_BASE_API
GstCaps * gst_type_find_helper_for_extension (GstObject * obj,
const gchar * extension);
/**
* GstTypeFindHelperGetRangeFunction:
* @obj: a #GstObject that will handle the getrange request
GstCaps * gst_type_find_helper_for_extension (GstObject * obj,
const gchar * extension);
/**
* GstTypeFindHelperGetRangeFunction:
* @obj: a #GstObject that will handle the getrange request
- * @parent:
the parent of @obj or
NULL
+ * @parent:
(allow-none): the parent of @obj or %
NULL
* @offset: the offset of the range
* @length: the length of the range
* @offset: the offset of the range
* @length: the length of the range
- * @buffer: a memory location to hold the result buffer
+ * @buffer:
(out):
a memory location to hold the result buffer
*
* This function will be called by gst_type_find_helper_get_range() when
* typefinding functions request to peek at the data of a stream at certain
*
* This function will be called by gst_type_find_helper_get_range() when
* typefinding functions request to peek at the data of a stream at certain
@@
-64,7
+83,7
@@
typedef GstFlowReturn (*GstTypeFindHelperGetRangeFunction) (GstObject *obj,
guint64 offset,
guint length,
GstBuffer **buffer);
guint64 offset,
guint length,
GstBuffer **buffer);
-
+GST_BASE_API
GstCaps * gst_type_find_helper_get_range (GstObject *obj,
GstObject *parent,
GstTypeFindHelperGetRangeFunction func,
GstCaps * gst_type_find_helper_get_range (GstObject *obj,
GstObject *parent,
GstTypeFindHelperGetRangeFunction func,
@@
-72,6
+91,15
@@
GstCaps * gst_type_find_helper_get_range (GstObject *obj
const gchar *extension,
GstTypeFindProbability *prob);
const gchar *extension,
GstTypeFindProbability *prob);
+GST_BASE_API
+GstFlowReturn gst_type_find_helper_get_range_full (GstObject *obj,
+ GstObject *parent,
+ GstTypeFindHelperGetRangeFunction func,
+ guint64 size,
+ const gchar *extension,
+ GstCaps **caps,
+ GstTypeFindProbability *prob);
+
G_END_DECLS
#endif /* __GST_TYPEFINDHELPER_H__ */
G_END_DECLS
#endif /* __GST_TYPEFINDHELPER_H__ */