projects
/
platform
/
upstream
/
gstreamer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
element: remove inactive pad g_warning in add_pad
[platform/upstream/gstreamer.git]
/
gst
/
gstbufferlist.h
diff --git
a/gst/gstbufferlist.h
b/gst/gstbufferlist.h
index
b88d1f6
..
ce9fe11
100644
(file)
--- a/
gst/gstbufferlist.h
+++ b/
gst/gstbufferlist.h
@@
-16,8
+16,8
@@
*
* 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_BUFFER_LIST_H__
*/
#ifndef __GST_BUFFER_LIST_H__
@@
-27,7
+27,7
@@
G_BEGIN_DECLS
G_BEGIN_DECLS
-GST_
EXPORT
GType _gst_buffer_list_type;
+GST_
API
GType _gst_buffer_list_type;
#define GST_TYPE_BUFFER_LIST (_gst_buffer_list_type)
#define GST_IS_BUFFER_LIST(obj) (GST_IS_MINI_OBJECT_TYPE(obj, GST_TYPE_BUFFER_LIST))
#define GST_TYPE_BUFFER_LIST (_gst_buffer_list_type)
#define GST_IS_BUFFER_LIST(obj) (GST_IS_MINI_OBJECT_TYPE(obj, GST_TYPE_BUFFER_LIST))
@@
-38,7
+38,7
@@
typedef struct _GstBufferList GstBufferList;
/**
* GstBufferListFunc:
/**
* GstBufferListFunc:
- * @buffer: pointer the buffer
+ * @buffer:
(out) (nullable):
pointer the buffer
* @idx: the index of @buffer
* @user_data: user data passed to gst_buffer_list_foreach()
*
* @idx: the index of @buffer
* @user_data: user data passed to gst_buffer_list_foreach()
*
@@
-48,7
+48,7
@@
typedef struct _GstBufferList GstBufferList;
* When this function returns %TRUE, the next buffer will be
* returned. When %FALSE is returned, gst_buffer_list_foreach() will return.
*
* When this function returns %TRUE, the next buffer will be
* returned. When %FALSE is returned, gst_buffer_list_foreach() will return.
*
- * When @buffer is set to NULL, the item will be removed from the bufferlist.
+ * When @buffer is set to
%
NULL, the item will be removed from the bufferlist.
* When @buffer has been made writable, the new buffer reference can be assigned
* to @buffer. This function is responsible for unreffing the old buffer when
* removing or modifying.
* When @buffer has been made writable, the new buffer reference can be assigned
* to @buffer. This function is responsible for unreffing the old buffer when
* removing or modifying.
@@
-66,17
+66,13
@@
typedef gboolean (*GstBufferListFunc) (GstBuffer **buffer, guint idx,
*
* Increases the refcount of the given buffer list by one.
*
*
* Increases the refcount of the given buffer list by one.
*
- * Note that the refcount affects the writ
e
ability of @list and its data, see
+ * Note that the refcount affects the writability of @list and its data, see
* gst_buffer_list_make_writable(). It is important to note that keeping
* additional references to GstBufferList instances can potentially increase
* the number of memcpy operations in a pipeline.
*
* Returns: (transfer full): @list
*/
* gst_buffer_list_make_writable(). It is important to note that keeping
* additional references to GstBufferList instances can potentially increase
* the number of memcpy operations in a pipeline.
*
* Returns: (transfer full): @list
*/
-#ifdef _FOOL_GTK_DOC_
-G_INLINE_FUNC GstBufferList * gst_buffer_list_ref (GstBufferList * list);
-#endif
-
static inline GstBufferList *
gst_buffer_list_ref (GstBufferList * list)
{
static inline GstBufferList *
gst_buffer_list_ref (GstBufferList * list)
{
@@
-91,10
+87,6
@@
gst_buffer_list_ref (GstBufferList * list)
* Decreases the refcount of the buffer list. If the refcount reaches 0, the
* buffer list will be freed.
*/
* Decreases the refcount of the buffer list. If the refcount reaches 0, the
* buffer list will be freed.
*/
-#ifdef _FOOL_GTK_DOC_
-G_INLINE_FUNC void gst_buffer_list_unref (GstBufferList * list);
-#endif
-
static inline void
gst_buffer_list_unref (GstBufferList * list)
{
static inline void
gst_buffer_list_unref (GstBufferList * list)
{
@@
-112,10
+104,6
@@
gst_buffer_list_unref (GstBufferList * list)
*
* Returns: (transfer full): a new copy of @list.
*/
*
* Returns: (transfer full): a new copy of @list.
*/
-#ifdef _FOOL_GTK_DOC_
-G_INLINE_FUNC GstBufferList * gst_buffer_list_copy (const GstBufferList * list);
-#endif
-
static inline GstBufferList *
gst_buffer_list_copy (const GstBufferList * list)
{
static inline GstBufferList *
gst_buffer_list_copy (const GstBufferList * list)
{
@@
-143,24
+131,48
@@
gst_buffer_list_copy (const GstBufferList * list)
*/
#define gst_buffer_list_make_writable(list) GST_BUFFER_LIST_CAST (gst_mini_object_make_writable (GST_MINI_OBJECT_CAST (list)))
*/
#define gst_buffer_list_make_writable(list) GST_BUFFER_LIST_CAST (gst_mini_object_make_writable (GST_MINI_OBJECT_CAST (list)))
+GST_API
GType gst_buffer_list_get_type (void);
/* allocation */
GType gst_buffer_list_get_type (void);
/* allocation */
+
+GST_API
GstBufferList * gst_buffer_list_new (void) G_GNUC_MALLOC;
GstBufferList * gst_buffer_list_new (void) G_GNUC_MALLOC;
+
+GST_API
GstBufferList * gst_buffer_list_new_sized (guint size) G_GNUC_MALLOC;
GstBufferList * gst_buffer_list_new_sized (guint size) G_GNUC_MALLOC;
+GST_API
guint gst_buffer_list_length (GstBufferList *list);
guint gst_buffer_list_length (GstBufferList *list);
+GST_API
GstBuffer * gst_buffer_list_get (GstBufferList *list, guint idx);
GstBuffer * gst_buffer_list_get (GstBufferList *list, guint idx);
-void gst_buffer_list_insert (GstBufferList *list, guint idx, GstBuffer *buffer);
+
+GST_API
+GstBuffer * gst_buffer_list_get_writable (GstBufferList *list, guint idx);
+
+GST_API
+void gst_buffer_list_insert (GstBufferList *list, gint idx, GstBuffer *buffer);
+
+GST_API
void gst_buffer_list_remove (GstBufferList *list, guint idx, guint length);
void gst_buffer_list_remove (GstBufferList *list, guint idx, guint length);
+GST_API
gboolean gst_buffer_list_foreach (GstBufferList *list,
GstBufferListFunc func,
gpointer user_data);
gboolean gst_buffer_list_foreach (GstBufferList *list,
GstBufferListFunc func,
gpointer user_data);
+GST_API
+GstBufferList * gst_buffer_list_copy_deep (const GstBufferList * list);
+
+GST_API
+gsize gst_buffer_list_calculate_size (GstBufferList * list);
#define gst_buffer_list_add(l,b) gst_buffer_list_insert((l),-1,(b));
#define gst_buffer_list_add(l,b) gst_buffer_list_insert((l),-1,(b));
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstBufferList, gst_buffer_list_unref)
+#endif
+
G_END_DECLS
#endif /* __GST_BUFFER_LIST_H__ */
G_END_DECLS
#endif /* __GST_BUFFER_LIST_H__ */