mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
gst-libs/gst/: Add padding (you will need to rebuild gst-plugins-base, gst-plugins and all applications afterwards!)
Original commit message from CVS: * gst-libs/gst/audio/gstaudioclock.h: * gst-libs/gst/audio/gstaudiofilter.h: * gst-libs/gst/audio/gstaudiosink.h: * gst-libs/gst/audio/gstaudiosrc.h: * gst-libs/gst/audio/gstbaseaudiosink.h: * gst-libs/gst/audio/gstbaseaudiosrc.h: * gst-libs/gst/audio/gstringbuffer.h: * gst-libs/gst/net/gstnetbuffer.h: * gst-libs/gst/rtp/gstbasertpdepayload.h: * gst-libs/gst/rtp/gstrtpbuffer.h: Add padding (you will need to rebuild gst-plugins-base, gst-plugins and all applications afterwards!)
This commit is contained in:
parent
822e77203a
commit
b9b56ce7d3
12 changed files with 84 additions and 0 deletions
15
ChangeLog
15
ChangeLog
|
@ -1,3 +1,18 @@
|
||||||
|
2005-08-09 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* gst-libs/gst/audio/gstaudioclock.h:
|
||||||
|
* gst-libs/gst/audio/gstaudiofilter.h:
|
||||||
|
* gst-libs/gst/audio/gstaudiosink.h:
|
||||||
|
* gst-libs/gst/audio/gstaudiosrc.h:
|
||||||
|
* gst-libs/gst/audio/gstbaseaudiosink.h:
|
||||||
|
* gst-libs/gst/audio/gstbaseaudiosrc.h:
|
||||||
|
* gst-libs/gst/audio/gstringbuffer.h:
|
||||||
|
* gst-libs/gst/net/gstnetbuffer.h:
|
||||||
|
* gst-libs/gst/rtp/gstbasertpdepayload.h:
|
||||||
|
* gst-libs/gst/rtp/gstrtpbuffer.h:
|
||||||
|
Add padding (you will need to rebuild gst-plugins-base,
|
||||||
|
gst-plugins and all applications afterwards!)
|
||||||
|
|
||||||
2005-08-09 Tim-Philipp Müller <tim at centricular dot net>
|
2005-08-09 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
* gst-libs/gst/riff/riff-read.c: (gst_riff_read_chunk),
|
* gst-libs/gst/riff/riff-read.c: (gst_riff_read_chunk),
|
||||||
|
|
|
@ -53,12 +53,14 @@ struct _GstAudioClock {
|
||||||
|
|
||||||
GstClockTime last_time;
|
GstClockTime last_time;
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
gpointer _gst_reserved[GST_PADDING];
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstAudioClockClass {
|
struct _GstAudioClockClass {
|
||||||
GstSystemClockClass parent_class;
|
GstSystemClockClass parent_class;
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
gpointer _gst_reserved[GST_PADDING];
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -66,6 +66,9 @@ struct _GstAudiofilter {
|
||||||
int n_samples;
|
int n_samples;
|
||||||
int size;
|
int size;
|
||||||
int bytes_per_sample;
|
int bytes_per_sample;
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstAudiofilterClass {
|
struct _GstAudiofilterClass {
|
||||||
|
@ -75,6 +78,9 @@ struct _GstAudiofilterClass {
|
||||||
GstAudiofilterSetupFunc setup;
|
GstAudiofilterSetupFunc setup;
|
||||||
GstAudiofilterInplaceFilterFunc filter_inplace;
|
GstAudiofilterInplaceFilterFunc filter_inplace;
|
||||||
GstAudiofilterFilterFunc filter;
|
GstAudiofilterFilterFunc filter;
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_audio_filter_get_type(void);
|
GType gst_audio_filter_get_type(void);
|
||||||
|
|
|
@ -59,6 +59,9 @@ struct _GstAudioSink {
|
||||||
|
|
||||||
/*< private >*/ /* with LOCK */
|
/*< private >*/ /* with LOCK */
|
||||||
GThread *thread;
|
GThread *thread;
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstAudioSinkClass {
|
struct _GstAudioSinkClass {
|
||||||
|
@ -80,6 +83,9 @@ struct _GstAudioSinkClass {
|
||||||
guint (*delay) (GstAudioSink *sink);
|
guint (*delay) (GstAudioSink *sink);
|
||||||
/* reset the audio device, unblock from a write */
|
/* reset the audio device, unblock from a write */
|
||||||
void (*reset) (GstAudioSink *sink);
|
void (*reset) (GstAudioSink *sink);
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_audio_sink_get_type(void);
|
GType gst_audio_sink_get_type(void);
|
||||||
|
|
|
@ -58,6 +58,9 @@ struct _GstAudioSrc {
|
||||||
|
|
||||||
/*< private >*/ /* with LOCK */
|
/*< private >*/ /* with LOCK */
|
||||||
GThread *thread;
|
GThread *thread;
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstAudioSrcClass {
|
struct _GstAudioSrcClass {
|
||||||
|
@ -75,6 +78,9 @@ struct _GstAudioSrcClass {
|
||||||
guint (*delay) (GstAudioSrc *src);
|
guint (*delay) (GstAudioSrc *src);
|
||||||
/* reset the audio device, unblock from a write */
|
/* reset the audio device, unblock from a write */
|
||||||
void (*reset) (GstAudioSrc *src);
|
void (*reset) (GstAudioSrc *src);
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_audio_src_get_type(void);
|
GType gst_audio_src_get_type(void);
|
||||||
|
|
|
@ -82,6 +82,9 @@ struct _GstBaseAudioSink {
|
||||||
|
|
||||||
/* clock */
|
/* clock */
|
||||||
GstClock *clock;
|
GstClock *clock;
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstBaseAudioSinkClass {
|
struct _GstBaseAudioSinkClass {
|
||||||
|
@ -89,6 +92,9 @@ struct _GstBaseAudioSinkClass {
|
||||||
|
|
||||||
/* subclass ringbuffer allocation */
|
/* subclass ringbuffer allocation */
|
||||||
GstRingBuffer* (*create_ringbuffer) (GstBaseAudioSink *sink);
|
GstRingBuffer* (*create_ringbuffer) (GstBaseAudioSink *sink);
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_base_audio_sink_get_type(void);
|
GType gst_base_audio_sink_get_type(void);
|
||||||
|
|
|
@ -59,6 +59,9 @@ struct _GstBaseAudioSrc {
|
||||||
|
|
||||||
/* clock */
|
/* clock */
|
||||||
GstClock *clock;
|
GstClock *clock;
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstBaseAudioSrcClass {
|
struct _GstBaseAudioSrcClass {
|
||||||
|
@ -66,6 +69,9 @@ struct _GstBaseAudioSrcClass {
|
||||||
|
|
||||||
/* subclass ringbuffer allocation */
|
/* subclass ringbuffer allocation */
|
||||||
GstRingBuffer* (*create_ringbuffer) (GstBaseAudioSrc *src);
|
GstRingBuffer* (*create_ringbuffer) (GstBaseAudioSrc *src);
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_base_audio_src_get_type(void);
|
GType gst_base_audio_src_get_type(void);
|
||||||
|
|
|
@ -139,6 +139,9 @@ struct _GstRingBufferSpec
|
||||||
/* out */
|
/* out */
|
||||||
gint bytes_per_sample; /* number of bytes of one sample */
|
gint bytes_per_sample; /* number of bytes of one sample */
|
||||||
guint8 silence_sample[32]; /* bytes representing silence */
|
guint8 silence_sample[32]; /* bytes representing silence */
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
#define GST_RING_BUFFER_GET_COND(buf) (((GstRingBuffer *)buf)->cond)
|
#define GST_RING_BUFFER_GET_COND(buf) (((GstRingBuffer *)buf)->cond)
|
||||||
|
@ -169,6 +172,9 @@ struct _GstRingBuffer {
|
||||||
guint64 next_sample; /* the next sample we need to process */
|
guint64 next_sample; /* the next sample we need to process */
|
||||||
GstRingBufferCallback callback;
|
GstRingBufferCallback callback;
|
||||||
gpointer cb_data;
|
gpointer cb_data;
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstRingBufferClass {
|
struct _GstRingBufferClass {
|
||||||
|
@ -192,6 +198,9 @@ struct _GstRingBufferClass {
|
||||||
|
|
||||||
/* number of samples queued in device */
|
/* number of samples queued in device */
|
||||||
guint (*delay) (GstRingBuffer *buf);
|
guint (*delay) (GstRingBuffer *buf);
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_ring_buffer_get_type(void);
|
GType gst_ring_buffer_get_type(void);
|
||||||
|
|
|
@ -52,6 +52,8 @@ typedef struct
|
||||||
guint32 ip4;
|
guint32 ip4;
|
||||||
} address;
|
} address;
|
||||||
guint16 port;
|
guint16 port;
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
} GstNetAddress;
|
} GstNetAddress;
|
||||||
|
|
||||||
struct _GstNetBuffer {
|
struct _GstNetBuffer {
|
||||||
|
@ -59,10 +61,16 @@ struct _GstNetBuffer {
|
||||||
|
|
||||||
GstNetAddress from;
|
GstNetAddress from;
|
||||||
GstNetAddress to;
|
GstNetAddress to;
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstNetBufferClass {
|
struct _GstNetBufferClass {
|
||||||
GstBufferClass buffer_class;
|
GstBufferClass buffer_class;
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
/* creating buffers */
|
/* creating buffers */
|
||||||
|
|
|
@ -52,6 +52,8 @@ typedef struct
|
||||||
guint32 ip4;
|
guint32 ip4;
|
||||||
} address;
|
} address;
|
||||||
guint16 port;
|
guint16 port;
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
} GstNetAddress;
|
} GstNetAddress;
|
||||||
|
|
||||||
struct _GstNetBuffer {
|
struct _GstNetBuffer {
|
||||||
|
@ -59,10 +61,16 @@ struct _GstNetBuffer {
|
||||||
|
|
||||||
GstNetAddress from;
|
GstNetAddress from;
|
||||||
GstNetAddress to;
|
GstNetAddress to;
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstNetBufferClass {
|
struct _GstNetBufferClass {
|
||||||
GstBufferClass buffer_class;
|
GstBufferClass buffer_class;
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
/* creating buffers */
|
/* creating buffers */
|
||||||
|
|
|
@ -63,6 +63,9 @@ struct _GstBaseRTPDepayload
|
||||||
// dropping any packets that are more than
|
// dropping any packets that are more than
|
||||||
// RTP_QUEUEDELAY ms late
|
// RTP_QUEUEDELAY ms late
|
||||||
GQueue *queue;
|
GQueue *queue;
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstBaseRTPDepayloadClass
|
struct _GstBaseRTPDepayloadClass
|
||||||
|
@ -83,6 +86,9 @@ struct _GstBaseRTPDepayloadClass
|
||||||
// non-pure function used to convert from RTP timestamp to GST timestamp
|
// non-pure function used to convert from RTP timestamp to GST timestamp
|
||||||
// this function is used by the child class before gst_pad_pushing
|
// this function is used by the child class before gst_pad_pushing
|
||||||
GstBuffer* (*setgsttimestamp) (GstRTPBuffer *in);
|
GstBuffer* (*setgsttimestamp) (GstRTPBuffer *in);
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_base_rtp_depayload_get_type (void);
|
GType gst_base_rtp_depayload_get_type (void);
|
||||||
|
|
|
@ -48,10 +48,16 @@ struct _GstRTPBuffer {
|
||||||
guint32 timestamp;
|
guint32 timestamp;
|
||||||
guint32 timestampinc;
|
guint32 timestampinc;
|
||||||
gboolean mark;
|
gboolean mark;
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstRTPBufferClass {
|
struct _GstRTPBufferClass {
|
||||||
GstBufferClass buffer_class;
|
GstBufferClass buffer_class;
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
/* creating buffers */
|
/* creating buffers */
|
||||||
|
|
Loading…
Reference in a new issue