mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +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>
|
||||
|
||||
* gst-libs/gst/riff/riff-read.c: (gst_riff_read_chunk),
|
||||
|
|
|
@ -53,12 +53,14 @@ struct _GstAudioClock {
|
|||
|
||||
GstClockTime last_time;
|
||||
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
struct _GstAudioClockClass {
|
||||
GstSystemClockClass parent_class;
|
||||
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
|
|
|
@ -66,6 +66,9 @@ struct _GstAudiofilter {
|
|||
int n_samples;
|
||||
int size;
|
||||
int bytes_per_sample;
|
||||
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
struct _GstAudiofilterClass {
|
||||
|
@ -75,6 +78,9 @@ struct _GstAudiofilterClass {
|
|||
GstAudiofilterSetupFunc setup;
|
||||
GstAudiofilterInplaceFilterFunc filter_inplace;
|
||||
GstAudiofilterFilterFunc filter;
|
||||
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
GType gst_audio_filter_get_type(void);
|
||||
|
|
|
@ -59,6 +59,9 @@ struct _GstAudioSink {
|
|||
|
||||
/*< private >*/ /* with LOCK */
|
||||
GThread *thread;
|
||||
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
struct _GstAudioSinkClass {
|
||||
|
@ -80,6 +83,9 @@ struct _GstAudioSinkClass {
|
|||
guint (*delay) (GstAudioSink *sink);
|
||||
/* reset the audio device, unblock from a write */
|
||||
void (*reset) (GstAudioSink *sink);
|
||||
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
GType gst_audio_sink_get_type(void);
|
||||
|
|
|
@ -58,6 +58,9 @@ struct _GstAudioSrc {
|
|||
|
||||
/*< private >*/ /* with LOCK */
|
||||
GThread *thread;
|
||||
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
struct _GstAudioSrcClass {
|
||||
|
@ -75,6 +78,9 @@ struct _GstAudioSrcClass {
|
|||
guint (*delay) (GstAudioSrc *src);
|
||||
/* reset the audio device, unblock from a write */
|
||||
void (*reset) (GstAudioSrc *src);
|
||||
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
GType gst_audio_src_get_type(void);
|
||||
|
|
|
@ -82,6 +82,9 @@ struct _GstBaseAudioSink {
|
|||
|
||||
/* clock */
|
||||
GstClock *clock;
|
||||
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
struct _GstBaseAudioSinkClass {
|
||||
|
@ -89,6 +92,9 @@ struct _GstBaseAudioSinkClass {
|
|||
|
||||
/* subclass ringbuffer allocation */
|
||||
GstRingBuffer* (*create_ringbuffer) (GstBaseAudioSink *sink);
|
||||
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
GType gst_base_audio_sink_get_type(void);
|
||||
|
|
|
@ -59,6 +59,9 @@ struct _GstBaseAudioSrc {
|
|||
|
||||
/* clock */
|
||||
GstClock *clock;
|
||||
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
struct _GstBaseAudioSrcClass {
|
||||
|
@ -66,6 +69,9 @@ struct _GstBaseAudioSrcClass {
|
|||
|
||||
/* subclass ringbuffer allocation */
|
||||
GstRingBuffer* (*create_ringbuffer) (GstBaseAudioSrc *src);
|
||||
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
GType gst_base_audio_src_get_type(void);
|
||||
|
|
|
@ -139,6 +139,9 @@ struct _GstRingBufferSpec
|
|||
/* out */
|
||||
gint bytes_per_sample; /* number of bytes of one sample */
|
||||
guint8 silence_sample[32]; /* bytes representing silence */
|
||||
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
#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 */
|
||||
GstRingBufferCallback callback;
|
||||
gpointer cb_data;
|
||||
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
struct _GstRingBufferClass {
|
||||
|
@ -192,6 +198,9 @@ struct _GstRingBufferClass {
|
|||
|
||||
/* number of samples queued in device */
|
||||
guint (*delay) (GstRingBuffer *buf);
|
||||
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
GType gst_ring_buffer_get_type(void);
|
||||
|
|
|
@ -52,6 +52,8 @@ typedef struct
|
|||
guint32 ip4;
|
||||
} address;
|
||||
guint16 port;
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING];
|
||||
} GstNetAddress;
|
||||
|
||||
struct _GstNetBuffer {
|
||||
|
@ -59,10 +61,16 @@ struct _GstNetBuffer {
|
|||
|
||||
GstNetAddress from;
|
||||
GstNetAddress to;
|
||||
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
struct _GstNetBufferClass {
|
||||
GstBufferClass buffer_class;
|
||||
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
/* creating buffers */
|
||||
|
|
|
@ -52,6 +52,8 @@ typedef struct
|
|||
guint32 ip4;
|
||||
} address;
|
||||
guint16 port;
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING];
|
||||
} GstNetAddress;
|
||||
|
||||
struct _GstNetBuffer {
|
||||
|
@ -59,10 +61,16 @@ struct _GstNetBuffer {
|
|||
|
||||
GstNetAddress from;
|
||||
GstNetAddress to;
|
||||
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
struct _GstNetBufferClass {
|
||||
GstBufferClass buffer_class;
|
||||
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
/* creating buffers */
|
||||
|
|
|
@ -63,6 +63,9 @@ struct _GstBaseRTPDepayload
|
|||
// dropping any packets that are more than
|
||||
// RTP_QUEUEDELAY ms late
|
||||
GQueue *queue;
|
||||
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
struct _GstBaseRTPDepayloadClass
|
||||
|
@ -83,6 +86,9 @@ struct _GstBaseRTPDepayloadClass
|
|||
// non-pure function used to convert from RTP timestamp to GST timestamp
|
||||
// this function is used by the child class before gst_pad_pushing
|
||||
GstBuffer* (*setgsttimestamp) (GstRTPBuffer *in);
|
||||
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
GType gst_base_rtp_depayload_get_type (void);
|
||||
|
|
|
@ -48,10 +48,16 @@ struct _GstRTPBuffer {
|
|||
guint32 timestamp;
|
||||
guint32 timestampinc;
|
||||
gboolean mark;
|
||||
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
struct _GstRTPBufferClass {
|
||||
GstBufferClass buffer_class;
|
||||
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
/* creating buffers */
|
||||
|
|
Loading…
Reference in a new issue