expand tabs

Original commit message from CVS:
expand tabs
This commit is contained in:
Thomas Vander Stichele 2005-12-06 19:48:07 +00:00
parent 3eceb5761b
commit ffe763c043
27 changed files with 259 additions and 229 deletions

View file

@ -1,3 +1,33 @@
2005-12-06 Thomas Vander Stichele <thomas at apestaart dot org>
* ext/a52dec/gsta52dec.h:
* ext/dvdread/dvdreadsrc.h:
* ext/lame/gstlame.h:
* ext/mad/gstid3tag.c:
* ext/mad/gstmad.c: (gst_mad_update_info):
* ext/mad/gstmad.h:
* ext/mpeg2dec/gstmpeg2dec.h:
* ext/sidplay/gstsiddec.h:
* gst/ac3parse/gstac3parse.c:
* gst/ac3parse/gstac3parse.h:
* gst/asfdemux/gstasfdemux.c:
* gst/asfdemux/gstasfdemux.h:
* gst/iec958/ac3iec.h:
* gst/mpegaudioparse/gstmpegaudioparse.c: (gst_mp3parse_chain):
* gst/mpegaudioparse/gstmpegaudioparse.h:
* gst/mpegstream/gstdvddemux.h:
* gst/mpegstream/gstmpegclock.h:
* gst/mpegstream/gstmpegdemux.h:
* gst/mpegstream/gstmpegpacketize.h:
* gst/mpegstream/gstmpegparse.c:
* gst/mpegstream/gstmpegparse.h:
* gst/mpegstream/gstrfc2250enc.c:
* gst/mpegstream/gstrfc2250enc.h:
* gst/realmedia/rmdemux.c:
* gst/realmedia/rmdemux.h:
* gst/synaesthesia/synaescope.c:
expand tabs
=== release 0.10.0 === === release 0.10.0 ===
2005-12-05 <thomas (at) apestaart (dot) org> 2005-12-05 <thomas (at) apestaart (dot) org>

View file

@ -40,28 +40,28 @@ typedef struct _GstA52Dec GstA52Dec;
typedef struct _GstA52DecClass GstA52DecClass; typedef struct _GstA52DecClass GstA52DecClass;
struct _GstA52Dec { struct _GstA52Dec {
GstElement element; GstElement element;
/* pads */ /* pads */
GstPad *sinkpad, GstPad *sinkpad,
*srcpad; *srcpad;
gboolean dvdmode; gboolean dvdmode;
int bit_rate; int bit_rate;
int sample_rate; int sample_rate;
int stream_channels; int stream_channels;
int request_channels; int request_channels;
int using_channels; int using_channels;
sample_t level; sample_t level;
sample_t bias; sample_t bias;
gboolean dynamic_range_compression; gboolean dynamic_range_compression;
sample_t *samples; sample_t *samples;
a52_state_t *state; a52_state_t *state;
GstBuffer *cache; GstBuffer *cache;
GstClockTime time; GstClockTime time;
}; };
struct _GstA52DecClass { struct _GstA52DecClass {

View file

@ -39,7 +39,7 @@ GstElementDetails dvdreadsrc_details;
/* NOTE: per-element flags start with 16 for now */ /* NOTE: per-element flags start with 16 for now */
typedef enum { typedef enum {
DVDREADSRC_OPEN = (GST_ELEMENT_FLAG_LAST << 0), DVDREADSRC_OPEN = (GST_ELEMENT_FLAG_LAST << 0),
DVDREADSRC_FLAG_LAST = (GST_ELEMENT_FLAG_LAST << 2) DVDREADSRC_FLAG_LAST = (GST_ELEMENT_FLAG_LAST << 2)
} DVDReadSrcFlags; } DVDReadSrcFlags;

View file

@ -42,9 +42,9 @@ extern "C" {
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_LAME)) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_LAME))
typedef enum { typedef enum {
GST_LAME_OPEN = (GST_ELEMENT_FLAG_LAST << 0), GST_LAME_OPEN = (GST_ELEMENT_FLAG_LAST << 0),
GST_LAME_FLAG_LAST = (GST_ELEMENT_FLAG_LAST << 2) GST_LAME_FLAG_LAST = (GST_ELEMENT_FLAG_LAST << 2)
} GstLameFlags; } GstLameFlags;
typedef struct _GstLame GstLame; typedef struct _GstLame GstLame;

View file

@ -401,9 +401,9 @@ gst_id3_tag_get_property (GObject * object, guint prop_id, GValue * value,
} }
} }
#define gst_id3_tag_set_state(tag,new_state) G_STMT_START { \ #define gst_id3_tag_set_state(tag,new_state) G_STMT_START { \
GST_LOG_OBJECT (tag, "setting state to %s", #new_state ); \ GST_LOG_OBJECT (tag, "setting state to %s", #new_state ); \
tag->state = new_state; \ tag->state = new_state; \
}G_STMT_END }G_STMT_END
static const GstQueryType * static const GstQueryType *

View file

