mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +00:00
gst/: Add padding to our base elements' class and instance structs and to GstIterator (you will need to rebuild all p...
Original commit message from CVS: * gst/base/gstadapter.h: * gst/base/gstbasesink.h: * gst/base/gstbasesrc.h: * gst/base/gstbasetransform.h: * gst/base/gstcollectpads.h: * gst/base/gstpushsrc.h: * gst/gstiterator.h: Add padding to our base elements' class and instance structs and to GstIterator (you will need to rebuild all plugins and apps!)
This commit is contained in:
parent
0454767817
commit
46cc9bc152
14 changed files with 76 additions and 1 deletions
12
ChangeLog
12
ChangeLog
|
@ -1,3 +1,15 @@
|
||||||
|
2005-08-08 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* gst/base/gstadapter.h:
|
||||||
|
* gst/base/gstbasesink.h:
|
||||||
|
* gst/base/gstbasesrc.h:
|
||||||
|
* gst/base/gstbasetransform.h:
|
||||||
|
* gst/base/gstcollectpads.h:
|
||||||
|
* gst/base/gstpushsrc.h:
|
||||||
|
* gst/gstiterator.h:
|
||||||
|
Add padding to our base elements' class and instance structs and
|
||||||
|
to GstIterator (you will need to rebuild all plugins and apps!)
|
||||||
|
|
||||||
2005-08-08 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
2005-08-08 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
* gst/gstbin.c: (bin_bus_handler):
|
* gst/gstbin.c: (bin_bus_handler):
|
||||||
|
|
|
@ -51,12 +51,14 @@ struct _GstAdapter {
|
||||||
guint assembled_size;
|
guint assembled_size;
|
||||||
guint assembled_len;
|
guint assembled_len;
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
gpointer _gst_reserved[GST_PADDING];
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstAdapterClass {
|
struct _GstAdapterClass {
|
||||||
GObjectClass parent_class;
|
GObjectClass parent_class;
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
gpointer _gst_reserved[GST_PADDING];
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -69,6 +69,9 @@ struct _GstBaseSink {
|
||||||
gboolean eos;
|
gboolean eos;
|
||||||
gboolean need_preroll;
|
gboolean need_preroll;
|
||||||
gboolean have_preroll;
|
gboolean have_preroll;
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstBaseSinkClass {
|
struct _GstBaseSinkClass {
|
||||||
|
@ -99,6 +102,9 @@ struct _GstBaseSinkClass {
|
||||||
gboolean (*event) (GstBaseSink *sink, GstEvent *event);
|
gboolean (*event) (GstBaseSink *sink, GstEvent *event);
|
||||||
GstFlowReturn (*preroll) (GstBaseSink *sink, GstBuffer *buffer);
|
GstFlowReturn (*preroll) (GstBaseSink *sink, GstBuffer *buffer);
|
||||||
GstFlowReturn (*render) (GstBaseSink *sink, GstBuffer *buffer);
|
GstFlowReturn (*render) (GstBaseSink *sink, GstBuffer *buffer);
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_base_sink_get_type(void);
|
GType gst_base_sink_get_type(void);
|
||||||
|
|
|
@ -91,6 +91,9 @@ struct _GstBaseSrc {
|
||||||
|
|
||||||
gint num_buffers;
|
gint num_buffers;
|
||||||
gint num_buffers_left;
|
gint num_buffers_left;
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -136,6 +139,9 @@ struct _GstBaseSrcClass {
|
||||||
/* ask the subclass to create a buffer with offset and size */
|
/* ask the subclass to create a buffer with offset and size */
|
||||||
GstFlowReturn (*create) (GstBaseSrc *src, guint64 offset, guint size,
|
GstFlowReturn (*create) (GstBaseSrc *src, guint64 offset, guint size,
|
||||||
GstBuffer **buf);
|
GstBuffer **buf);
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_base_src_get_type(void);
|
GType gst_base_src_get_type(void);
|
||||||
|
|
|
@ -55,6 +55,9 @@ struct _GstBaseTransform {
|
||||||
gboolean in_place;
|
gboolean in_place;
|
||||||
guint out_size;
|
guint out_size;
|
||||||
gboolean delay_configure;
|
gboolean delay_configure;
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstBaseTransformClass {
|
struct _GstBaseTransformClass {
|
||||||
|
@ -86,6 +89,9 @@ struct _GstBaseTransformClass {
|
||||||
|
|
||||||
/* transform a buffer inplace */
|
/* transform a buffer inplace */
|
||||||
GstFlowReturn (*transform_ip) (GstBaseTransform *trans, GstBuffer *buf);
|
GstFlowReturn (*transform_ip) (GstBaseTransform *trans, GstBuffer *buf);
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
void gst_base_transform_set_passthrough (GstBaseTransform *trans, gboolean passthrough);
|
void gst_base_transform_set_passthrough (GstBaseTransform *trans, gboolean passthrough);
|
||||||
|
|
|
@ -70,11 +70,15 @@ struct _GstCollectPads {
|
||||||
guint queuedpads; /* number of pads with a buffer */
|
guint queuedpads; /* number of pads with a buffer */
|
||||||
|
|
||||||
gboolean started;
|
gboolean started;
|
||||||
|
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstCollectPadsClass {
|
struct _GstCollectPadsClass {
|
||||||
GstObjectClass parent_class;
|
GstObjectClass parent_class;
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_collectpads_get_type(void);
|
GType gst_collectpads_get_type(void);
|
||||||
|
|
|
@ -41,6 +41,9 @@ typedef struct _GstPushSrcClass GstPushSrcClass;
|
||||||
|
|
||||||
struct _GstPushSrc {
|
struct _GstPushSrc {
|
||||||
GstBaseSrc parent;
|
GstBaseSrc parent;
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstPushSrcClass {
|
struct _GstPushSrcClass {
|
||||||
|
@ -48,6 +51,9 @@ struct _GstPushSrcClass {
|
||||||
|
|
||||||
/* ask the subclass to create a buffer */
|
/* ask the subclass to create a buffer */
|
||||||
GstFlowReturn (*create) (GstPushSrc *src, GstBuffer **buf);
|
GstFlowReturn (*create) (GstPushSrc *src, GstBuffer **buf);
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_push_src_get_type(void);
|
GType gst_push_src_get_type(void);
|
||||||
|
|
|
@ -22,8 +22,8 @@
|
||||||
#ifndef __GST_ITERATOR_H__
|
#ifndef __GST_ITERATOR_H__
|
||||||
#define __GST_ITERATOR_H__
|
#define __GST_ITERATOR_H__
|
||||||
|
|
||||||
#include <glib.h>
|
|
||||||
#include <glib-object.h> /* for GValue in the fold */
|
#include <glib-object.h> /* for GValue in the fold */
|
||||||
|
#include "gstconfig.h"
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
@ -68,6 +68,9 @@ struct _GstIterator {
|
||||||
guint32 cookie; /* cookie of the iterator */
|
guint32 cookie; /* cookie of the iterator */
|
||||||
guint32 *master_cookie; /* pointer to guint32 holding the cookie when this
|
guint32 *master_cookie; /* pointer to guint32 holding the cookie when this
|
||||||
iterator was created */
|
iterator was created */
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
/* creating iterators */
|
/* creating iterators */
|
||||||
|
|
|
@ -51,12 +51,14 @@ struct _GstAdapter {
|
||||||
guint assembled_size;
|
guint assembled_size;
|
||||||
guint assembled_len;
|
guint assembled_len;
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
gpointer _gst_reserved[GST_PADDING];
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstAdapterClass {
|
struct _GstAdapterClass {
|
||||||
GObjectClass parent_class;
|
GObjectClass parent_class;
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
gpointer _gst_reserved[GST_PADDING];
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -69,6 +69,9 @@ struct _GstBaseSink {
|
||||||
gboolean eos;
|
gboolean eos;
|
||||||
gboolean need_preroll;
|
gboolean need_preroll;
|
||||||
gboolean have_preroll;
|
gboolean have_preroll;
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstBaseSinkClass {
|
struct _GstBaseSinkClass {
|
||||||
|
@ -99,6 +102,9 @@ struct _GstBaseSinkClass {
|
||||||
gboolean (*event) (GstBaseSink *sink, GstEvent *event);
|
gboolean (*event) (GstBaseSink *sink, GstEvent *event);
|
||||||
GstFlowReturn (*preroll) (GstBaseSink *sink, GstBuffer *buffer);
|
GstFlowReturn (*preroll) (GstBaseSink *sink, GstBuffer *buffer);
|
||||||
GstFlowReturn (*render) (GstBaseSink *sink, GstBuffer *buffer);
|
GstFlowReturn (*render) (GstBaseSink *sink, GstBuffer *buffer);
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_base_sink_get_type(void);
|
GType gst_base_sink_get_type(void);
|
||||||
|
|
|
@ -91,6 +91,9 @@ struct _GstBaseSrc {
|
||||||
|
|
||||||
gint num_buffers;
|
gint num_buffers;
|
||||||
gint num_buffers_left;
|
gint num_buffers_left;
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -136,6 +139,9 @@ struct _GstBaseSrcClass {
|
||||||
/* ask the subclass to create a buffer with offset and size */
|
/* ask the subclass to create a buffer with offset and size */
|
||||||
GstFlowReturn (*create) (GstBaseSrc *src, guint64 offset, guint size,
|
GstFlowReturn (*create) (GstBaseSrc *src, guint64 offset, guint size,
|
||||||
GstBuffer **buf);
|
GstBuffer **buf);
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_base_src_get_type(void);
|
GType gst_base_src_get_type(void);
|
||||||
|
|
|
@ -55,6 +55,9 @@ struct _GstBaseTransform {
|
||||||
gboolean in_place;
|
gboolean in_place;
|
||||||
guint out_size;
|
guint out_size;
|
||||||
gboolean delay_configure;
|
gboolean delay_configure;
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstBaseTransformClass {
|
struct _GstBaseTransformClass {
|
||||||
|
@ -86,6 +89,9 @@ struct _GstBaseTransformClass {
|
||||||
|
|
||||||
/* transform a buffer inplace */
|
/* transform a buffer inplace */
|
||||||
GstFlowReturn (*transform_ip) (GstBaseTransform *trans, GstBuffer *buf);
|
GstFlowReturn (*transform_ip) (GstBaseTransform *trans, GstBuffer *buf);
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
void gst_base_transform_set_passthrough (GstBaseTransform *trans, gboolean passthrough);
|
void gst_base_transform_set_passthrough (GstBaseTransform *trans, gboolean passthrough);
|
||||||
|
|
|
@ -70,11 +70,15 @@ struct _GstCollectPads {
|
||||||
guint queuedpads; /* number of pads with a buffer */
|
guint queuedpads; /* number of pads with a buffer */
|
||||||
|
|
||||||
gboolean started;
|
gboolean started;
|
||||||
|
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstCollectPadsClass {
|
struct _GstCollectPadsClass {
|
||||||
GstObjectClass parent_class;
|
GstObjectClass parent_class;
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_collectpads_get_type(void);
|
GType gst_collectpads_get_type(void);
|
||||||
|
|
|
@ -41,6 +41,9 @@ typedef struct _GstPushSrcClass GstPushSrcClass;
|
||||||
|
|
||||||
struct _GstPushSrc {
|
struct _GstPushSrc {
|
||||||
GstBaseSrc parent;
|
GstBaseSrc parent;
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstPushSrcClass {
|
struct _GstPushSrcClass {
|
||||||
|
@ -48,6 +51,9 @@ struct _GstPushSrcClass {
|
||||||
|
|
||||||
/* ask the subclass to create a buffer */
|
/* ask the subclass to create a buffer */
|
||||||
GstFlowReturn (*create) (GstPushSrc *src, GstBuffer **buf);
|
GstFlowReturn (*create) (GstPushSrc *src, GstBuffer **buf);
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_push_src_get_type(void);
|
GType gst_push_src_get_type(void);
|
||||||
|
|
Loading…
Reference in a new issue