@ -931,12 +931,12 @@ gst_mad_update_info (GstMad * mad)
struct mad_header *header = &mad->frame.header; struct mad_header *header = &mad->frame.header;
gboolean changed = FALSE; gboolean changed = FALSE;
#define CHECK_HEADER(h1,str) \ #define CHECK_HEADER(h1,str) \
G_STMT_START{ \ G_STMT_START{ \
if (mad->header.h1 != header->h1 || mad->new_header) { \ if (mad->header.h1 != header->h1 || mad->new_header) { \
mad->header.h1 = header->h1; \ mad->header.h1 = header->h1; \
changed = TRUE; \ changed = TRUE; \
}; \ }; \
} G_STMT_END } G_STMT_END
/* update average bitrate */ /* update average bitrate */
@ -1047,11 +1047,11 @@ gst_mad_check_restart (GstMad * mad)
*/ */
#define BE_32(x) GST_READ_UINT32_BE(x) #define BE_32(x) GST_READ_UINT32_BE(x)
#define FOURCC_TAG( ch0, ch1, ch2, ch3 ) \ #define FOURCC_TAG( ch0, ch1, ch2, ch3 ) \
( (long)(unsigned char)(ch3) | \ ( (long)(unsigned char)(ch3) | \
( (long)(unsigned char)(ch2) << 8 ) | \ ( (long)(unsigned char)(ch2) << 8 ) | \
( (long)(unsigned char)(ch1) << 16 ) | \ ( (long)(unsigned char)(ch1) << 16 ) | \
( (long)(unsigned char)(ch0) << 24 ) ) ( (long)(unsigned char)(ch0) << 24 ) )
/* Xing header stuff */ /* Xing header stuff */
#define XING_TAG FOURCC_TAG('X', 'i', 'n', 'g') #define XING_TAG FOURCC_TAG('X', 'i', 'n', 'g')

View file

@ -29,11 +29,11 @@
G_BEGIN_DECLS G_BEGIN_DECLS
GType gst_mad_get_type (void); GType gst_mad_get_type (void);
GType gst_id3_tag_get_type (guint type); GType gst_id3_tag_get_type (guint type);
GstTagList* gst_mad_id3_to_tag_list (const struct id3_tag * tag); GstTagList* gst_mad_id3_to_tag_list (const struct id3_tag * tag);
struct id3_tag * gst_mad_tag_list_to_id3_tag (GstTagList * list); struct id3_tag * gst_mad_tag_list_to_id3_tag (GstTagList * list);
G_END_DECLS G_END_DECLS

View file

@ -56,55 +56,55 @@ typedef enum
typedef enum typedef enum
{ {
MPEG2DEC_DISC_NONE = 0, MPEG2DEC_DISC_NONE = 0,
MPEG2DEC_DISC_NEW_PICTURE, MPEG2DEC_DISC_NEW_PICTURE,
MPEG2DEC_DISC_NEW_KEYFRAME MPEG2DEC_DISC_NEW_KEYFRAME
} DiscontState; } DiscontState;
struct _GstMpeg2dec { struct _GstMpeg2dec {
GstElement element; GstElement element;
/* pads */ /* pads */
GstPad *sinkpad, GstPad *sinkpad,
*srcpad, *srcpad,
*userdatapad; *userdatapad;
mpeg2dec_t *decoder; mpeg2dec_t *decoder;
const mpeg2_info_t *info; const mpeg2_info_t *info;
gboolean closed; gboolean closed;
gboolean have_fbuf; gboolean have_fbuf;
GstBuffer *buffers[GST_MPEG2DEC_NUM_BUFS]; GstBuffer *buffers[GST_MPEG2DEC_NUM_BUFS];
DiscontState discont_state; DiscontState discont_state;
/* the timestamp of the next frame */ /* the timestamp of the next frame */
GstClockTime next_time; GstClockTime next_time;
gint64 segment_start; gint64 segment_start;
gint64 segment_end; gint64 segment_end;
/* video state */ /* video state */
Mpeg2decFormat format; Mpeg2decFormat format;
gint width; gint width;
gint height; gint height;
gint decoded_width; gint decoded_width;
gint decoded_height; gint decoded_height;
gint pixel_width; gint pixel_width;
gint pixel_height; gint pixel_height;
gint frame_rate_code; gint frame_rate_code;
gint64 total_frames; gint64 total_frames;
gint64 frame_period; gint64 frame_period;
guint64 offset; guint64 offset;
gint fps_n; gint fps_n;
gint fps_d; gint fps_d;
gboolean need_sequence; gboolean need_sequence;
GstEvent *pending_event; GstEvent *pending_event;
GstIndex *index; GstIndex *index;
gint index_id; gint index_id;
}; };
struct _GstMpeg2decClass { struct _GstMpeg2decClass {

View file

@ -44,24 +44,24 @@ typedef struct _GstSidDec GstSidDec;
typedef struct _GstSidDecClass GstSidDecClass; typedef struct _GstSidDecClass GstSidDecClass;
struct _GstSidDec { struct _GstSidDec {
GstElement element; GstElement element;
/* pads */ /* pads */
GstPad *sinkpad, GstPad *sinkpad,
*srcpad; *srcpad;
guchar *tune_buffer; guchar *tune_buffer;
gint tune_len; gint tune_len;
gint tune_number; gint tune_number;
guint64 total_bytes; guint64 total_bytes;
emuEngine *engine; emuEngine *engine;
sidTune *tune; sidTune *tune;
emuConfig *config; emuConfig *config;
gulong blocksize; gulong blocksize;
GstCaps *metadata; GstCaps *metadata;
}; };
struct _GstSidDecClass { struct _GstSidDecClass {

View file

@ -19,7 +19,7 @@
/* Element-Checklist-Version: 5 */ /* Element-Checklist-Version: 5 */
#define PCM_BUFFER_SIZE (1152*4) #define PCM_BUFFER_SIZE (1152*4)
/*#define DEBUG_ENABLED*/ /*#define DEBUG_ENABLED*/
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H

View file

@ -49,9 +49,9 @@ struct _GstAc3Parse {
GstPad *sinkpad,*srcpad; GstPad *sinkpad,*srcpad;
GstBuffer *partialbuf; /* previous buffer (if carryover) */ GstBuffer *partialbuf; /* previous buffer (if carryover) */
guint lastframebytes; /* bytes in previous of last frame so far */ guint lastframebytes; /* bytes in previous of last frame so far */
guint lastframesize; /* total length of last frame */ guint lastframesize; /* total length of last frame */
guint skip; /* number of frames to skip */ guint skip; /* number of frames to skip */
/* some stream parameters */ /* some stream parameters */

View file

@ -308,26 +308,26 @@ _read_var_length (GstASFDemux * asf_demux, guint8 type, guint32 * rsize)
return ret; return ret;
} }
#define READ_UINT_BITS_FUNCTION(bits) \ #define READ_UINT_BITS_FUNCTION(bits) \
static gboolean \ static gboolean \
_read_uint ## bits (GstASFDemux *asf_demux, guint ## bits *ret) \ _read_uint ## bits (GstASFDemux *asf_demux, guint ## bits *ret) \
{ \ { \
GstEvent *event; \ GstEvent *event; \
guint32 remaining; \ guint32 remaining; \
guint8* data; \ guint8* data; \
\ \
g_return_val_if_fail (ret != NULL, FALSE); \ g_return_val_if_fail (ret != NULL, FALSE); \
\ \
do { \ do { \
if (gst_bytestream_peek_bytes (asf_demux->bs, &data, bits / 8) == bits / 8) { \ if (gst_bytestream_peek_bytes (asf_demux->bs, &data, bits / 8) == bits / 8) { \
*ret = GST_READ_UINT ## bits ## _LE (data); \ *ret = GST_READ_UINT ## bits ## _LE (data); \
gst_bytestream_flush (asf_demux->bs, bits / 8); \ gst_bytestream_flush (asf_demux->bs, bits / 8); \
return TRUE; \ return TRUE; \
} \ } \
gst_bytestream_get_status (asf_demux->bs, &remaining, &event); \ gst_bytestream_get_status (asf_demux->bs, &remaining, &event); \
} while (gst_asf_demux_handle_sink_event (asf_demux, event, remaining)); \ } while (gst_asf_demux_handle_sink_event (asf_demux, event, remaining)); \
\ \
return FALSE; \ return FALSE; \
} }
#define GST_READ_UINT8_LE(x) GST_READ_UINT8(x) #define GST_READ_UINT8_LE(x) GST_READ_UINT8(x)

View file

@ -63,10 +63,10 @@ typedef enum {
} GstAsfDemuxState; } GstAsfDemuxState;
struct _GstASFDemux { struct _GstASFDemux {
GstElement element; GstElement element;
/* pads */ /* pads */
GstPad *sinkpad; GstPad *sinkpad;
GstByteStream *bs; GstByteStream *bs;

View file

@ -57,11 +57,11 @@ struct _AC3IEC {
GstPad *sink; GstPad *sink;
GstPad *src; GstPad *src;
GstClockTime cur_ts; /* Time stamp for the current GstClockTime cur_ts; /* Time stamp for the current
frame. */ frame. */
GstClockTime next_ts; /* Time stamp for the next frame. */ GstClockTime next_ts; /* Time stamp for the next frame. */
ac3_padder *padder; /* AC3 to SPDIF padder object. */ ac3_padder *padder; /* AC3 to SPDIF padder object. */
}; };
@ -72,7 +72,7 @@ struct _AC3IECClass {
}; };
extern GType ac3iec_get_type (void); extern GType ac3iec_get_type (void);
G_END_DECLS G_END_DECLS

View file

@ -181,12 +181,12 @@ mp3_type_frame_length_from_header (guint32 header, guint * put_layer,
* (0.024%) per try. This makes the function for calculating false positives * (0.024%) per try. This makes the function for calculating false positives
* 1 - (1 - ((63 / 2 ^18) ^ GST_MP3_TYPEFIND_MIN_HEADERS)) ^ buffersize) * 1 - (1 - ((63 / 2 ^18) ^ GST_MP3_TYPEFIND_MIN_HEADERS)) ^ buffersize)
* This has the following probabilities of false positives: * This has the following probabilities of false positives:
* bufsize MIN_HEADERS * bufsize MIN_HEADERS
* (bytes) 1 2 3 4 * (bytes) 1 2 3 4
* 4096 62.6% 0.02% 0% 0% * 4096 62.6% 0.02% 0% 0%
* 16384 98% 0.09% 0% 0% * 16384 98% 0.09% 0% 0%
* 1 MiB 100% 5.88% 0% 0% * 1 MiB 100% 5.88% 0% 0%
* 1 GiB 100% 100% 1.44% 0% * 1 GiB 100% 100% 1.44% 0%
* 1 TiB 100% 100% 100% 0.35% * 1 TiB 100% 100% 100% 0.35%
* This means that the current choice (3 headers by most of the time 4096 byte * This means that the current choice (3 headers by most of the time 4096 byte
* buffers is pretty safe for now. * buffers is pretty safe for now.
@ -399,8 +399,8 @@ gst_mp3parse_chain (GstPad * pad, GstBuffer * buf)
/* mask the bits which are allowed to differ between frames */ /* mask the bits which are allowed to differ between frames */
#define HDRMASK ~((0xF << 12) /* bitrate */ | \ #define HDRMASK ~((0xF << 12) /* bitrate */ | \
(0x1 << 9) /* padding */ | \ (0x1 << 9) /* padding */ | \
(0x3 << 4)) /*mode extension */ (0x3 << 4)) /*mode extension */
if ((header2 & HDRMASK) != (header & HDRMASK)) { /* require 2 matching headers in a row */ if ((header2 & HDRMASK) != (header & HDRMASK)) { /* require 2 matching headers in a row */
GST_DEBUG GST_DEBUG

View file

@ -45,9 +45,9 @@ struct _GstMPEGAudioParse {
GstPad *sinkpad,*srcpad; GstPad *sinkpad,*srcpad;
guint64 last_ts; guint64 last_ts;
GstBuffer *partialbuf; /* previous buffer (if carryover) */ GstBuffer *partialbuf; /* previous buffer (if carryover) */
guint skip; /* number of frames to skip */ guint skip; /* number of frames to skip */
guint bit_rate; guint bit_rate;
gint channels, rate, layer; gint channels, rate, layer;

View file

@ -47,7 +47,7 @@ enum {
}; };
/* Supported number of streams. */ /* Supported number of streams. */
#define GST_DVD_DEMUX_NUM_SUBPICTURE_STREAMS 32 #define GST_DVD_DEMUX_NUM_SUBPICTURE_STREAMS 32
#define GST_DVD_DEMUX_MAX_SUBPICTURE_DELAY 0 #define GST_DVD_DEMUX_MAX_SUBPICTURE_DELAY 0
typedef struct _GstDVDLPCMStream GstDVDLPCMStream ; typedef struct _GstDVDLPCMStream GstDVDLPCMStream ;
@ -76,8 +76,8 @@ enum {
/* Extended structure to hold additional information for linear PCM /* Extended structure to hold additional information for linear PCM
streams. */ streams. */
struct _GstDVDLPCMStream { struct _GstDVDLPCMStream {
GstMPEGStream parent; GstMPEGStream parent;
guint32 sample_info; /* The type of linear PCM samples guint32 sample_info; /* The type of linear PCM samples
associated to this stream. The associated to this stream. The
values are bit fields with the same values are bit fields with the same
format of the sample_info field in format of the sample_info field in
@ -89,28 +89,28 @@ struct _GstDVDLPCMStream {
struct _GstDVDDemux { struct _GstDVDDemux {
GstMPEGDemux parent; GstMPEGDemux parent;
GstPad *cur_video; /* Current video stream pad. */ GstPad *cur_video; /* Current video stream pad. */
GstPad *cur_audio; /* Current audio stream pad. */ GstPad *cur_audio; /* Current audio stream pad. */
GstPad *cur_subpicture; /* Current subpicture stream pad. */ GstPad *cur_subpicture; /* Current subpicture stream pad. */
gint cur_video_nr; /* Current video stream number. */ gint cur_video_nr; /* Current video stream number. */
gint cur_audio_nr; /* Current audio stream number. */ gint cur_audio_nr; /* Current audio stream number. */
gint cur_subpicture_nr; /* Current subpicture stream number. */ gint cur_subpicture_nr; /* Current subpicture stream number. */
GstClockTime last_end_ptm; /* End presentation time of the last nav packet GstClockTime last_end_ptm; /* End presentation time of the last nav packet
event received. */ event received. */
GstClockTime discont_time; /* If different from GST_CLOCK_TIME_NONE, a GstClockTime discont_time; /* If different from GST_CLOCK_TIME_NONE, a
discontinuous event should be sent with the discontinuous event should be sent with the
given time, before sending the next data given time, before sending the next data
block.. */ block.. */
gint mpeg_version; /* Version of the MPEG video stream */ gint mpeg_version; /* Version of the MPEG video stream */
GstMPEGStream *subpicture_stream[GST_DVD_DEMUX_NUM_SUBPICTURE_STREAMS]; GstMPEGStream *subpicture_stream[GST_DVD_DEMUX_NUM_SUBPICTURE_STREAMS];
/* Subpicture output streams. */ /* Subpicture output streams. */
GstEvent *langcodes; GstEvent *langcodes;
@ -127,16 +127,16 @@ struct _GstDVDDemuxClass {
GstPadTemplate *cur_subpicture_template; GstPadTemplate *cur_subpicture_template;
GstMPEGStream * GstMPEGStream *
(*get_subpicture_stream)(GstMPEGDemux *mpeg_demux, (*get_subpicture_stream)(GstMPEGDemux *mpeg_demux,
guint8 stream_nr, guint8 stream_nr,
gint type, gint type,
const gpointer info); const gpointer info);
}; };
GType gst_dvd_demux_get_type (void); GType gst_dvd_demux_get_type (void);
gboolean gst_dvd_demux_plugin_init (GstPlugin *plugin); gboolean gst_dvd_demux_plugin_init (GstPlugin *plugin);
G_END_DECLS G_END_DECLS

View file

@ -56,9 +56,9 @@ struct _GstMPEGClockClass {
GstSystemClockClass parent_class; GstSystemClockClass parent_class;
}; };
GType gst_mpeg_clock_get_type (void); GType gst_mpeg_clock_get_type (void);
GstClock* gst_mpeg_clock_new (gchar *name, GstMPEGClockGetTimeFunc func, GstClock* gst_mpeg_clock_new (gchar *name, GstMPEGClockGetTimeFunc func,
gpointer user_data); gpointer user_data);
G_END_DECLS G_END_DECLS

View file

@ -47,9 +47,9 @@ enum {
}; };
/* Supported number of streams. */ /* Supported number of streams. */
#define GST_MPEG_DEMUX_NUM_VIDEO_STREAMS 16 #define GST_MPEG_DEMUX_NUM_VIDEO_STREAMS 16
#define GST_MPEG_DEMUX_NUM_AUDIO_STREAMS 32 #define GST_MPEG_DEMUX_NUM_AUDIO_STREAMS 32
#define GST_MPEG_DEMUX_NUM_PRIVATE_STREAMS 2 #define GST_MPEG_DEMUX_NUM_PRIVATE_STREAMS 2
/* How to make stream type values. */ /* How to make stream type values. */
#define GST_MPEG_DEMUX_STREAM_TYPE(kind, serial) \ #define GST_MPEG_DEMUX_STREAM_TYPE(kind, serial) \
@ -88,11 +88,11 @@ typedef struct _GstMPEGDemuxClass GstMPEGDemuxClass;
/* Information associated to a single MPEG stream. */ /* Information associated to a single MPEG stream. */
struct _GstMPEGStream { struct _GstMPEGStream {
gint type; gint type;
gint number; gint number;
GstPad *pad; GstPad *pad;
gint index_id; gint index_id;
gint size_bound; gint size_bound;
GstClockTime cur_ts; GstClockTime cur_ts;
GstClockTimeDiff scr_offs; GstClockTimeDiff scr_offs;
}; };
@ -100,29 +100,29 @@ struct _GstMPEGStream {
/* Extended structure to hold additional information for video /* Extended structure to hold additional information for video
streams. */ streams. */
struct _GstMPEGVideoStream { struct _GstMPEGVideoStream {
GstMPEGStream parent; GstMPEGStream parent;
gint mpeg_version; gint mpeg_version;
}; };
struct _GstMPEGDemux { struct _GstMPEGDemux {
GstMPEGParse parent; GstMPEGParse parent;
/* previous partial chunk and bytes remaining in it */ /* previous partial chunk and bytes remaining in it */
gboolean in_flush; gboolean in_flush;
/* program stream header values */ /* program stream header values */
guint16 header_length; guint16 header_length;
guint32 rate_bound; guint32 rate_bound;
guint8 audio_bound; guint8 audio_bound;
gboolean fixed; gboolean fixed;
gboolean constrained; gboolean constrained;
gboolean audio_lock; gboolean audio_lock;
gboolean video_lock; gboolean video_lock;
guint8 video_bound; guint8 video_bound;
gboolean packet_rate_restriction; gboolean packet_rate_restriction;
gint64 total_size_bound; gint64 total_size_bound;
GstIndex *index; GstIndex *index;
/* stream output */ /* stream output */
GstMPEGStream *video_stream[GST_MPEG_DEMUX_NUM_VIDEO_STREAMS]; GstMPEGStream *video_stream[GST_MPEG_DEMUX_NUM_VIDEO_STREAMS];
@ -134,11 +134,11 @@ struct _GstMPEGDemux {
there for the benefit of subclasses. */ there for the benefit of subclasses. */
GstClockTime max_gap; /* Maximum timestamp difference to allow GstClockTime max_gap; /* Maximum timestamp difference to allow
* between pads before using a filler to catch up * between pads before using a filler to catch up
*/ */
GstClockTime max_gap_tolerance; /* When catching a pad up, how far behind GstClockTime max_gap_tolerance; /* When catching a pad up, how far behind
to make it to make it
*/ */
GstClockTime max_ts; /* Highest timestamp of all pads */ GstClockTime max_ts; /* Highest timestamp of all pads */
GstPad *max_pad; /* Pad with highest timestamp */ GstPad *max_pad; /* Pad with highest timestamp */
@ -153,10 +153,10 @@ struct _GstMPEGDemuxClass {
GstPadTemplate *audio_template; GstPadTemplate *audio_template;
GstPadTemplate *private_template; GstPadTemplate *private_template;
GstPad * (*new_output_pad) (GstMPEGDemux *mpeg_demux, GstPad * (*new_output_pad) (GstMPEGDemux *mpeg_demux,
const gchar *name, const gchar *name,
GstPadTemplate *temp); GstPadTemplate *temp);
void (*init_stream) (GstMPEGDemux *mpeg_demux, void (*init_stream) (GstMPEGDemux *mpeg_demux,
gint type, gint type,
GstMPEGStream *str, GstMPEGStream *str,
gint number, gint number,
@ -164,22 +164,22 @@ struct _GstMPEGDemuxClass {
GstPadTemplate *temp); GstPadTemplate *temp);
GstMPEGStream * GstMPEGStream *
(*get_video_stream) (GstMPEGDemux *mpeg_demux, (*get_video_stream) (GstMPEGDemux *mpeg_demux,
guint8 stream_nr, guint8 stream_nr,
gint type, gint type,
const gpointer info); const gpointer info);
GstMPEGStream * GstMPEGStream *
(*get_audio_stream) (GstMPEGDemux *mpeg_demux, (*get_audio_stream) (GstMPEGDemux *mpeg_demux,
guint8 stream_nr, guint8 stream_nr,
gint type, gint type,
const gpointer info); const gpointer info);
GstMPEGStream * GstMPEGStream *
(*get_private_stream) (GstMPEGDemux *mpeg_demux, (*get_private_stream) (GstMPEGDemux *mpeg_demux,
guint8 stream_nr, guint8 stream_nr,
gint type, gint type,
const gpointer info); const gpointer info);
GstFlowReturn (*send_subbuffer) (GstMPEGDemux *mpeg_demux, GstFlowReturn (*send_subbuffer) (GstMPEGDemux *mpeg_demux,
GstMPEGStream *outstream, GstMPEGStream *outstream,
GstBuffer *buffer, GstBuffer *buffer,
GstClockTime timestamp, GstClockTime timestamp,
@ -187,24 +187,24 @@ struct _GstMPEGDemuxClass {
guint size); guint size);
GstFlowReturn (*process_private) (GstMPEGDemux *mpeg_demux, GstFlowReturn (*process_private) (GstMPEGDemux *mpeg_demux,
GstBuffer *buffer, GstBuffer *buffer,
guint stream_nr, guint stream_nr,
GstClockTime timestamp, GstClockTime timestamp,
guint headerlen, guint datalen); guint headerlen, guint datalen);
void (*synchronise_pads) (GstMPEGDemux *mpeg_demux, void (*synchronise_pads) (GstMPEGDemux *mpeg_demux,
GstClockTime threshold, GstClockTime threshold,
GstClockTime new_ts); GstClockTime new_ts);
void (*sync_stream_to_time) (GstMPEGDemux *mpeg_demux, void (*sync_stream_to_time) (GstMPEGDemux *mpeg_demux,
GstMPEGStream *stream, GstMPEGStream *stream,
GstClockTime last_ts); GstClockTime last_ts);
}; };
GType gst_mpeg_demux_get_type (void); GType gst_mpeg_demux_get_type (void);
gboolean gst_mpeg_demux_plugin_init (GstPlugin *plugin); gboolean gst_mpeg_demux_plugin_init (GstPlugin *plugin);
G_END_DECLS G_END_DECLS

View file

@ -26,24 +26,24 @@
G_BEGIN_DECLS G_BEGIN_DECLS
#define PICTURE_START_CODE 0x00 #define PICTURE_START_CODE 0x00
#define SLICE_MIN_START_CODE 0x01 #define SLICE_MIN_START_CODE 0x01
#define SLICE_MAX_START_CODE 0xaf #define SLICE_MAX_START_CODE 0xaf
#define USER_START_CODE 0xb2 #define USER_START_CODE 0xb2
#define SEQUENCE_START_CODE 0xb3 #define SEQUENCE_START_CODE 0xb3
#define SEQUENCE_ERROR_START_CODE 0xb4 #define SEQUENCE_ERROR_START_CODE 0xb4
#define EXT_START_CODE 0xb5 #define EXT_START_CODE 0xb5
#define SEQUENCE_END_START_CODE 0xb7 #define SEQUENCE_END_START_CODE 0xb7
#define GOP_START_CODE 0xb8 #define GOP_START_CODE 0xb8
#define ISO11172_END_START_CODE 0xb9 #define ISO11172_END_START_CODE 0xb9
#define PACK_START_CODE 0xba #define PACK_START_CODE 0xba
#define SYS_HEADER_START_CODE 0xbb #define SYS_HEADER_START_CODE 0xbb
typedef struct _GstMPEGPacketize GstMPEGPacketize; typedef struct _GstMPEGPacketize GstMPEGPacketize;
#define GST_MPEG_PACKETIZE_ID(pack) ((pack)->id) #define GST_MPEG_PACKETIZE_ID(pack) ((pack)->id)
#define GST_MPEG_PACKETIZE_IS_MPEG2(pack) ((pack)->MPEG2) #define GST_MPEG_PACKETIZE_IS_MPEG2(pack) ((pack)->MPEG2)
typedef enum { typedef enum {
GST_MPEG_PACKETIZE_SYSTEM, GST_MPEG_PACKETIZE_SYSTEM,

View file

@ -50,9 +50,9 @@ static GstElementDetails mpeg_parse_details = {
"Erik Walthinsen <omega@cse.ogi.edu>\n" "Wim Taymans <wim.taymans@chello.be>" "Erik Walthinsen <omega@cse.ogi.edu>\n" "Wim Taymans <wim.taymans@chello.be>"
}; };
#define CLASS(o) GST_MPEG_PARSE_CLASS (G_OBJECT_GET_CLASS (o)) #define CLASS(o) GST_MPEG_PARSE_CLASS (G_OBJECT_GET_CLASS (o))
#define DEFAULT_MAX_SCR_GAP 120000 #define DEFAULT_MAX_SCR_GAP 120000
/* GstMPEGParse signals and args */ /* GstMPEGParse signals and args */
enum enum

View file

@ -57,35 +57,35 @@ struct _GstMPEGParse
GstMPEGPacketize *packetize; GstMPEGPacketize *packetize;
/* Keep track of total rate using SCR and use hysteresis */ /* Keep track of total rate using SCR and use hysteresis */
guint64 first_scr; /* Earliest SCR value for reference */ guint64 first_scr; /* Earliest SCR value for reference */
guint64 first_scr_pos; /* Byte position of reference SCR */ guint64 first_scr_pos; /* Byte position of reference SCR */
guint64 last_scr; /* Latest SCR value for reference */ guint64 last_scr; /* Latest SCR value for reference */
guint64 last_scr_pos; /* Byte position of reference SCR */ guint64 last_scr_pos; /* Byte position of reference SCR */
guint64 scr_rate; /* Remember the last rate for hysteresis */ guint64 scr_rate; /* Remember the last rate for hysteresis */
/* Compute a rolling average for SCR interpolation (for MPEG1) */ /* Compute a rolling average for SCR interpolation (for MPEG1) */
guint64 avg_bitrate_time; /* Time total for local average bitrate */ guint64 avg_bitrate_time; /* Time total for local average bitrate */
guint64 avg_bitrate_bytes; /* Bytes total for local average bitrate */ guint64 avg_bitrate_bytes; /* Bytes total for local average bitrate */
/* Pack header values */ /* Pack header values */
guint32 mux_rate; /* Mux rate in bytes/sec derived from Pack guint32 mux_rate; /* Mux rate in bytes/sec derived from Pack
header */ header */
guint64 current_scr; /* Current SCR from the stream */ guint64 current_scr; /* Current SCR from the stream */
guint64 next_scr; /* Expected next SCR */ guint64 next_scr; /* Expected next SCR */
guint64 bytes_since_scr; /* Bytes since current_scr */ guint64 bytes_since_scr; /* Bytes since current_scr */
GstClockTime current_ts; /* Current timestamp (i.e., SCR GstClockTime current_ts; /* Current timestamp (i.e., SCR
adjusted with the value of adjusted with the value of
'adjust') */ 'adjust') */
gint64 adjust; /* Value added to SCR values to gint64 adjust; /* Value added to SCR values to
produce buffer timestamps */ produce buffer timestamps */
gint max_scr_gap; /* The maximum allowed SCR gap without gint max_scr_gap; /* The maximum allowed SCR gap without
making a timestamp adjustment */ making a timestamp adjustment */
gboolean newsegment_pending; /* If true, the element should send a gboolean newsegment_pending; /* If true, the element should send a
NEWSEGMENT event as soon as there NEWSEGMENT event as soon as there
is SCR information available */ is SCR information available */
gboolean scr_pending; gboolean scr_pending;
@ -110,18 +110,18 @@ struct _GstMPEGParseClass
/* Optional method to send out the data */ /* Optional method to send out the data */
GstFlowReturn (*send_buffer) (GstMPEGParse * parse, GstFlowReturn (*send_buffer) (GstMPEGParse * parse,
GstBuffer * buffer, GstClockTime time); GstBuffer * buffer, GstClockTime time);
gboolean (*process_event) (GstMPEGParse * parse, gboolean (*process_event) (GstMPEGParse * parse,
GstEvent * event, GstClockTime time); GstEvent * event, GstClockTime time);
gboolean (*send_newsegment)(GstMPEGParse * parse, gdouble rate, gboolean (*send_newsegment)(GstMPEGParse * parse, gdouble rate,
GstClockTime start_time, GstClockTime start_time,
GstClockTime stop_time); GstClockTime stop_time);
gboolean (*send_event) (GstMPEGParse * parse, GstEvent *event, gboolean (*send_event) (GstMPEGParse * parse, GstEvent *event,
GstClockTime time); GstClockTime time);
/* Signals */ /* Signals */
void (*reached_offset) (GstMPEGParse *parse, void (*reached_offset) (GstMPEGParse *parse,
GstClockTime timeval); GstClockTime timeval);
}; };
GType gst_mpeg_parse_get_type (void); GType gst_mpeg_parse_get_type (void);

View file

@ -32,7 +32,7 @@ static GstElementDetails rfc2250_enc_details = {
"Wim Taymans <wim.taymans@chello.be>" "Wim Taymans <wim.taymans@chello.be>"
}; };
#define CLASS(o) GST_RFC2250_ENC_CLASS (G_OBJECT_GET_CLASS (o)) #define CLASS(o) GST_RFC2250_ENC_CLASS (G_OBJECT_GET_CLASS (o))
/* GstRFC2250Enc signals and args */ /* GstRFC2250Enc signals and args */
enum enum

View file

@ -41,10 +41,10 @@ G_BEGIN_DECLS
#define GST_RFC2250_ENC_IS_MPEG2(parse) (GST_MPEG_PACKETIZE_IS_MPEG2 (GST_RFC2250_ENC (parse)->packetize)) #define GST_RFC2250_ENC_IS_MPEG2(parse) (GST_MPEG_PACKETIZE_IS_MPEG2 (GST_RFC2250_ENC (parse)->packetize))
typedef enum { typedef enum {
ENC_HAVE_SEQ = (1 << 0), ENC_HAVE_SEQ = (1 << 0),
ENC_HAVE_GOP = (1 << 1), ENC_HAVE_GOP = (1 << 1),
ENC_HAVE_PIC = (1 << 2), ENC_HAVE_PIC = (1 << 2),
ENC_HAVE_DATA = (1 << 3), ENC_HAVE_DATA = (1 << 3),
} GstEncFlags; } GstEncFlags;
typedef struct _GstRFC2250Enc GstRFC2250Enc; typedef struct _GstRFC2250Enc GstRFC2250Enc;
@ -72,7 +72,7 @@ struct _GstRFC2250EncClass {
GType gst_rfc2250_enc_get_type(void); GType gst_rfc2250_enc_get_type(void);
gboolean gst_rfc2250_enc_plugin_init (GstPlugin *plugin); gboolean gst_rfc2250_enc_plugin_init (GstPlugin *plugin);
G_END_DECLS G_END_DECLS

View file

@ -29,9 +29,9 @@
#include <ctype.h> #include <ctype.h>
#include <zlib.h> #include <zlib.h>
#define RMDEMUX_GUINT32_GET(a) GST_READ_UINT32_BE(a) #define RMDEMUX_GUINT32_GET(a) GST_READ_UINT32_BE(a)
#define RMDEMUX_GUINT16_GET(a) GST_READ_UINT16_BE(a) #define RMDEMUX_GUINT16_GET(a) GST_READ_UINT16_BE(a)
#define RMDEMUX_FOURCC_GET(a) GST_READ_UINT32_LE(a) #define RMDEMUX_FOURCC_GET(a) GST_READ_UINT32_LE(a)
#define HEADER_SIZE 10 #define HEADER_SIZE 10
#define DATA_SIZE 8 #define DATA_SIZE 8

View file

@ -40,7 +40,7 @@ extern "C" {
#define GST_IS_RMDEMUX_CLASS(obj) \ #define GST_IS_RMDEMUX_CLASS(obj) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_RMDEMUX)) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_RMDEMUX))
#define GST_RMDEMUX_MAX_STREAMS 8 #define GST_RMDEMUX_MAX_STREAMS 8
typedef enum typedef enum
{ {

View file

@ -81,14 +81,14 @@ while (running) { \
guint val; \ guint val; \
gint val2; \ gint val2; \
unsigned char *outptr = output; \ unsigned char *outptr = output; \
int w; \ int w; \
\ \
synaescope_coreGo(); \ synaescope_coreGo(); \
\ \
outptr = output; \ outptr = output; \
for (w=0; w < syn_width * syn_height; w++) { \ for (w=0; w < syn_width * syn_height; w++) { \
bits[w] = colEq[(outptr[0] >> 4) + (outptr[1] & 0xf0)]; \ bits[w] = colEq[(outptr[0] >> 4) + (outptr[1] & 0xf0)]; \
outptr += 2; \ outptr += 2; \
} \ } \
\ \
GDK_THREADS_ENTER(); \ GDK_THREADS_ENTER(); \