mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
*.h: Revert indenting
Original commit message from CVS: * *.h: Revert indenting
This commit is contained in:
parent
84244843c6
commit
72ec4a2aa3
49 changed files with 1286 additions and 1176 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2004-03-15 Johan Dahlin <johan@gnome.org>
|
||||||
|
|
||||||
|
* *.h: Revert indenting
|
||||||
|
|
||||||
2004-03-15 Thomas Vander Stichele <thomas at apestaart dot org>
|
2004-03-15 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
* configure.ac:
|
* configure.ac:
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
#include <gst/bytestream/bytestream.h>
|
#include <gst/bytestream/bytestream.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define GST_TYPE_A52DEC \
|
#define GST_TYPE_A52DEC \
|
||||||
(gst_a52dec_get_type())
|
(gst_a52dec_get_type())
|
||||||
#define GST_A52DEC(obj) \
|
#define GST_A52DEC(obj) \
|
||||||
|
@ -35,15 +36,16 @@ G_BEGIN_DECLS
|
||||||
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_A52DEC))
|
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_A52DEC))
|
||||||
#define GST_IS_A52DEC_CLASS(obj) \
|
#define GST_IS_A52DEC_CLASS(obj) \
|
||||||
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_A52DEC))
|
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_A52DEC))
|
||||||
|
|
||||||
typedef struct _GstA52Dec GstA52Dec;
|
typedef struct _GstA52Dec GstA52Dec;
|
||||||
typedef struct _GstA52DecClass GstA52DecClass;
|
typedef struct _GstA52DecClass GstA52DecClass;
|
||||||
|
|
||||||
struct _GstA52Dec
|
struct _GstA52Dec {
|
||||||
{
|
|
||||||
GstElement element;
|
GstElement element;
|
||||||
|
|
||||||
/* pads */
|
/* pads */
|
||||||
GstPad *sinkpad, *srcpad;
|
GstPad *sinkpad,
|
||||||
|
*srcpad;
|
||||||
int bit_rate;
|
int bit_rate;
|
||||||
int sample_rate;
|
int sample_rate;
|
||||||
int stream_channels;
|
int stream_channels;
|
||||||
|
@ -62,10 +64,10 @@ struct _GstA52Dec
|
||||||
GstClockTime current_ts;
|
GstClockTime current_ts;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstA52DecClass
|
struct _GstA52DecClass {
|
||||||
{
|
|
||||||
GstElementClass parent_class;
|
GstElementClass parent_class;
|
||||||
};
|
};
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_A52DEC_H__ */
|
#endif /* __GST_A52DEC_H__ */
|
||||||
|
|
|
@ -25,7 +25,9 @@
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
|
|
||||||
G_BEGIN_DECLS GstElementDetails dvdreadsrc_details;
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
GstElementDetails dvdreadsrc_details;
|
||||||
|
|
||||||
|
|
||||||
#define GST_TYPE_DVDREADSRC \
|
#define GST_TYPE_DVDREADSRC \
|
||||||
|
@ -40,8 +42,7 @@ G_BEGIN_DECLS GstElementDetails dvdreadsrc_details;
|
||||||
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DVDREADSRC))
|
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DVDREADSRC))
|
||||||
|
|
||||||
/* 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,
|
DVDREADSRC_OPEN = GST_ELEMENT_FLAG_LAST,
|
||||||
|
|
||||||
DVDREADSRC_FLAG_LAST = GST_ELEMENT_FLAG_LAST+2,
|
DVDREADSRC_FLAG_LAST = GST_ELEMENT_FLAG_LAST+2,
|
||||||
|
@ -51,18 +52,17 @@ typedef struct _DVDReadSrc DVDReadSrc;
|
||||||
typedef struct _DVDReadSrcPrivate DVDReadSrcPrivate;
|
typedef struct _DVDReadSrcPrivate DVDReadSrcPrivate;
|
||||||
typedef struct _DVDReadSrcClass DVDReadSrcClass;
|
typedef struct _DVDReadSrcClass DVDReadSrcClass;
|
||||||
|
|
||||||
struct _DVDReadSrc
|
struct _DVDReadSrc {
|
||||||
{
|
|
||||||
GstElement element;
|
GstElement element;
|
||||||
DVDReadSrcPrivate *priv;
|
DVDReadSrcPrivate *priv;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _DVDReadSrcClass
|
struct _DVDReadSrcClass {
|
||||||
{
|
|
||||||
GstElementClass parent_class;
|
GstElementClass parent_class;
|
||||||
};
|
};
|
||||||
|
|
||||||
GType dvdreadsrc_get_type(void);
|
GType dvdreadsrc_get_type(void);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __DVDREADSRC_H__ */
|
#endif /* __DVDREADSRC_H__ */
|
||||||
|
|
|
@ -25,8 +25,7 @@
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"
|
extern "C" {
|
||||||
{
|
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#include <lame/lame.h>
|
#include <lame/lame.h>
|
||||||
|
@ -42,8 +41,7 @@ extern "C"
|
||||||
#define GST_IS_LAME_CLASS(obj) \
|
#define GST_IS_LAME_CLASS(obj) \
|
||||||
(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,
|
GST_LAME_OPEN = GST_ELEMENT_FLAG_LAST,
|
||||||
|
|
||||||
GST_LAME_FLAG_LAST = GST_ELEMENT_FLAG_LAST+2,
|
GST_LAME_FLAG_LAST = GST_ELEMENT_FLAG_LAST+2,
|
||||||
|
@ -52,8 +50,7 @@ extern "C"
|
||||||
typedef struct _GstLame GstLame;
|
typedef struct _GstLame GstLame;
|
||||||
typedef struct _GstLameClass GstLameClass;
|
typedef struct _GstLameClass GstLameClass;
|
||||||
|
|
||||||
struct _GstLame
|
struct _GstLame {
|
||||||
{
|
|
||||||
GstElement element;
|
GstElement element;
|
||||||
/* pads */
|
/* pads */
|
||||||
GstPad *srcpad, *sinkpad;
|
GstPad *srcpad, *sinkpad;
|
||||||
|
@ -102,8 +99,7 @@ extern "C"
|
||||||
guint64 last_ts, last_offs, last_duration;
|
guint64 last_ts, last_offs, last_duration;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstLameClass
|
struct _GstLameClass {
|
||||||
{
|
|
||||||
GstElementClass parent_class;
|
GstElementClass parent_class;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,10 @@
|
||||||
#include <mad.h>
|
#include <mad.h>
|
||||||
#include <id3tag.h>
|
#include <id3tag.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS GType gst_mad_get_type (void);
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
|
||||||
|
GType gst_mad_get_type (void);
|
||||||
GType gst_id3_parse_get_type (void);
|
GType gst_id3_parse_get_type (void);
|
||||||
GType gst_id3_tag_get_type (void);
|
GType gst_id3_tag_get_type (void);
|
||||||
|
|
||||||
|
@ -35,4 +38,5 @@ struct id3_tag *gst_mad_tag_list_to_id3_tag (GstTagList * list);
|
||||||
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_MAD_H__ */
|
#endif /* __GST_MAD_H__ */
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
#include <mpeg2.h>
|
#include <mpeg2.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define GST_TYPE_MPEG2DEC \
|
#define GST_TYPE_MPEG2DEC \
|
||||||
(gst_mpeg2dec_get_type())
|
(gst_mpeg2dec_get_type())
|
||||||
#define GST_MPEG2DEC(obj) \
|
#define GST_MPEG2DEC(obj) \
|
||||||
|
@ -36,8 +37,10 @@ G_BEGIN_DECLS
|
||||||
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_MPEG2DEC))
|
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_MPEG2DEC))
|
||||||
#define GST_IS_MPEG2DEC_CLASS(obj) \
|
#define GST_IS_MPEG2DEC_CLASS(obj) \
|
||||||
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_MPEG2DEC))
|
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_MPEG2DEC))
|
||||||
|
|
||||||
#define MPEGTIME_TO_GSTTIME(time) (((time) * (GST_MSECOND/10)) / 9LL)
|
#define MPEGTIME_TO_GSTTIME(time) (((time) * (GST_MSECOND/10)) / 9LL)
|
||||||
#define GSTTIME_TO_MPEGTIME(time) (((time) * 9LL) / (GST_MSECOND/10))
|
#define GSTTIME_TO_MPEGTIME(time) (((time) * 9LL) / (GST_MSECOND/10))
|
||||||
|
|
||||||
typedef struct _GstMpeg2dec GstMpeg2dec;
|
typedef struct _GstMpeg2dec GstMpeg2dec;
|
||||||
typedef struct _GstMpeg2decClass GstMpeg2decClass;
|
typedef struct _GstMpeg2decClass GstMpeg2decClass;
|
||||||
|
|
||||||
|
@ -55,12 +58,13 @@ typedef enum
|
||||||
MPEG2DEC_DISC_NEW_KEYFRAME,
|
MPEG2DEC_DISC_NEW_KEYFRAME,
|
||||||
} DiscontState;
|
} DiscontState;
|
||||||
|
|
||||||
struct _GstMpeg2dec
|
struct _GstMpeg2dec {
|
||||||
{
|
|
||||||
GstElement element;
|
GstElement element;
|
||||||
|
|
||||||
/* pads */
|
/* pads */
|
||||||
GstPad *sinkpad, *srcpad, *userdatapad;
|
GstPad *sinkpad,
|
||||||
|
*srcpad,
|
||||||
|
*userdatapad;
|
||||||
|
|
||||||
mpeg2dec_t *decoder;
|
mpeg2dec_t *decoder;
|
||||||
gboolean closed;
|
gboolean closed;
|
||||||
|
@ -89,12 +93,12 @@ struct _GstMpeg2dec
|
||||||
gint index_id;
|
gint index_id;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstMpeg2decClass
|
struct _GstMpeg2decClass {
|
||||||
{
|
|
||||||
GstElementClass parent_class;
|
GstElementClass parent_class;
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_mpeg2dec_get_type(void);
|
GType gst_mpeg2dec_get_type(void);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_MPEG2DEC_H__ */
|
#endif /* __GST_MPEG2DEC_H__ */
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define GST_TYPE_SIDDEC \
|
#define GST_TYPE_SIDDEC \
|
||||||
(gst_siddec_get_type())
|
(gst_siddec_get_type())
|
||||||
#define GST_SIDDEC(obj) \
|
#define GST_SIDDEC(obj) \
|
||||||
|
@ -38,15 +39,16 @@ G_BEGIN_DECLS
|
||||||
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_SIDDEC))
|
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_SIDDEC))
|
||||||
#define GST_IS_SIDDEC_CLASS(obj) \
|
#define GST_IS_SIDDEC_CLASS(obj) \
|
||||||
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_SIDDEC))
|
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_SIDDEC))
|
||||||
|
|
||||||
typedef struct _GstSidDec GstSidDec;
|
typedef struct _GstSidDec GstSidDec;
|
||||||
typedef struct _GstSidDecClass GstSidDecClass;
|
typedef struct _GstSidDecClass GstSidDecClass;
|
||||||
|
|
||||||
struct _GstSidDec
|
struct _GstSidDec {
|
||||||
{
|
|
||||||
GstElement element;
|
GstElement element;
|
||||||
|
|
||||||
/* pads */
|
/* pads */
|
||||||
GstPad *sinkpad, *srcpad;
|
GstPad *sinkpad,
|
||||||
|
*srcpad;
|
||||||
|
|
||||||
gint state;
|
gint state;
|
||||||
guchar *tune_buffer;
|
guchar *tune_buffer;
|
||||||
|
@ -63,12 +65,12 @@ struct _GstSidDec
|
||||||
GstCaps *metadata;
|
GstCaps *metadata;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstSidDecClass
|
struct _GstSidDecClass {
|
||||||
{
|
|
||||||
GstElementClass parent_class;
|
GstElementClass parent_class;
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_siddec_get_type (void);
|
GType gst_siddec_get_type (void);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_SIDDEC_H__ */
|
#endif /* __GST_SIDDEC_H__ */
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
#define __GST_AUDIO_AUDIO_H__
|
#define __GST_AUDIO_AUDIO_H__
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
/* For people that are looking at this source: the purpose of these defines is
|
/* For people that are looking at this source: the purpose of these defines is
|
||||||
* to make GstCaps a bit easier, in that you don't have to know all of the
|
* to make GstCaps a bit easier, in that you don't have to know all of the
|
||||||
* properties that need to be defined. you can just use these macros. currently
|
* properties that need to be defined. you can just use these macros. currently
|
||||||
|
@ -49,7 +50,9 @@ G_BEGIN_DECLS
|
||||||
*
|
*
|
||||||
* Andy Wingo, 18 August 2001
|
* Andy Wingo, 18 August 2001
|
||||||
* Thomas, 6 September 2002 */
|
* Thomas, 6 September 2002 */
|
||||||
|
|
||||||
#define GST_AUDIO_DEF_RATE 44100
|
#define GST_AUDIO_DEF_RATE 44100
|
||||||
|
|
||||||
#define GST_AUDIO_INT_PAD_TEMPLATE_CAPS \
|
#define GST_AUDIO_INT_PAD_TEMPLATE_CAPS \
|
||||||
"audio/x-raw-int, " \
|
"audio/x-raw-int, " \
|
||||||
"rate = (int) [ 1, MAX ], " \
|
"rate = (int) [ 1, MAX ], " \
|
||||||
|
@ -58,6 +61,8 @@ G_BEGIN_DECLS
|
||||||
"width = (int) { 8, 16, 32 }, " \
|
"width = (int) { 8, 16, 32 }, " \
|
||||||
"depth = (int) [ 1, 32 ], " \
|
"depth = (int) [ 1, 32 ], " \
|
||||||
"signed = (boolean) { true, false }"
|
"signed = (boolean) { true, false }"
|
||||||
|
|
||||||
|
|
||||||
/* "standard" int audio is native order, 16 bit stereo. */
|
/* "standard" int audio is native order, 16 bit stereo. */
|
||||||
#define GST_AUDIO_INT_STANDARD_PAD_TEMPLATE_CAPS \
|
#define GST_AUDIO_INT_STANDARD_PAD_TEMPLATE_CAPS \
|
||||||
"audio/x-raw-int, " \
|
"audio/x-raw-int, " \
|
||||||
|
@ -67,6 +72,7 @@ G_BEGIN_DECLS
|
||||||
"width = (int) 16, " \
|
"width = (int) 16, " \
|
||||||
"depth = (int) 16, " \
|
"depth = (int) 16, " \
|
||||||
"signed = (boolean) true"
|
"signed = (boolean) true"
|
||||||
|
|
||||||
#define GST_AUDIO_FLOAT_PAD_TEMPLATE_CAPS \
|
#define GST_AUDIO_FLOAT_PAD_TEMPLATE_CAPS \
|
||||||
"audio/x-raw-float, " \
|
"audio/x-raw-float, " \
|
||||||
"rate = (int) [ 1, MAX ], " \
|
"rate = (int) [ 1, MAX ], " \
|
||||||
|
@ -74,6 +80,7 @@ G_BEGIN_DECLS
|
||||||
"endianness = (int) { LITTLE_ENDIAN , BIG_ENDIAN }, " \
|
"endianness = (int) { LITTLE_ENDIAN , BIG_ENDIAN }, " \
|
||||||
"width = (int) { 32, 64 }, " \
|
"width = (int) { 32, 64 }, " \
|
||||||
"buffer-frames = (int) [ 1, MAX]"
|
"buffer-frames = (int) [ 1, MAX]"
|
||||||
|
|
||||||
/* "standard" float audio is native order, 32 bit mono. */
|
/* "standard" float audio is native order, 32 bit mono. */
|
||||||
#define GST_AUDIO_FLOAT_STANDARD_PAD_TEMPLATE_CAPS \
|
#define GST_AUDIO_FLOAT_STANDARD_PAD_TEMPLATE_CAPS \
|
||||||
"audio/x-raw-float, " \
|
"audio/x-raw-float, " \
|
||||||
|
@ -81,10 +88,12 @@ G_BEGIN_DECLS
|
||||||
"channels = (int) 1, " \
|
"channels = (int) 1, " \
|
||||||
"endianness = (int) BYTE_ORDER, " \
|
"endianness = (int) BYTE_ORDER, " \
|
||||||
"buffer-frames = (int) [ 1, MAX]"
|
"buffer-frames = (int) [ 1, MAX]"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* this library defines and implements some helper functions for audio
|
* this library defines and implements some helper functions for audio
|
||||||
* handling
|
* handling
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* get byte size of audio frame (based on caps of pad */
|
/* get byte size of audio frame (based on caps of pad */
|
||||||
int gst_audio_frame_byte_size (GstPad* pad);
|
int gst_audio_frame_byte_size (GstPad* pad);
|
||||||
|
|
||||||
|
@ -104,8 +113,7 @@ long gst_audio_highest_sample_value (GstPad * pad);
|
||||||
gboolean gst_audio_is_buffer_framed (GstPad* pad, GstBuffer* buf);
|
gboolean gst_audio_is_buffer_framed (GstPad* pad, GstBuffer* buf);
|
||||||
|
|
||||||
/* functions useful for _getcaps functions */
|
/* functions useful for _getcaps functions */
|
||||||
typedef enum
|
typedef enum {
|
||||||
{
|
|
||||||
GST_AUDIO_FIELD_RATE = (1 << 0),
|
GST_AUDIO_FIELD_RATE = (1 << 0),
|
||||||
GST_AUDIO_FIELD_CHANNELS = (1 << 1),
|
GST_AUDIO_FIELD_CHANNELS = (1 << 1),
|
||||||
GST_AUDIO_FIELD_ENDIANNESS = (1 << 2),
|
GST_AUDIO_FIELD_ENDIANNESS = (1 << 2),
|
||||||
|
@ -115,8 +123,8 @@ typedef enum
|
||||||
GST_AUDIO_FIELD_BUFFER_FRAMES = (1 << 6)
|
GST_AUDIO_FIELD_BUFFER_FRAMES = (1 << 6)
|
||||||
} GstAudioFieldFlag;
|
} GstAudioFieldFlag;
|
||||||
|
|
||||||
void gst_audio_structure_set_int (GstStructure * structure,
|
void gst_audio_structure_set_int (GstStructure *structure, GstAudioFieldFlag flag);
|
||||||
GstAudioFieldFlag flag);
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_AUDIO_AUDIO_H__ */
|
#endif /* __GST_AUDIO_AUDIO_H__ */
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
#include <gst/gstsystemclock.h>
|
#include <gst/gstsystemclock.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define GST_TYPE_AUDIO_CLOCK \
|
#define GST_TYPE_AUDIO_CLOCK \
|
||||||
(gst_audio_clock_get_type())
|
(gst_audio_clock_get_type())
|
||||||
#define GST_AUDIO_CLOCK(obj) \
|
#define GST_AUDIO_CLOCK(obj) \
|
||||||
|
@ -37,15 +38,14 @@ G_BEGIN_DECLS
|
||||||
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_AUDIO_CLOCK))
|
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_AUDIO_CLOCK))
|
||||||
#define GST_IS_AUDIO_CLOCK_CLASS(obj) \
|
#define GST_IS_AUDIO_CLOCK_CLASS(obj) \
|
||||||
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AUDIO_CLOCK))
|
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AUDIO_CLOCK))
|
||||||
|
|
||||||
typedef struct _GstAudioClock GstAudioClock;
|
typedef struct _GstAudioClock GstAudioClock;
|
||||||
typedef struct _GstAudioClockClass GstAudioClockClass;
|
typedef struct _GstAudioClockClass GstAudioClockClass;
|
||||||
|
|
||||||
typedef GstClockTime (*GstAudioClockGetTimeFunc) (GstClock * clock,
|
typedef GstClockTime (*GstAudioClockGetTimeFunc) (GstClock *clock, gpointer user_data);
|
||||||
gpointer user_data);
|
|
||||||
|
|
||||||
|
|
||||||
struct _GstAudioClock
|
struct _GstAudioClock {
|
||||||
{
|
|
||||||
GstSystemClock clock;
|
GstSystemClock clock;
|
||||||
|
|
||||||
GstClockTime prev1, prev2;
|
GstClockTime prev1, prev2;
|
||||||
|
@ -63,8 +63,7 @@ struct _GstAudioClock
|
||||||
gpointer _gst_reserved[GST_PADDING];
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstAudioClockClass
|
struct _GstAudioClockClass {
|
||||||
{
|
|
||||||
GstSystemClockClass parent_class;
|
GstSystemClockClass parent_class;
|
||||||
|
|
||||||
gpointer _gst_reserved[GST_PADDING];
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
|
@ -78,4 +77,5 @@ void gst_audio_clock_set_active (GstAudioClock * aclock, gboolean active);
|
||||||
void gst_audio_clock_update_time (GstAudioClock *aclock, GstClockTime time);
|
void gst_audio_clock_update_time (GstAudioClock *aclock, GstClockTime time);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_AUDIO_CLOCK_H__ */
|
#endif /* __GST_AUDIO_CLOCK_H__ */
|
||||||
|
|
|
@ -25,7 +25,9 @@
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
|
|
||||||
G_BEGIN_DECLS typedef struct _GstAudiofilter GstAudiofilter;
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
typedef struct _GstAudiofilter GstAudiofilter;
|
||||||
typedef struct _GstAudiofilterClass GstAudiofilterClass;
|
typedef struct _GstAudiofilterClass GstAudiofilterClass;
|
||||||
|
|
||||||
typedef void (*GstAudiofilterFilterFunc)(GstAudiofilter *filter,
|
typedef void (*GstAudiofilterFilterFunc)(GstAudiofilter *filter,
|
||||||
|
@ -47,8 +49,7 @@ typedef void (*GstAudiofilterSetupFunc) (GstAudiofilter * filter);
|
||||||
#define GST_IS_AUDIOFILTER_CLASS(obj) \
|
#define GST_IS_AUDIOFILTER_CLASS(obj) \
|
||||||
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AUDIOFILTER))
|
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AUDIOFILTER))
|
||||||
|
|
||||||
struct _GstAudiofilter
|
struct _GstAudiofilter {
|
||||||
{
|
|
||||||
GstElement element;
|
GstElement element;
|
||||||
|
|
||||||
GstPad *sinkpad,*srcpad;
|
GstPad *sinkpad,*srcpad;
|
||||||
|
@ -67,8 +68,7 @@ struct _GstAudiofilter
|
||||||
int bytes_per_sample;
|
int bytes_per_sample;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstAudiofilterClass
|
struct _GstAudiofilterClass {
|
||||||
{
|
|
||||||
GstElementClass parent_class;
|
GstElementClass parent_class;
|
||||||
|
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
|
@ -79,8 +79,9 @@ struct _GstAudiofilterClass
|
||||||
|
|
||||||
GType gst_audiofilter_get_type(void);
|
GType gst_audiofilter_get_type(void);
|
||||||
|
|
||||||
void gst_audiofilter_class_add_pad_templates (GstAudiofilterClass *
|
void gst_audiofilter_class_add_pad_templates (GstAudiofilterClass *audiofilterclass, const GstCaps *caps);
|
||||||
audiofilterclass, const GstCaps * caps);
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_AUDIOFILTER_H__ */
|
#endif /* __GST_AUDIOFILTER_H__ */
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
#include <gst/colorbalance/colorbalance-enumtypes.h>
|
#include <gst/colorbalance/colorbalance-enumtypes.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define GST_TYPE_COLOR_BALANCE \
|
#define GST_TYPE_COLOR_BALANCE \
|
||||||
(gst_color_balance_get_type ())
|
(gst_color_balance_get_type ())
|
||||||
#define GST_COLOR_BALANCE(obj) \
|
#define GST_COLOR_BALANCE(obj) \
|
||||||
|
@ -41,7 +42,9 @@ G_BEGIN_DECLS
|
||||||
(G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_COLOR_BALANCE))
|
(G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_COLOR_BALANCE))
|
||||||
#define GST_COLOR_BALANCE_GET_CLASS(inst) \
|
#define GST_COLOR_BALANCE_GET_CLASS(inst) \
|
||||||
(G_TYPE_INSTANCE_GET_INTERFACE ((inst), GST_TYPE_COLOR_BALANCE, GstColorBalanceClass))
|
(G_TYPE_INSTANCE_GET_INTERFACE ((inst), GST_TYPE_COLOR_BALANCE, GstColorBalanceClass))
|
||||||
|
|
||||||
#define GST_COLOR_BALANCE_TYPE(klass) (klass->balance_type)
|
#define GST_COLOR_BALANCE_TYPE(klass) (klass->balance_type)
|
||||||
|
|
||||||
typedef struct _GstColorBalance GstColorBalance;
|
typedef struct _GstColorBalance GstColorBalance;
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
|
@ -50,8 +53,7 @@ typedef enum
|
||||||
GST_COLOR_BALANCE_SOFTWARE
|
GST_COLOR_BALANCE_SOFTWARE
|
||||||
} GstColorBalanceType;
|
} GstColorBalanceType;
|
||||||
|
|
||||||
typedef struct _GstColorBalanceClass
|
typedef struct _GstColorBalanceClass {
|
||||||
{
|
|
||||||
GTypeInterface klass;
|
GTypeInterface klass;
|
||||||
|
|
||||||
GstColorBalanceType balance_type;
|
GstColorBalanceType balance_type;
|
||||||
|
@ -60,13 +62,15 @@ typedef struct _GstColorBalanceClass
|
||||||
const GList * (* list_channels) (GstColorBalance *balance);
|
const GList * (* list_channels) (GstColorBalance *balance);
|
||||||
|
|
||||||
void (* set_value) (GstColorBalance *balance,
|
void (* set_value) (GstColorBalance *balance,
|
||||||
GstColorBalanceChannel * channel, gint value);
|
GstColorBalanceChannel *channel,
|
||||||
|
gint value);
|
||||||
gint (* get_value) (GstColorBalance *balance,
|
gint (* get_value) (GstColorBalance *balance,
|
||||||
GstColorBalanceChannel *channel);
|
GstColorBalanceChannel *channel);
|
||||||
|
|
||||||
/* signals */
|
/* signals */
|
||||||
void (* value_changed) (GstColorBalance *balance,
|
void (* value_changed) (GstColorBalance *balance,
|
||||||
GstColorBalanceChannel * channel, gint value);
|
GstColorBalanceChannel *channel,
|
||||||
|
gint value);
|
||||||
|
|
||||||
gpointer _gst_reserved[GST_PADDING];
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
} GstColorBalanceClass;
|
} GstColorBalanceClass;
|
||||||
|
@ -74,15 +78,19 @@ typedef struct _GstColorBalanceClass
|
||||||
GType gst_color_balance_get_type (void);
|
GType gst_color_balance_get_type (void);
|
||||||
|
|
||||||
/* virtual class function wrappers */
|
/* virtual class function wrappers */
|
||||||
const GList *gst_color_balance_list_channels (GstColorBalance * balance);
|
const GList *
|
||||||
|
gst_color_balance_list_channels (GstColorBalance *balance);
|
||||||
void gst_color_balance_set_value (GstColorBalance *balance,
|
void gst_color_balance_set_value (GstColorBalance *balance,
|
||||||
GstColorBalanceChannel * channel, gint value);
|
GstColorBalanceChannel *channel,
|
||||||
|
gint value);
|
||||||
gint gst_color_balance_get_value (GstColorBalance *balance,
|
gint gst_color_balance_get_value (GstColorBalance *balance,
|
||||||
GstColorBalanceChannel *channel);
|
GstColorBalanceChannel *channel);
|
||||||
|
|
||||||
/* trigger signal */
|
/* trigger signal */
|
||||||
void gst_color_balance_value_changed (GstColorBalance *balance,
|
void gst_color_balance_value_changed (GstColorBalance *balance,
|
||||||
GstColorBalanceChannel * channel, gint value);
|
GstColorBalanceChannel *channel,
|
||||||
|
gint value);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_COLOR_BALANCE_H__ */
|
#endif /* __GST_COLOR_BALANCE_H__ */
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define GST_TYPE_COLOR_BALANCE_CHANNEL \
|
#define GST_TYPE_COLOR_BALANCE_CHANNEL \
|
||||||
(gst_color_balance_channel_get_type ())
|
(gst_color_balance_channel_get_type ())
|
||||||
#define GST_COLOR_BALANCE_CHANNEL(obj) \
|
#define GST_COLOR_BALANCE_CHANNEL(obj) \
|
||||||
|
@ -37,20 +38,21 @@ G_BEGIN_DECLS
|
||||||
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_COLOR_BALANCE_CHANNEL))
|
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_COLOR_BALANCE_CHANNEL))
|
||||||
#define GST_IS_COLOR_BALANCE_CHANNEL_CLASS(klass) \
|
#define GST_IS_COLOR_BALANCE_CHANNEL_CLASS(klass) \
|
||||||
(G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_COLOR_BALANCE_CHANNEL))
|
(G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_COLOR_BALANCE_CHANNEL))
|
||||||
typedef struct _GstColorBalanceChannel
|
|
||||||
{
|
typedef struct _GstColorBalanceChannel {
|
||||||
GObject parent;
|
GObject parent;
|
||||||
|
|
||||||
gchar *label;
|
gchar *label;
|
||||||
gint min_value, max_value;
|
gint min_value,
|
||||||
|
max_value;
|
||||||
} GstColorBalanceChannel;
|
} GstColorBalanceChannel;
|
||||||
|
|
||||||
typedef struct _GstColorBalanceChannelClass
|
typedef struct _GstColorBalanceChannelClass {
|
||||||
{
|
|
||||||
GObjectClass parent;
|
GObjectClass parent;
|
||||||
|
|
||||||
/* signals */
|
/* signals */
|
||||||
void (*value_changed) (GstColorBalanceChannel * channel, gint value);
|
void (* value_changed) (GstColorBalanceChannel *channel,
|
||||||
|
gint value);
|
||||||
|
|
||||||
gpointer _gst_reserved[GST_PADDING];
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
} GstColorBalanceChannelClass;
|
} GstColorBalanceChannelClass;
|
||||||
|
@ -58,4 +60,5 @@ typedef struct _GstColorBalanceChannelClass
|
||||||
GType gst_color_balance_channel_get_type (void);
|
GType gst_color_balance_channel_get_type (void);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_COLOR_BALANCE_CHANNEL_H__ */
|
#endif /* __GST_COLOR_BALANCE_CHANNEL_H__ */
|
||||||
|
|
|
@ -29,31 +29,39 @@
|
||||||
#include <glib/gtypes.h>
|
#include <glib/gtypes.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#if (HAVE_LRINT && HAVE_LRINTF)
|
#if (HAVE_LRINT && HAVE_LRINTF)
|
||||||
|
|
||||||
/* These defines enable functionality introduced with the 1999 ISO C
|
/* These defines enable functionality introduced with the 1999 ISO C
|
||||||
** standard. They must be defined before the inclusion of math.h to
|
** standard. They must be defined before the inclusion of math.h to
|
||||||
** engage them. If optimisation is enabled, these functions will be
|
** engage them. If optimisation is enabled, these functions will be
|
||||||
** inlined. With optimisation switched off, you have to link in the
|
** inlined. With optimisation switched off, you have to link in the
|
||||||
** maths library using -lm.
|
** maths library using -lm.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _ISOC9X_SOURCE 1
|
#define _ISOC9X_SOURCE 1
|
||||||
#define _ISOC99_SOURCE 1
|
#define _ISOC99_SOURCE 1
|
||||||
|
|
||||||
#define __USE_ISOC9X 1
|
#define __USE_ISOC9X 1
|
||||||
#define __USE_ISOC99 1
|
#define __USE_ISOC99 1
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#define gst_cast_float(x) ((gint)lrintf(x))
|
#define gst_cast_float(x) ((gint)lrintf(x))
|
||||||
#define gst_cast_double(x) ((gint)lrint(x))
|
#define gst_cast_double(x) ((gint)lrint(x))
|
||||||
|
|
||||||
#else
|
#else
|
||||||
/* use a standard c cast, but do rounding correctly */
|
/* use a standard c cast, but do rounding correctly */
|
||||||
#define gst_cast_float(x) ((gint)floor((x)+0.5))
|
#define gst_cast_float(x) ((gint)floor((x)+0.5))
|
||||||
#define gst_cast_double(x) ((gint)floor((x)+0.5))
|
#define gst_cast_double(x) ((gint)floor((x)+0.5))
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
inline static gfloat
|
inline static gfloat
|
||||||
GFLOAT_SWAP_LE_BE(gfloat in)
|
GFLOAT_SWAP_LE_BE(gfloat in)
|
||||||
{
|
{
|
||||||
gint32 swap;
|
gint32 swap;
|
||||||
gfloat out;
|
gfloat out;
|
||||||
|
|
||||||
memcpy(&swap, &in, 4);
|
memcpy(&swap, &in, 4);
|
||||||
swap = GUINT32_SWAP_LE_BE_CONSTANT (swap);
|
swap = GUINT32_SWAP_LE_BE_CONSTANT (swap);
|
||||||
memcpy(&out, &swap, 4);
|
memcpy(&out, &swap, 4);
|
||||||
|
@ -65,7 +73,6 @@ GDOUBLE_SWAP_LE_BE (gdouble in)
|
||||||
{
|
{
|
||||||
gint64 swap;
|
gint64 swap;
|
||||||
gdouble out;
|
gdouble out;
|
||||||
|
|
||||||
memcpy(&swap, &in, 8);
|
memcpy(&swap, &in, 8);
|
||||||
swap = GUINT64_SWAP_LE_BE_CONSTANT (swap);
|
swap = GUINT64_SWAP_LE_BE_CONSTANT (swap);
|
||||||
memcpy(&out, &swap, 8);
|
memcpy(&out, &swap, 8);
|
||||||
|
@ -94,4 +101,6 @@ GDOUBLE_SWAP_LE_BE (gdouble in)
|
||||||
#define GDOUBLE_FROM_BE(val) (GDOUBLE_TO_BE (val))
|
#define GDOUBLE_FROM_BE(val) (GDOUBLE_TO_BE (val))
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __FLOATCAST_H__ */
|
#endif /* __FLOATCAST_H__ */
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,8 @@
|
||||||
#include <gconf/gconf-client.h>
|
#include <gconf/gconf-client.h>
|
||||||
|
|
||||||
gchar * gst_gconf_get_string (const gchar *key);
|
gchar * gst_gconf_get_string (const gchar *key);
|
||||||
void gst_gconf_set_string (const gchar * key, const gchar * value);
|
void gst_gconf_set_string (const gchar *key,
|
||||||
|
const gchar *value);
|
||||||
|
|
||||||
GstElement * gst_gconf_render_bin_from_key (const gchar *key);
|
GstElement * gst_gconf_render_bin_from_key (const gchar *key);
|
||||||
GstElement * gst_gconf_render_bin_from_description (const gchar *description);
|
GstElement * gst_gconf_render_bin_from_description (const gchar *description);
|
||||||
|
|
|
@ -29,3 +29,4 @@ extern void gst_idct_sse_idct (short *block);
|
||||||
|
|
||||||
extern void gst_idct_init_float_idct(void);
|
extern void gst_idct_init_float_idct(void);
|
||||||
extern void gst_idct_float_idct (short *block);
|
extern void gst_idct_float_idct (short *block);
|
||||||
|
|
||||||
|
|
|
@ -23,8 +23,7 @@
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
typedef enum
|
typedef enum {
|
||||||
{
|
|
||||||
GST_IDCT_DEFAULT,
|
GST_IDCT_DEFAULT,
|
||||||
GST_IDCT_INT,
|
GST_IDCT_INT,
|
||||||
GST_IDCT_FAST_INT,
|
GST_IDCT_FAST_INT,
|
||||||
|
@ -39,8 +38,7 @@ typedef void (*GstIDCTFunction) (gshort * block);
|
||||||
|
|
||||||
#define GST_IDCT_TRANSPOSE(idct) ((idct)->need_transpose)
|
#define GST_IDCT_TRANSPOSE(idct) ((idct)->need_transpose)
|
||||||
|
|
||||||
struct _GstIDCT
|
struct _GstIDCT {
|
||||||
{
|
|
||||||
/* private */
|
/* private */
|
||||||
GstIDCTFunction convert;
|
GstIDCTFunction convert;
|
||||||
GstIDCTFunction convert_sparse;
|
GstIDCTFunction convert_sparse;
|
||||||
|
@ -49,7 +47,6 @@ struct _GstIDCT
|
||||||
|
|
||||||
|
|
||||||
GstIDCT *gst_idct_new(GstIDCTMethod method);
|
GstIDCT *gst_idct_new(GstIDCTMethod method);
|
||||||
|
|
||||||
#define gst_idct_convert(idct, blocks) (idct)->convert((blocks))
|
#define gst_idct_convert(idct, blocks) (idct)->convert((blocks))
|
||||||
#define gst_idct_convert_sparse(idct, blocks) (idct)->convert_sparse((blocks))
|
#define gst_idct_convert_sparse(idct, blocks) (idct)->convert_sparse((blocks))
|
||||||
void gst_idct_destroy(GstIDCT *idct);
|
void gst_idct_destroy(GstIDCT *idct);
|
||||||
|
|
|
@ -96,26 +96,30 @@ struct GstMediaInfoPriv
|
||||||
};
|
};
|
||||||
|
|
||||||
/* declarations */
|
/* declarations */
|
||||||
GstMediaInfoStream *gmi_stream_new (void);
|
GstMediaInfoStream *
|
||||||
|
gmi_stream_new (void);
|
||||||
void gmi_stream_free (GstMediaInfoStream *stream);
|
void gmi_stream_free (GstMediaInfoStream *stream);
|
||||||
|
|
||||||
GstMediaInfoTrack *gmi_track_new (void);
|
GstMediaInfoTrack *
|
||||||
|
gmi_track_new (void);
|
||||||
|
|
||||||
void gmip_reset (GstMediaInfoPriv *priv);
|
void gmip_reset (GstMediaInfoPriv *priv);
|
||||||
gboolean gmip_init (GstMediaInfoPriv *priv, GError **error);
|
gboolean gmip_init (GstMediaInfoPriv *priv, GError **error);
|
||||||
|
|
||||||
void gmi_clear_decoder (GstMediaInfo *info);
|
void gmi_clear_decoder (GstMediaInfo *info);
|
||||||
|
|
||||||
gboolean gmi_seek_to_track (GstMediaInfo * info, long track);
|
gboolean gmi_seek_to_track (GstMediaInfo *info,
|
||||||
|
long track);
|
||||||
|
|
||||||
gboolean gmi_set_mime (GstMediaInfo * info, const char *mime);
|
gboolean gmi_set_mime (GstMediaInfo *info,
|
||||||
|
const char *mime);
|
||||||
|
|
||||||
void deep_notify_callback (GObject *object,
|
void deep_notify_callback (GObject *object,
|
||||||
GstObject * origin, GParamSpec * pspec, GstMediaInfoPriv * priv);
|
GstObject *origin,
|
||||||
void found_tag_callback (GObject * pipeline, GstElement * source,
|
GParamSpec *pspec,
|
||||||
GstTagList * tags, GstMediaInfoPriv * priv);
|
GstMediaInfoPriv *priv);
|
||||||
void error_callback (GObject * element, GstElement * source, GError * error,
|
void found_tag_callback (GObject *pipeline, GstElement *source, GstTagList *tags, GstMediaInfoPriv *priv);
|
||||||
gchar * debug, GstMediaInfoPriv * priv);
|
void error_callback (GObject *element, GstElement *source, GError *error, gchar *debug, GstMediaInfoPriv *priv);
|
||||||
|
|
||||||
gboolean gmip_find_type_pre (GstMediaInfoPriv *priv, GError **error);
|
gboolean gmip_find_type_pre (GstMediaInfoPriv *priv, GError **error);
|
||||||
gboolean gmip_find_type_post (GstMediaInfoPriv *priv);
|
gboolean gmip_find_type_post (GstMediaInfoPriv *priv);
|
||||||
|
|
|
@ -23,7 +23,9 @@
|
||||||
|
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS typedef struct GstMediaInfoPriv GstMediaInfoPriv;
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
typedef struct GstMediaInfoPriv GstMediaInfoPriv;
|
||||||
typedef struct _GstMediaInfo GstMediaInfo;
|
typedef struct _GstMediaInfo GstMediaInfo;
|
||||||
typedef struct _GstMediaInfoClass GstMediaInfoClass;
|
typedef struct _GstMediaInfoClass GstMediaInfoClass;
|
||||||
|
|
||||||
|
@ -42,8 +44,7 @@ struct _GstMediaInfoClass
|
||||||
|
|
||||||
/* signals */
|
/* signals */
|
||||||
void (*media_info_signal) (GstMediaInfo *gst_media_info);
|
void (*media_info_signal) (GstMediaInfo *gst_media_info);
|
||||||
void (*error_signal) (GstMediaInfo * gst_media_info, GError * error,
|
void (*error_signal) (GstMediaInfo *gst_media_info, GError *error, const gchar *debug);
|
||||||
const gchar * debug);
|
|
||||||
|
|
||||||
gpointer _gst_reserved[GST_PADDING];
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
@ -107,17 +108,26 @@ GType gst_media_info_get_type (void);
|
||||||
GstMediaInfo * gst_media_info_new (GError **error);
|
GstMediaInfo * gst_media_info_new (GError **error);
|
||||||
|
|
||||||
gboolean gst_media_info_set_source (GstMediaInfo *info,
|
gboolean gst_media_info_set_source (GstMediaInfo *info,
|
||||||
const char *source, GError ** error);
|
const char *source,
|
||||||
|
GError **error);
|
||||||
void gst_media_info_read_with_idler (GstMediaInfo *media_info,
|
void gst_media_info_read_with_idler (GstMediaInfo *media_info,
|
||||||
const char *location, guint16 GST_MEDIA_INFO_FLAGS, GError ** error);
|
const char *location,
|
||||||
|
guint16 GST_MEDIA_INFO_FLAGS,
|
||||||
|
GError **error);
|
||||||
gboolean gst_media_info_read_idler (GstMediaInfo *media_info,
|
gboolean gst_media_info_read_idler (GstMediaInfo *media_info,
|
||||||
GstMediaInfoStream ** streamp, GError ** error);
|
GstMediaInfoStream **streamp,
|
||||||
GstMediaInfoStream *gst_media_info_read (GstMediaInfo * media_info,
|
GError **error);
|
||||||
const char *location, guint16 GST_MEDIA_INFO_FLAGS, GError ** error);
|
GstMediaInfoStream *
|
||||||
|
gst_media_info_read (GstMediaInfo *media_info,
|
||||||
|
const char *location,
|
||||||
|
guint16 GST_MEDIA_INFO_FLAGS,
|
||||||
|
GError **error);
|
||||||
gboolean gst_media_info_read_many (GstMediaInfo *media_info,
|
gboolean gst_media_info_read_many (GstMediaInfo *media_info,
|
||||||
GList * locations, guint16 GST_MEDIA_INFO_FLAGS, GError ** error);
|
GList *locations,
|
||||||
GstCaps *gst_media_info_get_next (GstMediaInfo * media_info, GError ** error);
|
guint16 GST_MEDIA_INFO_FLAGS,
|
||||||
|
GError **error);
|
||||||
|
GstCaps * gst_media_info_get_next (GstMediaInfo *media_info,
|
||||||
|
GError **error);
|
||||||
/*
|
/*
|
||||||
* FIXME: reset ?
|
* FIXME: reset ?
|
||||||
gboolean gst_media_info_write (GstMediaInfo *media_info,
|
gboolean gst_media_info_write (GstMediaInfo *media_info,
|
||||||
|
@ -126,4 +136,5 @@ gboolean gst_media_info_write (GstMediaInfo *media_info,
|
||||||
*/
|
*/
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_MEDIA_INFO_H__ */
|
#endif /* __GST_MEDIA_INFO_H__ */
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
#include <gst/mixer/mixer-enumtypes.h>
|
#include <gst/mixer/mixer-enumtypes.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define GST_TYPE_MIXER \
|
#define GST_TYPE_MIXER \
|
||||||
(gst_mixer_get_type ())
|
(gst_mixer_get_type ())
|
||||||
#define GST_MIXER(obj) \
|
#define GST_MIXER(obj) \
|
||||||
|
@ -39,7 +40,9 @@ G_BEGIN_DECLS
|
||||||
(G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_MIXER))
|
(G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_MIXER))
|
||||||
#define GST_MIXER_GET_CLASS(inst) \
|
#define GST_MIXER_GET_CLASS(inst) \
|
||||||
(G_TYPE_INSTANCE_GET_INTERFACE ((inst), GST_TYPE_MIXER, GstMixerClass))
|
(G_TYPE_INSTANCE_GET_INTERFACE ((inst), GST_TYPE_MIXER, GstMixerClass))
|
||||||
|
|
||||||
#define GST_MIXER_TYPE(klass) (klass->mixer_type)
|
#define GST_MIXER_TYPE(klass) (klass->mixer_type)
|
||||||
|
|
||||||
typedef struct _GstMixer GstMixer;
|
typedef struct _GstMixer GstMixer;
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
|
@ -48,8 +51,7 @@ typedef enum
|
||||||
GST_MIXER_SOFTWARE
|
GST_MIXER_SOFTWARE
|
||||||
} GstMixerType;
|
} GstMixerType;
|
||||||
|
|
||||||
typedef struct _GstMixerClass
|
typedef struct _GstMixerClass {
|
||||||
{
|
|
||||||
GTypeInterface klass;
|
GTypeInterface klass;
|
||||||
|
|
||||||
GstMixerType mixer_type;
|
GstMixerType mixer_type;
|
||||||
|
@ -57,19 +59,30 @@ typedef struct _GstMixerClass
|
||||||
/* virtual functions */
|
/* virtual functions */
|
||||||
const GList * (* list_tracks) (GstMixer *mixer);
|
const GList * (* list_tracks) (GstMixer *mixer);
|
||||||
|
|
||||||
void (*set_volume) (GstMixer * mixer, GstMixerTrack * track, gint * volumes);
|
void (* set_volume) (GstMixer *mixer,
|
||||||
void (*get_volume) (GstMixer * mixer, GstMixerTrack * track, gint * volumes);
|
GstMixerTrack *track,
|
||||||
|
gint *volumes);
|
||||||
|
void (* get_volume) (GstMixer *mixer,
|
||||||
|
GstMixerTrack *track,
|
||||||
|
gint *volumes);
|
||||||
|
|
||||||
void (*set_mute) (GstMixer * mixer, GstMixerTrack * track, gboolean mute);
|
void (* set_mute) (GstMixer *mixer,
|
||||||
void (*set_record) (GstMixer * mixer, GstMixerTrack * track, gboolean record);
|
GstMixerTrack *track,
|
||||||
|
gboolean mute);
|
||||||
|
void (* set_record) (GstMixer *mixer,
|
||||||
|
GstMixerTrack *track,
|
||||||
|
gboolean record);
|
||||||
|
|
||||||
/* signals */
|
/* signals */
|
||||||
void (* mute_toggled) (GstMixer *mixer,
|
void (* mute_toggled) (GstMixer *mixer,
|
||||||
GstMixerTrack * channel, gboolean mute);
|
GstMixerTrack *channel,
|
||||||
|
gboolean mute);
|
||||||
void (* record_toggled) (GstMixer *mixer,
|
void (* record_toggled) (GstMixer *mixer,
|
||||||
GstMixerTrack * channel, gboolean record);
|
GstMixerTrack *channel,
|
||||||
|
gboolean record);
|
||||||
void (* volume_changed) (GstMixer *mixer,
|
void (* volume_changed) (GstMixer *mixer,
|
||||||
GstMixerTrack * channel, gint * volumes);
|
GstMixerTrack *channel,
|
||||||
|
gint *volumes);
|
||||||
|
|
||||||
gpointer _gst_reserved[GST_PADDING];
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
} GstMixerClass;
|
} GstMixerClass;
|
||||||
|
@ -79,21 +92,29 @@ GType gst_mixer_get_type (void);
|
||||||
/* virtual class function wrappers */
|
/* virtual class function wrappers */
|
||||||
const GList * gst_mixer_list_tracks (GstMixer *mixer);
|
const GList * gst_mixer_list_tracks (GstMixer *mixer);
|
||||||
void gst_mixer_set_volume (GstMixer *mixer,
|
void gst_mixer_set_volume (GstMixer *mixer,
|
||||||
GstMixerTrack * track, gint * volumes);
|
GstMixerTrack *track,
|
||||||
|
gint *volumes);
|
||||||
void gst_mixer_get_volume (GstMixer *mixer,
|
void gst_mixer_get_volume (GstMixer *mixer,
|
||||||
GstMixerTrack * track, gint * volumes);
|
GstMixerTrack *track,
|
||||||
|
gint *volumes);
|
||||||
void gst_mixer_set_mute (GstMixer *mixer,
|
void gst_mixer_set_mute (GstMixer *mixer,
|
||||||
GstMixerTrack * track, gboolean mute);
|
GstMixerTrack *track,
|
||||||
|
gboolean mute);
|
||||||
void gst_mixer_set_record (GstMixer *mixer,
|
void gst_mixer_set_record (GstMixer *mixer,
|
||||||
GstMixerTrack * track, gboolean record);
|
GstMixerTrack *track,
|
||||||
|
gboolean record);
|
||||||
|
|
||||||
/* trigger signals */
|
/* trigger signals */
|
||||||
void gst_mixer_mute_toggled (GstMixer *mixer,
|
void gst_mixer_mute_toggled (GstMixer *mixer,
|
||||||
GstMixerTrack * track, gboolean mute);
|
GstMixerTrack *track,
|
||||||
|
gboolean mute);
|
||||||
void gst_mixer_record_toggled (GstMixer *mixer,
|
void gst_mixer_record_toggled (GstMixer *mixer,
|
||||||
GstMixerTrack * track, gboolean record);
|
GstMixerTrack *track,
|
||||||
|
gboolean record);
|
||||||
void gst_mixer_volume_changed (GstMixer *mixer,
|
void gst_mixer_volume_changed (GstMixer *mixer,
|
||||||
GstMixerTrack * track, gint * volumes);
|
GstMixerTrack *track,
|
||||||
|
gint *volumes);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_MIXER_H__ */
|
#endif /* __GST_MIXER_H__ */
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define GST_TYPE_MIXER_TRACK \
|
#define GST_TYPE_MIXER_TRACK \
|
||||||
(gst_mixer_track_get_type ())
|
(gst_mixer_track_get_type ())
|
||||||
#define GST_MIXER_TRACK(obj) \
|
#define GST_MIXER_TRACK(obj) \
|
||||||
|
@ -37,6 +38,7 @@ G_BEGIN_DECLS
|
||||||
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_MIXER_TRACK))
|
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_MIXER_TRACK))
|
||||||
#define GST_IS_MIXER_TRACK_CLASS(klass) \
|
#define GST_IS_MIXER_TRACK_CLASS(klass) \
|
||||||
(G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_MIXER_TRACK))
|
(G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_MIXER_TRACK))
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Naming:
|
* Naming:
|
||||||
*
|
*
|
||||||
|
@ -52,8 +54,8 @@ G_BEGIN_DECLS
|
||||||
* mixer, which means that setting this track will change
|
* mixer, which means that setting this track will change
|
||||||
* the hearable volume on any output.
|
* the hearable volume on any output.
|
||||||
*/
|
*/
|
||||||
typedef enum
|
|
||||||
{
|
typedef enum {
|
||||||
GST_MIXER_TRACK_INPUT = (1<<0),
|
GST_MIXER_TRACK_INPUT = (1<<0),
|
||||||
GST_MIXER_TRACK_OUTPUT = (1<<1),
|
GST_MIXER_TRACK_OUTPUT = (1<<1),
|
||||||
GST_MIXER_TRACK_MUTE = (1<<2),
|
GST_MIXER_TRACK_MUTE = (1<<2),
|
||||||
|
@ -65,23 +67,26 @@ G_BEGIN_DECLS
|
||||||
#define GST_MIXER_TRACK_HAS_FLAG(channel, flag) \
|
#define GST_MIXER_TRACK_HAS_FLAG(channel, flag) \
|
||||||
((channel)->flags & flag)
|
((channel)->flags & flag)
|
||||||
|
|
||||||
typedef struct _GstMixerTrack
|
typedef struct _GstMixerTrack {
|
||||||
{
|
|
||||||
GObject parent;
|
GObject parent;
|
||||||
|
|
||||||
gchar *label;
|
gchar *label;
|
||||||
GstMixerTrackFlags flags;
|
GstMixerTrackFlags flags;
|
||||||
gint num_channels, min_volume, max_volume;
|
gint num_channels,
|
||||||
|
min_volume,
|
||||||
|
max_volume;
|
||||||
} GstMixerTrack;
|
} GstMixerTrack;
|
||||||
|
|
||||||
typedef struct _GstMixerTrackClass
|
typedef struct _GstMixerTrackClass {
|
||||||
{
|
|
||||||
GObjectClass parent;
|
GObjectClass parent;
|
||||||
|
|
||||||
/* signals */
|
/* signals */
|
||||||
void (*mute_toggled) (GstMixerTrack * channel, gboolean mute);
|
void (* mute_toggled) (GstMixerTrack *channel,
|
||||||
void (*record_toggled) (GstMixerTrack * channel, gboolean record);
|
gboolean mute);
|
||||||
void (*volume_changed) (GstMixerTrack * channel, gint * volumes);
|
void (* record_toggled) (GstMixerTrack *channel,
|
||||||
|
gboolean record);
|
||||||
|
void (* volume_changed) (GstMixerTrack *channel,
|
||||||
|
gint *volumes);
|
||||||
|
|
||||||
gpointer _gst_reserved[GST_PADDING];
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
} GstMixerTrackClass;
|
} GstMixerTrackClass;
|
||||||
|
@ -89,4 +94,5 @@ typedef struct _GstMixerTrackClass
|
||||||
GType gst_mixer_track_get_type (void);
|
GType gst_mixer_track_get_type (void);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_MIXER_TRACK_H__ */
|
#endif /* __GST_MIXER_TRACK_H__ */
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define GST_TYPE_NAVIGATION \
|
#define GST_TYPE_NAVIGATION \
|
||||||
(gst_navigation_get_type ())
|
(gst_navigation_get_type ())
|
||||||
#define GST_NAVIGATION(obj) \
|
#define GST_NAVIGATION(obj) \
|
||||||
|
@ -34,10 +35,10 @@ G_BEGIN_DECLS
|
||||||
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_NAVIGATION))
|
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_NAVIGATION))
|
||||||
#define GST_NAVIGATION_GET_IFACE(obj) \
|
#define GST_NAVIGATION_GET_IFACE(obj) \
|
||||||
(G_TYPE_INSTANCE_GET_INTERFACE ((obj), GST_TYPE_NAVIGATION, GstNavigationInterface))
|
(G_TYPE_INSTANCE_GET_INTERFACE ((obj), GST_TYPE_NAVIGATION, GstNavigationInterface))
|
||||||
|
|
||||||
typedef struct _GstNavigation GstNavigation;
|
typedef struct _GstNavigation GstNavigation;
|
||||||
|
|
||||||
typedef struct _GstNavigationInterface
|
typedef struct _GstNavigationInterface {
|
||||||
{
|
|
||||||
GTypeInterface g_iface;
|
GTypeInterface g_iface;
|
||||||
|
|
||||||
/* virtual functions */
|
/* virtual functions */
|
||||||
|
@ -49,8 +50,7 @@ typedef struct _GstNavigationInterface
|
||||||
GType gst_navigation_get_type (void);
|
GType gst_navigation_get_type (void);
|
||||||
|
|
||||||
/* virtual class function wrappers */
|
/* virtual class function wrappers */
|
||||||
void gst_navigation_send_event (GstNavigation * navigation,
|
void gst_navigation_send_event (GstNavigation *navigation, GstStructure *structure);
|
||||||
GstStructure * structure);
|
|
||||||
|
|
||||||
void gst_navigation_send_key_event (GstNavigation *navigation,
|
void gst_navigation_send_key_event (GstNavigation *navigation,
|
||||||
const char *event, const char *key);
|
const char *event, const char *key);
|
||||||
|
@ -58,4 +58,5 @@ void gst_navigation_send_mouse_event (GstNavigation * navigation,
|
||||||
const char *event, int button, double x, double y);
|
const char *event, int button, double x, double y);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_NAVIGATION_H__ */
|
#endif /* __GST_NAVIGATION_H__ */
|
||||||
|
|
|
@ -70,19 +70,27 @@ struct _GstPlayClass
|
||||||
GType gst_play_get_type (void);
|
GType gst_play_get_type (void);
|
||||||
GstPlay * gst_play_new (GError **error);
|
GstPlay * gst_play_new (GError **error);
|
||||||
|
|
||||||
gboolean gst_play_set_data_src (GstPlay * play, GstElement * data_src);
|
gboolean gst_play_set_data_src (GstPlay *play,
|
||||||
gboolean gst_play_set_video_sink (GstPlay * play, GstElement * video_sink);
|
GstElement *data_src);
|
||||||
gboolean gst_play_set_audio_sink (GstPlay * play, GstElement * audio_sink);
|
gboolean gst_play_set_video_sink (GstPlay *play,
|
||||||
|
GstElement *video_sink);
|
||||||
|
gboolean gst_play_set_audio_sink (GstPlay *play,
|
||||||
|
GstElement *audio_sink);
|
||||||
|
|
||||||
gboolean gst_play_set_visualization (GstPlay * play, GstElement * element);
|
gboolean gst_play_set_visualization (GstPlay *play,
|
||||||
gboolean gst_play_connect_visualization (GstPlay * play, gboolean connect);
|
GstElement *element);
|
||||||
|
gboolean gst_play_connect_visualization (GstPlay *play,
|
||||||
|
gboolean connect);
|
||||||
|
|
||||||
gboolean gst_play_set_location (GstPlay * play, const char *location);
|
gboolean gst_play_set_location (GstPlay *play,
|
||||||
|
const char *location);
|
||||||
char * gst_play_get_location (GstPlay *play);
|
char * gst_play_get_location (GstPlay *play);
|
||||||
|
|
||||||
gboolean gst_play_seek_to_time (GstPlay * play, gint64 time_nanos);
|
gboolean gst_play_seek_to_time (GstPlay *play,
|
||||||
|
gint64 time_nanos);
|
||||||
|
|
||||||
GstElement * gst_play_get_sink_element (GstPlay *play,
|
GstElement * gst_play_get_sink_element (GstPlay *play,
|
||||||
GstElement * element, GstPlaySinkType sink_type);
|
GstElement *element,
|
||||||
|
GstPlaySinkType sink_type);
|
||||||
|
|
||||||
#endif /* __GST_PLAY_H__ */
|
#endif /* __GST_PLAY_H__ */
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define GST_TYPE_PROPERTY_PROBE \
|
#define GST_TYPE_PROPERTY_PROBE \
|
||||||
(gst_property_probe_get_type ())
|
(gst_property_probe_get_type ())
|
||||||
#define GST_PROPERTY_PROBE(obj) \
|
#define GST_PROPERTY_PROBE(obj) \
|
||||||
|
@ -33,23 +34,27 @@ G_BEGIN_DECLS
|
||||||
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_PROPERTY_PROBE))
|
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_PROPERTY_PROBE))
|
||||||
#define GST_PROPERTY_PROBE_GET_IFACE(obj) \
|
#define GST_PROPERTY_PROBE_GET_IFACE(obj) \
|
||||||
(G_TYPE_INSTANCE_GET_INTERFACE ((obj), GST_TYPE_PROPERTY_PROBE, GstPropertyProbeInterface))
|
(G_TYPE_INSTANCE_GET_INTERFACE ((obj), GST_TYPE_PROPERTY_PROBE, GstPropertyProbeInterface))
|
||||||
|
|
||||||
typedef struct _GstPropertyProbe GstPropertyProbe; /* dummy typedef */
|
typedef struct _GstPropertyProbe GstPropertyProbe; /* dummy typedef */
|
||||||
|
|
||||||
typedef struct _GstPropertyProbeInterface
|
typedef struct _GstPropertyProbeInterface {
|
||||||
{
|
|
||||||
GTypeInterface klass;
|
GTypeInterface klass;
|
||||||
|
|
||||||
/* signals */
|
/* signals */
|
||||||
void (*probe_needed) (GstPropertyProbe * probe, const GParamSpec * pspec);
|
void (*probe_needed) (GstPropertyProbe *probe,
|
||||||
|
const GParamSpec *pspec);
|
||||||
|
|
||||||
/* virtual functions */
|
/* virtual functions */
|
||||||
const GList * (*get_properties) (GstPropertyProbe *probe);
|
const GList * (*get_properties) (GstPropertyProbe *probe);
|
||||||
gboolean (*needs_probe) (GstPropertyProbe *probe,
|
gboolean (*needs_probe) (GstPropertyProbe *probe,
|
||||||
guint prop_id, const GParamSpec * pspec);
|
guint prop_id,
|
||||||
|
const GParamSpec *pspec);
|
||||||
void (*probe_property) (GstPropertyProbe *probe,
|
void (*probe_property) (GstPropertyProbe *probe,
|
||||||
guint prop_id, const GParamSpec * pspec);
|
guint prop_id,
|
||||||
|
const GParamSpec *pspec);
|
||||||
GValueArray * (*get_values) (GstPropertyProbe *probe,
|
GValueArray * (*get_values) (GstPropertyProbe *probe,
|
||||||
guint prop_id, const GParamSpec * pspec);
|
guint prop_id,
|
||||||
|
const GParamSpec *pspec);
|
||||||
|
|
||||||
gpointer _gst_reserved[GST_PADDING];
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
} GstPropertyProbeInterface;
|
} GstPropertyProbeInterface;
|
||||||
|
@ -84,8 +89,9 @@ GValueArray *gst_property_probe_get_values_name (GstPropertyProbe * probe,
|
||||||
/* sugar */
|
/* sugar */
|
||||||
GValueArray * gst_property_probe_probe_and_get_values (GstPropertyProbe *probe,
|
GValueArray * gst_property_probe_probe_and_get_values (GstPropertyProbe *probe,
|
||||||
const GParamSpec *pspec);
|
const GParamSpec *pspec);
|
||||||
GValueArray *gst_property_probe_probe_and_get_values_name (GstPropertyProbe *
|
GValueArray * gst_property_probe_probe_and_get_values_name (GstPropertyProbe *probe,
|
||||||
probe, const gchar * name);
|
const gchar *name);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_PROPERTY_PROBE_H__ */
|
#endif /* __GST_PROPERTY_PROBE_H__ */
|
||||||
|
|
|
@ -37,8 +37,7 @@ void gst_resample_sinc_ft_float (gst_resample_t * r);
|
||||||
|
|
||||||
|
|
||||||
typedef struct functable_s functable_t;
|
typedef struct functable_s functable_t;
|
||||||
struct functable_s
|
struct functable_s {
|
||||||
{
|
|
||||||
double start;
|
double start;
|
||||||
double offset;
|
double offset;
|
||||||
int len;
|
int len;
|
||||||
|
@ -79,13 +78,11 @@ double functable_window_dboxcar (void *p, double x);
|
||||||
void conv_double_short_table(double *dest, short *src, int n);
|
void conv_double_short_table(double *dest, short *src, int n);
|
||||||
void conv_double_short_unroll(double *dest, short *src, int n);
|
void conv_double_short_unroll(double *dest, short *src, int n);
|
||||||
void conv_double_short_ref(double *dest, short *src, int n);
|
void conv_double_short_ref(double *dest, short *src, int n);
|
||||||
|
|
||||||
#ifdef HAVE_CPU_PPC
|
#ifdef HAVE_CPU_PPC
|
||||||
void conv_double_short_altivec(double *dest, short *src, int n);
|
void conv_double_short_altivec(double *dest, short *src, int n);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void conv_short_double_ref(short *dest, double *src, int n);
|
void conv_short_double_ref(short *dest, double *src, int n);
|
||||||
|
|
||||||
#ifdef HAVE_CPU_PPC
|
#ifdef HAVE_CPU_PPC
|
||||||
void conv_short_double_ppcasm(short *dest, double *src, int n);
|
void conv_short_double_ppcasm(short *dest, double *src, int n);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -21,24 +21,21 @@
|
||||||
#ifndef __GST_RESAMPLE_H__
|
#ifndef __GST_RESAMPLE_H__
|
||||||
#define __GST_RESAMPLE_H__
|
#define __GST_RESAMPLE_H__
|
||||||
|
|
||||||
typedef enum
|
typedef enum {
|
||||||
{
|
|
||||||
GST_RESAMPLE_NEAREST = 0,
|
GST_RESAMPLE_NEAREST = 0,
|
||||||
GST_RESAMPLE_BILINEAR,
|
GST_RESAMPLE_BILINEAR,
|
||||||
GST_RESAMPLE_SINC_SLOW,
|
GST_RESAMPLE_SINC_SLOW,
|
||||||
GST_RESAMPLE_SINC,
|
GST_RESAMPLE_SINC,
|
||||||
} gst_resample_method;
|
} gst_resample_method;
|
||||||
|
|
||||||
typedef enum
|
typedef enum {
|
||||||
{
|
|
||||||
GST_RESAMPLE_S16 = 0,
|
GST_RESAMPLE_S16 = 0,
|
||||||
GST_RESAMPLE_FLOAT
|
GST_RESAMPLE_FLOAT
|
||||||
} gst_resample_format;
|
} gst_resample_format;
|
||||||
|
|
||||||
typedef struct gst_resample_s gst_resample_t;
|
typedef struct gst_resample_s gst_resample_t;
|
||||||
|
|
||||||
struct gst_resample_s
|
struct gst_resample_s {
|
||||||
{
|
|
||||||
/* parameters */
|
/* parameters */
|
||||||
|
|
||||||
gst_resample_method method;
|
gst_resample_method method;
|
||||||
|
@ -96,3 +93,4 @@ void gst_resample_reinit (gst_resample_t * r);
|
||||||
void gst_resample_scale(gst_resample_t *r, void *i_buf, unsigned int size);
|
void gst_resample_scale(gst_resample_t *r, void *i_buf, unsigned int size);
|
||||||
|
|
||||||
#endif /* __GST_RESAMPLE_H__ */
|
#endif /* __GST_RESAMPLE_H__ */
|
||||||
|
|
||||||
|
|
|
@ -216,8 +216,7 @@
|
||||||
#define GST_RIFF_rec GST_MAKE_FOURCC ('r', 'e', 'c', ' ')
|
#define GST_RIFF_rec GST_MAKE_FOURCC ('r', 'e', 'c', ' ')
|
||||||
|
|
||||||
/* common data structures */
|
/* common data structures */
|
||||||
typedef struct _gst_riff_strh
|
typedef struct _gst_riff_strh {
|
||||||
{
|
|
||||||
guint32 type; /* stream type */
|
guint32 type; /* stream type */
|
||||||
guint32 fcc_handler; /* fcc_handler */
|
guint32 fcc_handler; /* fcc_handler */
|
||||||
guint32 flags;
|
guint32 flags;
|
||||||
|
@ -236,8 +235,7 @@ typedef struct _gst_riff_strh
|
||||||
/* XXX 16 bytes ? */
|
/* XXX 16 bytes ? */
|
||||||
} gst_riff_strh;
|
} gst_riff_strh;
|
||||||
|
|
||||||
typedef struct _gst_riff_strf_vids
|
typedef struct _gst_riff_strf_vids { /* == BitMapInfoHeader */
|
||||||
{ /* == BitMapInfoHeader */
|
|
||||||
guint32 size;
|
guint32 size;
|
||||||
guint32 width;
|
guint32 width;
|
||||||
guint32 height;
|
guint32 height;
|
||||||
|
@ -253,8 +251,7 @@ typedef struct _gst_riff_strf_vids
|
||||||
} gst_riff_strf_vids;
|
} gst_riff_strf_vids;
|
||||||
|
|
||||||
|
|
||||||
typedef struct _gst_riff_strf_auds
|
typedef struct _gst_riff_strf_auds { /* == WaveHeader (?) */
|
||||||
{ /* == WaveHeader (?) */
|
|
||||||
guint16 format;
|
guint16 format;
|
||||||
/**** from public Microsoft RIFF docs ******/
|
/**** from public Microsoft RIFF docs ******/
|
||||||
#define GST_RIFF_WAVE_FORMAT_UNKNOWN (0x0000)
|
#define GST_RIFF_WAVE_FORMAT_UNKNOWN (0x0000)
|
||||||
|
@ -293,8 +290,7 @@ typedef struct _gst_riff_strf_auds
|
||||||
guint16 size;
|
guint16 size;
|
||||||
} gst_riff_strf_auds;
|
} gst_riff_strf_auds;
|
||||||
|
|
||||||
typedef struct _gst_riff_strf_iavs
|
typedef struct _gst_riff_strf_iavs {
|
||||||
{
|
|
||||||
guint32 DVAAuxSrc;
|
guint32 DVAAuxSrc;
|
||||||
guint32 DVAAuxCtl;
|
guint32 DVAAuxCtl;
|
||||||
guint32 DVAAuxSrc1;
|
guint32 DVAAuxSrc1;
|
||||||
|
@ -305,8 +301,7 @@ typedef struct _gst_riff_strf_iavs
|
||||||
guint32 DVReserved2;
|
guint32 DVReserved2;
|
||||||
} gst_riff_strf_iavs;
|
} gst_riff_strf_iavs;
|
||||||
|
|
||||||
typedef struct _gst_riff_index_entry
|
typedef struct _gst_riff_index_entry {
|
||||||
{
|
|
||||||
guint32 id;
|
guint32 id;
|
||||||
guint32 flags;
|
guint32 flags;
|
||||||
#define GST_RIFF_IF_LIST (0x00000001L)
|
#define GST_RIFF_IF_LIST (0x00000001L)
|
||||||
|
@ -317,8 +312,7 @@ typedef struct _gst_riff_index_entry
|
||||||
guint32 size;
|
guint32 size;
|
||||||
} gst_riff_index_entry;
|
} gst_riff_index_entry;
|
||||||
|
|
||||||
typedef struct _gst_riff_dmlh
|
typedef struct _gst_riff_dmlh {
|
||||||
{
|
|
||||||
guint32 totalframes;
|
guint32 totalframes;
|
||||||
} gst_riff_dmlh;
|
} gst_riff_dmlh;
|
||||||
|
|
||||||
|
|
|
@ -27,15 +27,23 @@
|
||||||
#include "riff-ids.h"
|
#include "riff-ids.h"
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Create one caps. strh/strf can be NULL (for non-fixed caps).
|
* Create one caps. strh/strf can be NULL (for non-fixed caps).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
GstCaps *gst_riff_create_video_caps (guint32 codec_fcc,
|
GstCaps *gst_riff_create_video_caps (guint32 codec_fcc,
|
||||||
gst_riff_strh * strh, gst_riff_strf_vids * strf, char **codec_name);
|
gst_riff_strh *strh,
|
||||||
|
gst_riff_strf_vids *strf,
|
||||||
|
char **codec_name);
|
||||||
GstCaps *gst_riff_create_audio_caps (guint16 codec_id,
|
GstCaps *gst_riff_create_audio_caps (guint16 codec_id,
|
||||||
gst_riff_strh * strh, gst_riff_strf_auds * strf, char **codec_name);
|
gst_riff_strh *strh,
|
||||||
|
gst_riff_strf_auds *strf,
|
||||||
|
char **codec_name);
|
||||||
GstCaps *gst_riff_create_iavs_caps (guint32 codec_fcc,
|
GstCaps *gst_riff_create_iavs_caps (guint32 codec_fcc,
|
||||||
gst_riff_strh * strh, gst_riff_strf_iavs * strf, char **codec_name);
|
gst_riff_strh *strh,
|
||||||
|
gst_riff_strf_iavs *strf,
|
||||||
|
char **codec_name);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Create template caps (includes all known types).
|
* Create template caps (includes all known types).
|
||||||
|
@ -46,4 +54,5 @@ GstCaps *gst_riff_create_audio_template_caps (void);
|
||||||
GstCaps *gst_riff_create_iavs_template_caps (void);
|
GstCaps *gst_riff_create_iavs_template_caps (void);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_RIFF_READ_H__ */
|
#endif /* __GST_RIFF_READ_H__ */
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
#include <gst/bytestream/bytestream.h>
|
#include <gst/bytestream/bytestream.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define GST_TYPE_RIFF_READ \
|
#define GST_TYPE_RIFF_READ \
|
||||||
(gst_riff_read_get_type ())
|
(gst_riff_read_get_type ())
|
||||||
#define GST_RIFF_READ(obj) \
|
#define GST_RIFF_READ(obj) \
|
||||||
|
@ -39,13 +40,13 @@ G_BEGIN_DECLS
|
||||||
(G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_RIFF_READ))
|
(G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_RIFF_READ))
|
||||||
#define GST_RIFF_READ_GET_CLASS(obj) \
|
#define GST_RIFF_READ_GET_CLASS(obj) \
|
||||||
(G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_RIFF_READ, GstRiffReadClass))
|
(G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_RIFF_READ, GstRiffReadClass))
|
||||||
typedef struct _GstRiffLevel
|
|
||||||
{
|
typedef struct _GstRiffLevel {
|
||||||
guint64 start, length;
|
guint64 start,
|
||||||
|
length;
|
||||||
} GstRiffLevel;
|
} GstRiffLevel;
|
||||||
|
|
||||||
typedef struct _GstRiffRead
|
typedef struct _GstRiffRead {
|
||||||
{
|
|
||||||
GstElement parent;
|
GstElement parent;
|
||||||
|
|
||||||
GstPad *sinkpad;
|
GstPad *sinkpad;
|
||||||
|
@ -54,28 +55,35 @@ typedef struct _GstRiffRead
|
||||||
GList *level;
|
GList *level;
|
||||||
} GstRiffRead;
|
} GstRiffRead;
|
||||||
|
|
||||||
typedef struct _GstRiffReadClass
|
typedef struct _GstRiffReadClass {
|
||||||
{
|
|
||||||
GstElementClass parent;
|
GstElementClass parent;
|
||||||
} GstRiffReadClass;
|
} GstRiffReadClass;
|
||||||
|
|
||||||
GType gst_riff_read_get_type (void);
|
GType gst_riff_read_get_type (void);
|
||||||
|
|
||||||
guint32 gst_riff_peek_tag (GstRiffRead * riff, guint * level_up);
|
guint32 gst_riff_peek_tag (GstRiffRead *riff,
|
||||||
|
guint *level_up);
|
||||||
guint32 gst_riff_peek_list (GstRiffRead *riff);
|
guint32 gst_riff_peek_list (GstRiffRead *riff);
|
||||||
|
|
||||||
GstEvent *gst_riff_read_seek (GstRiffRead * riff, guint64 offset);
|
GstEvent *gst_riff_read_seek (GstRiffRead *riff,
|
||||||
|
guint64 offset);
|
||||||
gboolean gst_riff_read_skip (GstRiffRead *riff);
|
gboolean gst_riff_read_skip (GstRiffRead *riff);
|
||||||
gboolean gst_riff_read_data (GstRiffRead *riff,
|
gboolean gst_riff_read_data (GstRiffRead *riff,
|
||||||
guint32 * tag, GstBuffer ** buf);
|
guint32 *tag,
|
||||||
gboolean gst_riff_read_ascii (GstRiffRead * riff, guint32 * tag, gchar ** str);
|
GstBuffer **buf);
|
||||||
gboolean gst_riff_read_list (GstRiffRead * riff, guint32 * tag);
|
gboolean gst_riff_read_ascii (GstRiffRead *riff,
|
||||||
gboolean gst_riff_read_header (GstRiffRead * read, guint32 * doctype);
|
guint32 *tag,
|
||||||
|
gchar **str);
|
||||||
|
gboolean gst_riff_read_list (GstRiffRead *riff,
|
||||||
|
guint32 *tag);
|
||||||
|
gboolean gst_riff_read_header (GstRiffRead *read,
|
||||||
|
guint32 *doctype);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Utility functions (including byteswapping).
|
* Utility functions (including byteswapping).
|
||||||
*/
|
*/
|
||||||
gboolean gst_riff_read_strh (GstRiffRead * riff, gst_riff_strh ** header);
|
gboolean gst_riff_read_strh (GstRiffRead *riff,
|
||||||
|
gst_riff_strh **header);
|
||||||
gboolean gst_riff_read_strf_vids (GstRiffRead *riff,
|
gboolean gst_riff_read_strf_vids (GstRiffRead *riff,
|
||||||
gst_riff_strf_vids **header);
|
gst_riff_strf_vids **header);
|
||||||
gboolean gst_riff_read_strf_auds (GstRiffRead *riff,
|
gboolean gst_riff_read_strf_auds (GstRiffRead *riff,
|
||||||
|
@ -85,4 +93,5 @@ gboolean gst_riff_read_strf_iavs (GstRiffRead * riff,
|
||||||
gboolean gst_riff_read_info (GstRiffRead *riff);
|
gboolean gst_riff_read_info (GstRiffRead *riff);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_RIFF_READ_H__ */
|
#endif /* __GST_RIFF_READ_H__ */
|
||||||
|
|
|
@ -24,20 +24,28 @@
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
|
||||||
/* functions for vorbis comment manipulation */
|
/* functions for vorbis comment manipulation */
|
||||||
|
|
||||||
G_CONST_RETURN gchar * gst_tag_from_vorbis_tag (const gchar * vorbis_tag);
|
G_CONST_RETURN gchar * gst_tag_from_vorbis_tag (const gchar * vorbis_tag);
|
||||||
G_CONST_RETURN gchar * gst_tag_to_vorbis_tag (const gchar * gst_tag);
|
G_CONST_RETURN gchar * gst_tag_to_vorbis_tag (const gchar * gst_tag);
|
||||||
void gst_vorbis_tag_add (GstTagList * list,
|
void gst_vorbis_tag_add (GstTagList * list,
|
||||||
const gchar * tag, const gchar * value);
|
const gchar * tag,
|
||||||
|
const gchar * value);
|
||||||
|
|
||||||
GList *gst_tag_to_vorbis_comments (const GstTagList * list, const gchar * tag);
|
GList * gst_tag_to_vorbis_comments (const GstTagList * list,
|
||||||
|
const gchar * tag);
|
||||||
|
|
||||||
/* functions to convert GstBuffers with vorbiscomment contents to GstTagLists and back */
|
/* functions to convert GstBuffers with vorbiscomment contents to GstTagLists and back */
|
||||||
GstTagList * gst_tag_list_from_vorbiscomment_buffer (const GstBuffer * buffer,
|
GstTagList * gst_tag_list_from_vorbiscomment_buffer (const GstBuffer * buffer,
|
||||||
const guint8 * id_data, const guint id_data_length, gchar ** vendor_string);
|
const guint8 * id_data,
|
||||||
|
const guint id_data_length,
|
||||||
|
gchar ** vendor_string);
|
||||||
GstBuffer * gst_tag_list_to_vorbiscomment_buffer (const GstTagList * list,
|
GstBuffer * gst_tag_list_to_vorbiscomment_buffer (const GstTagList * list,
|
||||||
const guint8 * id_data,
|
const guint8 * id_data,
|
||||||
const guint id_data_length, const gchar * vendor_string);
|
const guint id_data_length,
|
||||||
|
const gchar * vendor_string);
|
||||||
|
|
||||||
/* functions for ID3 tag manipulation */
|
/* functions for ID3 tag manipulation */
|
||||||
|
|
||||||
|
@ -50,4 +58,5 @@ G_CONST_RETURN gchar *gst_tag_to_id3_tag (const gchar * gst_tag);
|
||||||
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_TAG_TAG_H__ */
|
#endif /* __GST_TAG_TAG_H__ */
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
#include <gst/tuner/tuner-enumtypes.h>
|
#include <gst/tuner/tuner-enumtypes.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define GST_TYPE_TUNER \
|
#define GST_TYPE_TUNER \
|
||||||
(gst_tuner_get_type ())
|
(gst_tuner_get_type ())
|
||||||
#define GST_TUNER(obj) \
|
#define GST_TUNER(obj) \
|
||||||
|
@ -40,33 +41,43 @@ G_BEGIN_DECLS
|
||||||
(G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_TUNER))
|
(G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_TUNER))
|
||||||
#define GST_TUNER_GET_CLASS(inst) \
|
#define GST_TUNER_GET_CLASS(inst) \
|
||||||
(G_TYPE_INSTANCE_GET_INTERFACE ((inst), GST_TYPE_TUNER, GstTunerClass))
|
(G_TYPE_INSTANCE_GET_INTERFACE ((inst), GST_TYPE_TUNER, GstTunerClass))
|
||||||
|
|
||||||
typedef struct _GstTuner GstTuner;
|
typedef struct _GstTuner GstTuner;
|
||||||
|
|
||||||
typedef struct _GstTunerClass
|
typedef struct _GstTunerClass {
|
||||||
{
|
|
||||||
GTypeInterface klass;
|
GTypeInterface klass;
|
||||||
|
|
||||||
/* virtual functions */
|
/* virtual functions */
|
||||||
const GList * (* list_channels) (GstTuner *tuner);
|
const GList * (* list_channels) (GstTuner *tuner);
|
||||||
void (*set_channel) (GstTuner * tuner, GstTunerChannel * channel);
|
void (* set_channel) (GstTuner *tuner,
|
||||||
GstTunerChannel *(*get_channel) (GstTuner * tuner);
|
GstTunerChannel *channel);
|
||||||
|
GstTunerChannel *
|
||||||
|
(* get_channel) (GstTuner *tuner);
|
||||||
|
|
||||||
const GList * (* list_norms) (GstTuner *tuner);
|
const GList * (* list_norms) (GstTuner *tuner);
|
||||||
void (*set_norm) (GstTuner * tuner, GstTunerNorm * norm);
|
void (* set_norm) (GstTuner *tuner,
|
||||||
|
GstTunerNorm *norm);
|
||||||
GstTunerNorm *(* get_norm) (GstTuner *tuner);
|
GstTunerNorm *(* get_norm) (GstTuner *tuner);
|
||||||
|
|
||||||
void (* set_frequency) (GstTuner *tuner,
|
void (* set_frequency) (GstTuner *tuner,
|
||||||
GstTunerChannel * channel, gulong frequency);
|
GstTunerChannel *channel,
|
||||||
gulong (*get_frequency) (GstTuner * tuner, GstTunerChannel * channel);
|
gulong frequency);
|
||||||
gint (*signal_strength) (GstTuner * tuner, GstTunerChannel * channel);
|
gulong (* get_frequency) (GstTuner *tuner,
|
||||||
|
GstTunerChannel *channel);
|
||||||
|
gint (* signal_strength) (GstTuner *tuner,
|
||||||
|
GstTunerChannel *channel);
|
||||||
|
|
||||||
/* signals */
|
/* signals */
|
||||||
void (*channel_changed) (GstTuner * tuner, GstTunerChannel * channel);
|
void (*channel_changed) (GstTuner *tuner,
|
||||||
void (*norm_changed) (GstTuner * tuner, GstTunerNorm * norm);
|
GstTunerChannel *channel);
|
||||||
|
void (*norm_changed) (GstTuner *tuner,
|
||||||
|
GstTunerNorm *norm);
|
||||||
void (*frequency_changed) (GstTuner *tuner,
|
void (*frequency_changed) (GstTuner *tuner,
|
||||||
GstTunerChannel * channel, gulong frequency);
|
GstTunerChannel *channel,
|
||||||
|
gulong frequency);
|
||||||
void (*signal_changed) (GstTuner *tuner,
|
void (*signal_changed) (GstTuner *tuner,
|
||||||
GstTunerChannel * channel, gint signal);
|
GstTunerChannel *channel,
|
||||||
|
gint signal);
|
||||||
|
|
||||||
gpointer _gst_reserved[GST_PADDING];
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
} GstTunerClass;
|
} GstTunerClass;
|
||||||
|
@ -75,30 +86,42 @@ GType gst_tuner_get_type (void);
|
||||||
|
|
||||||
/* virtual class function wrappers */
|
/* virtual class function wrappers */
|
||||||
const GList * gst_tuner_list_channels (GstTuner *tuner);
|
const GList * gst_tuner_list_channels (GstTuner *tuner);
|
||||||
void gst_tuner_set_channel (GstTuner * tuner, GstTunerChannel * channel);
|
void gst_tuner_set_channel (GstTuner *tuner,
|
||||||
GstTunerChannel *gst_tuner_get_channel (GstTuner * tuner);
|
GstTunerChannel *channel);
|
||||||
|
GstTunerChannel *
|
||||||
|
gst_tuner_get_channel (GstTuner *tuner);
|
||||||
|
|
||||||
const GList * gst_tuner_list_norms (GstTuner *tuner);
|
const GList * gst_tuner_list_norms (GstTuner *tuner);
|
||||||
void gst_tuner_set_norm (GstTuner * tuner, GstTunerNorm * channel);
|
void gst_tuner_set_norm (GstTuner *tuner,
|
||||||
|
GstTunerNorm *channel);
|
||||||
GstTunerNorm * gst_tuner_get_norm (GstTuner *tuner);
|
GstTunerNorm * gst_tuner_get_norm (GstTuner *tuner);
|
||||||
|
|
||||||
void gst_tuner_set_frequency (GstTuner *tuner,
|
void gst_tuner_set_frequency (GstTuner *tuner,
|
||||||
GstTunerChannel * channel, gulong frequency);
|
GstTunerChannel *channel,
|
||||||
gulong gst_tuner_get_frequency (GstTuner * tuner, GstTunerChannel * channel);
|
gulong frequency);
|
||||||
gint gst_tuner_signal_strength (GstTuner * tuner, GstTunerChannel * channel);
|
gulong gst_tuner_get_frequency (GstTuner *tuner,
|
||||||
|
GstTunerChannel *channel);
|
||||||
|
gint gst_tuner_signal_strength (GstTuner *tuner,
|
||||||
|
GstTunerChannel *channel);
|
||||||
|
|
||||||
/* helper functions */
|
/* helper functions */
|
||||||
GstTunerNorm *gst_tuner_find_norm_by_name (GstTuner * tuner, gchar * norm);
|
GstTunerNorm * gst_tuner_find_norm_by_name (GstTuner *tuner,
|
||||||
|
gchar *norm);
|
||||||
GstTunerChannel *gst_tuner_find_channel_by_name (GstTuner *tuner,
|
GstTunerChannel *gst_tuner_find_channel_by_name (GstTuner *tuner,
|
||||||
gchar *channel);
|
gchar *channel);
|
||||||
|
|
||||||
/* trigger signals */
|
/* trigger signals */
|
||||||
void gst_tuner_channel_changed (GstTuner * tuner, GstTunerChannel * channel);
|
void gst_tuner_channel_changed (GstTuner *tuner,
|
||||||
void gst_tuner_norm_changed (GstTuner * tuner, GstTunerNorm * norm);
|
GstTunerChannel *channel);
|
||||||
|
void gst_tuner_norm_changed (GstTuner *tuner,
|
||||||
|
GstTunerNorm *norm);
|
||||||
void gst_tuner_frequency_changed (GstTuner *tuner,
|
void gst_tuner_frequency_changed (GstTuner *tuner,
|
||||||
GstTunerChannel * channel, gulong frequency);
|
GstTunerChannel *channel,
|
||||||
|
gulong frequency);
|
||||||
void gst_tuner_signal_changed (GstTuner *tuner,
|
void gst_tuner_signal_changed (GstTuner *tuner,
|
||||||
GstTunerChannel * channel, gint signal);
|
GstTunerChannel *channel,
|
||||||
|
gint signal);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_TUNER_H__ */
|
#endif /* __GST_TUNER_H__ */
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define GST_TYPE_TUNER_CHANNEL \
|
#define GST_TYPE_TUNER_CHANNEL \
|
||||||
(gst_tuner_channel_get_type ())
|
(gst_tuner_channel_get_type ())
|
||||||
#define GST_TUNER_CHANNEL(obj) \
|
#define GST_TUNER_CHANNEL(obj) \
|
||||||
|
@ -37,8 +38,8 @@ G_BEGIN_DECLS
|
||||||
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_TUNER_CHANNEL))
|
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_TUNER_CHANNEL))
|
||||||
#define GST_IS_TUNER_CHANNEL_CLASS(klass) \
|
#define GST_IS_TUNER_CHANNEL_CLASS(klass) \
|
||||||
(G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_TUNER_CHANNEL))
|
(G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_TUNER_CHANNEL))
|
||||||
typedef enum
|
|
||||||
{
|
typedef enum {
|
||||||
GST_TUNER_CHANNEL_INPUT = (1<<0),
|
GST_TUNER_CHANNEL_INPUT = (1<<0),
|
||||||
GST_TUNER_CHANNEL_OUTPUT = (1<<1),
|
GST_TUNER_CHANNEL_OUTPUT = (1<<1),
|
||||||
GST_TUNER_CHANNEL_FREQUENCY = (1<<2),
|
GST_TUNER_CHANNEL_FREQUENCY = (1<<2),
|
||||||
|
@ -48,23 +49,25 @@ G_BEGIN_DECLS
|
||||||
#define GST_TUNER_CHANNEL_HAS_FLAG(channel, flag) \
|
#define GST_TUNER_CHANNEL_HAS_FLAG(channel, flag) \
|
||||||
((channel)->flags & flag)
|
((channel)->flags & flag)
|
||||||
|
|
||||||
typedef struct _GstTunerChannel
|
typedef struct _GstTunerChannel {
|
||||||
{
|
|
||||||
GObject parent;
|
GObject parent;
|
||||||
|
|
||||||
gchar *label;
|
gchar *label;
|
||||||
GstTunerChannelFlags flags;
|
GstTunerChannelFlags flags;
|
||||||
gulong min_frequency, max_frequency;
|
gulong min_frequency,
|
||||||
gint min_signal, max_signal;
|
max_frequency;
|
||||||
|
gint min_signal,
|
||||||
|
max_signal;
|
||||||
} GstTunerChannel;
|
} GstTunerChannel;
|
||||||
|
|
||||||
typedef struct _GstTunerChannelClass
|
typedef struct _GstTunerChannelClass {
|
||||||
{
|
|
||||||
GObjectClass parent;
|
GObjectClass parent;
|
||||||
|
|
||||||
/* signals */
|
/* signals */
|
||||||
void (*frequency_changed) (GstTunerChannel * channel, gulong frequency);
|
void (*frequency_changed) (GstTunerChannel *channel,
|
||||||
void (*signal_changed) (GstTunerChannel * channel, gint signal);
|
gulong frequency);
|
||||||
|
void (*signal_changed) (GstTunerChannel *channel,
|
||||||
|
gint signal);
|
||||||
|
|
||||||
gpointer _gst_reserved[GST_PADDING];
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
} GstTunerChannelClass;
|
} GstTunerChannelClass;
|
||||||
|
@ -72,4 +75,5 @@ typedef struct _GstTunerChannelClass
|
||||||
GType gst_tuner_channel_get_type (void);
|
GType gst_tuner_channel_get_type (void);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_TUNER_CHANNEL_H__ */
|
#endif /* __GST_TUNER_CHANNEL_H__ */
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define GST_TYPE_TUNER_NORM \
|
#define GST_TYPE_TUNER_NORM \
|
||||||
(gst_tuner_norm_get_type ())
|
(gst_tuner_norm_get_type ())
|
||||||
#define GST_TUNER_NORM(obj) \
|
#define GST_TUNER_NORM(obj) \
|
||||||
|
@ -35,16 +36,15 @@ G_BEGIN_DECLS
|
||||||
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_TUNER_NORM))
|
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_TUNER_NORM))
|
||||||
#define GST_IS_TUNER_NORM_CLASS(klass) \
|
#define GST_IS_TUNER_NORM_CLASS(klass) \
|
||||||
(G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_TUNER_NORM))
|
(G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_TUNER_NORM))
|
||||||
typedef struct _GstTunerNorm
|
|
||||||
{
|
typedef struct _GstTunerNorm {
|
||||||
GObject parent;
|
GObject parent;
|
||||||
|
|
||||||
gchar *label;
|
gchar *label;
|
||||||
gfloat fps;
|
gfloat fps;
|
||||||
} GstTunerNorm;
|
} GstTunerNorm;
|
||||||
|
|
||||||
typedef struct _GstTunerNormClass
|
typedef struct _GstTunerNormClass {
|
||||||
{
|
|
||||||
GObjectClass parent;
|
GObjectClass parent;
|
||||||
|
|
||||||
gpointer _gst_reserved[GST_PADDING];
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
|
@ -53,4 +53,5 @@ typedef struct _GstTunerNormClass
|
||||||
GType gst_tuner_norm_get_type (void);
|
GType gst_tuner_norm_get_type (void);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_TUNER_NORM_H__ */
|
#endif /* __GST_TUNER_NORM_H__ */
|
||||||
|
|
|
@ -156,6 +156,8 @@
|
||||||
|
|
||||||
/* functions */
|
/* functions */
|
||||||
gdouble gst_video_frame_rate (GstPad *pad);
|
gdouble gst_video_frame_rate (GstPad *pad);
|
||||||
gboolean gst_video_get_size (GstPad * pad, gint * width, gint * height);
|
gboolean gst_video_get_size (GstPad *pad,
|
||||||
|
gint *width,
|
||||||
|
gint *height);
|
||||||
|
|
||||||
#endif /* __GST_VIDEO_H__ */
|
#endif /* __GST_VIDEO_H__ */
|
||||||
|
|
|
@ -24,8 +24,7 @@
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"
|
extern "C" {
|
||||||
{
|
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#define GST_TYPE_VIDEOSINK (gst_videosink_get_type())
|
#define GST_TYPE_VIDEOSINK (gst_videosink_get_type())
|
||||||
|
@ -48,8 +47,7 @@ extern "C"
|
||||||
typedef struct _GstVideoSink GstVideoSink;
|
typedef struct _GstVideoSink GstVideoSink;
|
||||||
typedef struct _GstVideoSinkClass GstVideoSinkClass;
|
typedef struct _GstVideoSinkClass GstVideoSinkClass;
|
||||||
|
|
||||||
struct _GstVideoSink
|
struct _GstVideoSink {
|
||||||
{
|
|
||||||
GstElement element;
|
GstElement element;
|
||||||
|
|
||||||
GstPad *sinkpad;
|
GstPad *sinkpad;
|
||||||
|
@ -61,8 +59,7 @@ extern "C"
|
||||||
gpointer _gst_reserved[GST_PADDING];
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstVideoSinkClass
|
struct _GstVideoSinkClass {
|
||||||
{
|
|
||||||
GstElementClass parent_class;
|
GstElementClass parent_class;
|
||||||
|
|
||||||
gpointer _gst_reserved[GST_PADDING];
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define GST_TYPE_X_OVERLAY \
|
#define GST_TYPE_X_OVERLAY \
|
||||||
(gst_x_overlay_get_type ())
|
(gst_x_overlay_get_type ())
|
||||||
#define GST_X_OVERLAY(obj) \
|
#define GST_X_OVERLAY(obj) \
|
||||||
|
@ -39,22 +40,27 @@ G_BEGIN_DECLS
|
||||||
(G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_X_OVERLAY))
|
(G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_X_OVERLAY))
|
||||||
#define GST_X_OVERLAY_GET_CLASS(inst) \
|
#define GST_X_OVERLAY_GET_CLASS(inst) \
|
||||||
(G_TYPE_INSTANCE_GET_INTERFACE ((inst), GST_TYPE_X_OVERLAY, GstXOverlayClass))
|
(G_TYPE_INSTANCE_GET_INTERFACE ((inst), GST_TYPE_X_OVERLAY, GstXOverlayClass))
|
||||||
|
|
||||||
typedef struct _GstXOverlay GstXOverlay;
|
typedef struct _GstXOverlay GstXOverlay;
|
||||||
|
|
||||||
typedef struct _GstXOverlayClass
|
typedef struct _GstXOverlayClass {
|
||||||
{
|
|
||||||
GTypeInterface klass;
|
GTypeInterface klass;
|
||||||
|
|
||||||
/* virtual functions */
|
/* virtual functions */
|
||||||
void (*set_xwindow_id) (GstXOverlay * overlay, gulong xwindow_id);
|
void (* set_xwindow_id) (GstXOverlay *overlay,
|
||||||
|
gulong xwindow_id);
|
||||||
/* optional virtual functions */
|
/* optional virtual functions */
|
||||||
void (* get_desired_size) (GstXOverlay *overlay,
|
void (* get_desired_size) (GstXOverlay *overlay,
|
||||||
guint * width, guint * height);
|
guint *width,
|
||||||
|
guint *height);
|
||||||
void (* expose) (GstXOverlay *overlay);
|
void (* expose) (GstXOverlay *overlay);
|
||||||
|
|
||||||
/* signals */
|
/* signals */
|
||||||
void (*have_xwindow_id) (GstXOverlay * overlay, gulong xwindow_id);
|
void (*have_xwindow_id) (GstXOverlay *overlay,
|
||||||
void (*desired_size) (GstXOverlay * overlay, guint width, guint height);
|
gulong xwindow_id);
|
||||||
|
void (* desired_size) (GstXOverlay *overlay,
|
||||||
|
guint width,
|
||||||
|
guint height);
|
||||||
|
|
||||||
gpointer _gst_reserved[GST_PADDING];
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
} GstXOverlayClass;
|
} GstXOverlayClass;
|
||||||
|
@ -63,14 +69,13 @@ GType gst_x_overlay_get_type (void);
|
||||||
|
|
||||||
/* virtual class function wrappers */
|
/* virtual class function wrappers */
|
||||||
void gst_x_overlay_set_xwindow_id (GstXOverlay *overlay, gulong xwindow_id);
|
void gst_x_overlay_set_xwindow_id (GstXOverlay *overlay, gulong xwindow_id);
|
||||||
void gst_x_overlay_get_desired_size (GstXOverlay * overlay, guint * width,
|
void gst_x_overlay_get_desired_size (GstXOverlay *overlay, guint *width, guint *height);
|
||||||
guint * height);
|
|
||||||
void gst_x_overlay_expose (GstXOverlay *overlay);
|
void gst_x_overlay_expose (GstXOverlay *overlay);
|
||||||
|
|
||||||
/* public methods to fire signals */
|
/* public methods to fire signals */
|
||||||
void gst_x_overlay_got_xwindow_id (GstXOverlay *overlay, gulong xwindow_id);
|
void gst_x_overlay_got_xwindow_id (GstXOverlay *overlay, gulong xwindow_id);
|
||||||
void gst_x_overlay_got_desired_size (GstXOverlay * overlay, guint width,
|
void gst_x_overlay_got_desired_size (GstXOverlay *overlay, guint width, guint height);
|
||||||
guint height);
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_X_OVERLAY_H__ */
|
#endif /* __GST_X_OVERLAY_H__ */
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define GST_TYPE_X_WINDOW_LISTENER \
|
#define GST_TYPE_X_WINDOW_LISTENER \
|
||||||
(gst_x_window_listener_get_type())
|
(gst_x_window_listener_get_type())
|
||||||
#define GST_X_WINDOW_LISTENER(obj) \
|
#define GST_X_WINDOW_LISTENER(obj) \
|
||||||
|
@ -38,21 +39,27 @@ G_BEGIN_DECLS
|
||||||
(G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_TYPE_X_WINDOW_LISTENER))
|
(G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_TYPE_X_WINDOW_LISTENER))
|
||||||
#define GST_IS_X_WINDOW_LISTENER_CLASS(obj) \
|
#define GST_IS_X_WINDOW_LISTENER_CLASS(obj) \
|
||||||
(G_TYPE_CHECK_CLASS_TYPE((klass), GST_TYPE_X_WINDOW_LISTENER))
|
(G_TYPE_CHECK_CLASS_TYPE((klass), GST_TYPE_X_WINDOW_LISTENER))
|
||||||
|
|
||||||
typedef struct _GstXWindowListener GstXWindowListener;
|
typedef struct _GstXWindowListener GstXWindowListener;
|
||||||
typedef struct _GstXWindowListenerClass GstXWindowListenerClass;
|
typedef struct _GstXWindowListenerClass GstXWindowListenerClass;
|
||||||
typedef struct _GstXWindowClip GstXWindowClip;
|
typedef struct _GstXWindowClip GstXWindowClip;
|
||||||
typedef void (*MapWindowFunc) (gpointer your_data, gboolean visible);
|
typedef void (* MapWindowFunc) (gpointer your_data,
|
||||||
|
gboolean visible);
|
||||||
typedef void (* SetWindowFunc) (gpointer your_data,
|
typedef void (* SetWindowFunc) (gpointer your_data,
|
||||||
gint x, gint y, gint w, gint h, GstXWindowClip * clips, gint num_clips);
|
gint x, gint y,
|
||||||
|
gint w, gint h,
|
||||||
|
GstXWindowClip *clips,
|
||||||
|
gint num_clips);
|
||||||
|
|
||||||
struct _GstXWindowClip
|
struct _GstXWindowClip {
|
||||||
{
|
gint32 x_offset,
|
||||||
gint32 x_offset, y_offset, width, height;
|
y_offset,
|
||||||
|
width,
|
||||||
|
height;
|
||||||
gpointer data;
|
gpointer data;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstXWindowListener
|
struct _GstXWindowListener {
|
||||||
{
|
|
||||||
GObject parent;
|
GObject parent;
|
||||||
|
|
||||||
/* "per-instance virtual functions" */
|
/* "per-instance virtual functions" */
|
||||||
|
@ -77,24 +84,33 @@ struct _GstXWindowListener
|
||||||
/* the overlay window + own thread */
|
/* the overlay window + own thread */
|
||||||
Display *display;
|
Display *display;
|
||||||
Drawable child;
|
Drawable child;
|
||||||
gboolean ov_conf, ov_map, ov_visible, ov_refresh, ov_move, ov_wmmap;
|
gboolean ov_conf,
|
||||||
|
ov_map,
|
||||||
|
ov_visible,
|
||||||
|
ov_refresh,
|
||||||
|
ov_move,
|
||||||
|
ov_wmmap;
|
||||||
gint ov_visibility;
|
gint ov_visibility;
|
||||||
guint ov_conf_id, ov_refresh_id;
|
guint ov_conf_id,
|
||||||
|
ov_refresh_id;
|
||||||
gint x, y, w, h;
|
gint x, y, w, h;
|
||||||
GstXWindowClip *clips;
|
GstXWindowClip *clips;
|
||||||
gint num_clips;
|
gint num_clips;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstXWindowListenerClass
|
struct _GstXWindowListenerClass {
|
||||||
{
|
|
||||||
GObjectClass parent;
|
GObjectClass parent;
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_x_window_listener_get_type (void);
|
GType gst_x_window_listener_get_type (void);
|
||||||
GstXWindowListener *gst_x_window_listener_new (gchar * display,
|
GstXWindowListener *
|
||||||
|
gst_x_window_listener_new (gchar *display,
|
||||||
MapWindowFunc map_window_func,
|
MapWindowFunc map_window_func,
|
||||||
SetWindowFunc set_window_func, gpointer private_data);
|
SetWindowFunc set_window_func,
|
||||||
void gst_x_window_listener_set_xid (GstXWindowListener * xwin, XID id);
|
gpointer private_data);
|
||||||
|
void gst_x_window_listener_set_xid (GstXWindowListener *xwin,
|
||||||
|
XID id);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __X_WINDOW_LISTENER_H__ */
|
#endif /* __X_WINDOW_LISTENER_H__ */
|
||||||
|
|
|
@ -26,8 +26,7 @@
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"
|
extern "C" {
|
||||||
{
|
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
|
|
||||||
|
@ -45,8 +44,7 @@ extern "C"
|
||||||
typedef struct _GstAc3Parse GstAc3Parse;
|
typedef struct _GstAc3Parse GstAc3Parse;
|
||||||
typedef struct _GstAc3ParseClass GstAc3ParseClass;
|
typedef struct _GstAc3ParseClass GstAc3ParseClass;
|
||||||
|
|
||||||
struct _GstAc3Parse
|
struct _GstAc3Parse {
|
||||||
{
|
|
||||||
GstElement element;
|
GstElement element;
|
||||||
|
|
||||||
GstPad *sinkpad,*srcpad;
|
GstPad *sinkpad,*srcpad;
|
||||||
|
@ -61,8 +59,7 @@ extern "C"
|
||||||
gint channels;
|
gint channels;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstAc3ParseClass
|
struct _GstAc3ParseClass {
|
||||||
{
|
|
||||||
GstElementClass parent_class;
|
GstElementClass parent_class;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -20,8 +20,7 @@
|
||||||
#ifndef ASFHEADERS_H
|
#ifndef ASFHEADERS_H
|
||||||
#define ASFHEADERS_H
|
#define ASFHEADERS_H
|
||||||
|
|
||||||
typedef struct
|
typedef struct {
|
||||||
{
|
|
||||||
guint32 v1;
|
guint32 v1;
|
||||||
guint32 v2;
|
guint32 v2;
|
||||||
guint32 v3;
|
guint32 v3;
|
||||||
|
@ -30,14 +29,12 @@ typedef struct
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
typedef struct
|
typedef struct {
|
||||||
{
|
|
||||||
guint8 obj_id;
|
guint8 obj_id;
|
||||||
ASFGuid guid;
|
ASFGuid guid;
|
||||||
} ASFGuidHash;
|
} ASFGuidHash;
|
||||||
|
|
||||||
enum
|
enum {
|
||||||
{
|
|
||||||
ASF_OBJ_UNDEFINED = 0,
|
ASF_OBJ_UNDEFINED = 0,
|
||||||
ASF_OBJ_STREAM,
|
ASF_OBJ_STREAM,
|
||||||
ASF_OBJ_DATA,
|
ASF_OBJ_DATA,
|
||||||
|
@ -56,15 +53,13 @@ enum
|
||||||
ASF_OBJ_BITRATE_MUTEX,
|
ASF_OBJ_BITRATE_MUTEX,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum
|
enum {
|
||||||
{
|
|
||||||
ASF_STREAM_UNDEFINED = 0,
|
ASF_STREAM_UNDEFINED = 0,
|
||||||
ASF_STREAM_VIDEO,
|
ASF_STREAM_VIDEO,
|
||||||
ASF_STREAM_AUDIO,
|
ASF_STREAM_AUDIO,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum
|
enum {
|
||||||
{
|
|
||||||
ASF_CORRECTION_UNDEFINED = 0,
|
ASF_CORRECTION_UNDEFINED = 0,
|
||||||
ASF_CORRECTION_ON,
|
ASF_CORRECTION_ON,
|
||||||
ASF_CORRECTION_OFF,
|
ASF_CORRECTION_OFF,
|
||||||
|
@ -83,8 +78,7 @@ static ASFGuidHash asf_stream_guids[] = {
|
||||||
{ ASF_STREAM_UNDEFINED, { 0, 0, 0, 0 }},
|
{ ASF_STREAM_UNDEFINED, { 0, 0, 0, 0 }},
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _asf_obj_header
|
struct _asf_obj_header {
|
||||||
{
|
|
||||||
guint32 num_objects;
|
guint32 num_objects;
|
||||||
guint8 unknown1;
|
guint8 unknown1;
|
||||||
guint8 unknown2;
|
guint8 unknown2;
|
||||||
|
@ -92,8 +86,7 @@ struct _asf_obj_header
|
||||||
|
|
||||||
typedef struct _asf_obj_header asf_obj_header;
|
typedef struct _asf_obj_header asf_obj_header;
|
||||||
|
|
||||||
struct _asf_obj_comment
|
struct _asf_obj_comment {
|
||||||
{
|
|
||||||
guint16 title_length;
|
guint16 title_length;
|
||||||
guint16 author_length;
|
guint16 author_length;
|
||||||
guint16 copyright_length;
|
guint16 copyright_length;
|
||||||
|
@ -103,8 +96,7 @@ struct _asf_obj_comment
|
||||||
|
|
||||||
typedef struct _asf_obj_comment asf_obj_comment;
|
typedef struct _asf_obj_comment asf_obj_comment;
|
||||||
|
|
||||||
struct _asf_obj_file
|
struct _asf_obj_file {
|
||||||
{
|
|
||||||
ASFGuid file_id;
|
ASFGuid file_id;
|
||||||
guint64 file_size;
|
guint64 file_size;
|
||||||
guint64 creation_time;
|
guint64 creation_time;
|
||||||
|
@ -120,8 +112,7 @@ struct _asf_obj_file
|
||||||
|
|
||||||
typedef struct _asf_obj_file asf_obj_file;
|
typedef struct _asf_obj_file asf_obj_file;
|
||||||
|
|
||||||
struct _asf_obj_stream
|
struct _asf_obj_stream {
|
||||||
{
|
|
||||||
ASFGuid type;
|
ASFGuid type;
|
||||||
ASFGuid correction;
|
ASFGuid correction;
|
||||||
guint64 unknown1;
|
guint64 unknown1;
|
||||||
|
@ -133,8 +124,7 @@ struct _asf_obj_stream
|
||||||
|
|
||||||
typedef struct _asf_obj_stream asf_obj_stream;
|
typedef struct _asf_obj_stream asf_obj_stream;
|
||||||
|
|
||||||
struct _asf_stream_audio
|
struct _asf_stream_audio {
|
||||||
{
|
|
||||||
guint16 codec_tag;
|
guint16 codec_tag;
|
||||||
guint16 channels;
|
guint16 channels;
|
||||||
guint32 sample_rate;
|
guint32 sample_rate;
|
||||||
|
@ -146,8 +136,7 @@ struct _asf_stream_audio
|
||||||
|
|
||||||
typedef struct _asf_stream_audio asf_stream_audio;
|
typedef struct _asf_stream_audio asf_stream_audio;
|
||||||
|
|
||||||
struct _asf_stream_correction
|
struct _asf_stream_correction {
|
||||||
{
|
|
||||||
guint8 span;
|
guint8 span;
|
||||||
guint16 packet_size;
|
guint16 packet_size;
|
||||||
guint16 chunk_size;
|
guint16 chunk_size;
|
||||||
|
@ -157,8 +146,7 @@ struct _asf_stream_correction
|
||||||
|
|
||||||
typedef struct _asf_stream_correction asf_stream_correction;
|
typedef struct _asf_stream_correction asf_stream_correction;
|
||||||
|
|
||||||
struct _asf_stream_video
|
struct _asf_stream_video {
|
||||||
{
|
|
||||||
guint32 width;
|
guint32 width;
|
||||||
guint32 height;
|
guint32 height;
|
||||||
guint8 unknown;
|
guint8 unknown;
|
||||||
|
@ -167,8 +155,7 @@ struct _asf_stream_video
|
||||||
|
|
||||||
typedef struct _asf_stream_video asf_stream_video;
|
typedef struct _asf_stream_video asf_stream_video;
|
||||||
|
|
||||||
struct _asf_stream_video_format
|
struct _asf_stream_video_format {
|
||||||
{
|
|
||||||
guint32 size;
|
guint32 size;
|
||||||
guint32 width;
|
guint32 width;
|
||||||
guint32 height;
|
guint32 height;
|
||||||
|
@ -184,8 +171,7 @@ struct _asf_stream_video_format
|
||||||
|
|
||||||
typedef struct _asf_stream_video_format asf_stream_video_format;
|
typedef struct _asf_stream_video_format asf_stream_video_format;
|
||||||
|
|
||||||
struct _asf_obj_data
|
struct _asf_obj_data {
|
||||||
{
|
|
||||||
ASFGuid file_id;
|
ASFGuid file_id;
|
||||||
guint64 packets;
|
guint64 packets;
|
||||||
guint8 unknown1;
|
guint8 unknown1;
|
||||||
|
@ -195,24 +181,21 @@ struct _asf_obj_data
|
||||||
|
|
||||||
typedef struct _asf_obj_data asf_obj_data;
|
typedef struct _asf_obj_data asf_obj_data;
|
||||||
|
|
||||||
struct _asf_obj_data_correction
|
struct _asf_obj_data_correction {
|
||||||
{
|
|
||||||
guint8 type;
|
guint8 type;
|
||||||
guint8 cycle;
|
guint8 cycle;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct _asf_obj_data_correction asf_obj_data_correction;
|
typedef struct _asf_obj_data_correction asf_obj_data_correction;
|
||||||
|
|
||||||
struct _asf_obj_data_packet
|
struct _asf_obj_data_packet {
|
||||||
{
|
|
||||||
guint8 flags;
|
guint8 flags;
|
||||||
guint8 property;
|
guint8 property;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct _asf_obj_data_packet asf_obj_data_packet;
|
typedef struct _asf_obj_data_packet asf_obj_data_packet;
|
||||||
|
|
||||||
struct _asf_packet_info
|
struct _asf_packet_info {
|
||||||
{
|
|
||||||
guint32 padsize;
|
guint32 padsize;
|
||||||
guint8 replicsizetype;
|
guint8 replicsizetype;
|
||||||
guint8 fragoffsettype;
|
guint8 fragoffsettype;
|
||||||
|
@ -224,8 +207,7 @@ struct _asf_packet_info
|
||||||
|
|
||||||
typedef struct _asf_packet_info asf_packet_info;
|
typedef struct _asf_packet_info asf_packet_info;
|
||||||
|
|
||||||
struct _asf_segment_info
|
struct _asf_segment_info {
|
||||||
{
|
|
||||||
guint8 stream_number;
|
guint8 stream_number;
|
||||||
guint32 chunk_size;
|
guint32 chunk_size;
|
||||||
guint32 frag_offset;
|
guint32 frag_offset;
|
||||||
|
@ -237,16 +219,14 @@ struct _asf_segment_info
|
||||||
|
|
||||||
typedef struct _asf_segment_info asf_segment_info;
|
typedef struct _asf_segment_info asf_segment_info;
|
||||||
|
|
||||||
struct _asf_replicated_data
|
struct _asf_replicated_data {
|
||||||
{
|
|
||||||
guint32 object_size;
|
guint32 object_size;
|
||||||
guint32 frag_timestamp;
|
guint32 frag_timestamp;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct _asf_replicated_data asf_replicated_data;
|
typedef struct _asf_replicated_data asf_replicated_data;
|
||||||
|
|
||||||
struct _asf_bitrate_record
|
struct _asf_bitrate_record {
|
||||||
{
|
|
||||||
guint16 stream_id;
|
guint16 stream_id;
|
||||||
guint32 bitrate;
|
guint32 bitrate;
|
||||||
};
|
};
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
#include "asfheaders.h"
|
#include "asfheaders.h"
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define GST_TYPE_ASF_DEMUX \
|
#define GST_TYPE_ASF_DEMUX \
|
||||||
(asf_demux_get_type())
|
(asf_demux_get_type())
|
||||||
#define GST_ASF_DEMUX(obj) \
|
#define GST_ASF_DEMUX(obj) \
|
||||||
|
@ -36,11 +37,11 @@ G_BEGIN_DECLS
|
||||||
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ASF_DEMUX))
|
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ASF_DEMUX))
|
||||||
#define GST_IS_ASF_DEMUX_CLASS(obj) \
|
#define GST_IS_ASF_DEMUX_CLASS(obj) \
|
||||||
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_ASF_DEMUX))
|
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_ASF_DEMUX))
|
||||||
|
|
||||||
typedef struct _GstASFDemux GstASFDemux;
|
typedef struct _GstASFDemux GstASFDemux;
|
||||||
typedef struct _GstASFDemuxClass GstASFDemuxClass;
|
typedef struct _GstASFDemuxClass GstASFDemuxClass;
|
||||||
|
|
||||||
struct _GstASFStreamContext
|
struct _GstASFStreamContext {
|
||||||
{
|
|
||||||
GstPad *pad;
|
GstPad *pad;
|
||||||
guint64 pts;
|
guint64 pts;
|
||||||
};
|
};
|
||||||
|
@ -56,8 +57,7 @@ typedef struct
|
||||||
GstBuffer *payload;
|
GstBuffer *payload;
|
||||||
} asf_stream_context;
|
} asf_stream_context;
|
||||||
|
|
||||||
struct _GstASFDemux
|
struct _GstASFDemux {
|
||||||
{
|
|
||||||
GstElement element;
|
GstElement element;
|
||||||
|
|
||||||
/* pads */
|
/* pads */
|
||||||
|
@ -103,8 +103,7 @@ struct _GstASFDemux
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstASFDemuxClass
|
struct _GstASFDemuxClass {
|
||||||
{
|
|
||||||
GstElementClass parent_class;
|
GstElementClass parent_class;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -115,4 +114,5 @@ gboolean gst_asf_demux_plugin_init (GModule * module, GstPlugin * plugin);
|
||||||
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __ASF_DEMUX_H__ */
|
#endif /* __ASF_DEMUX_H__ */
|
||||||
|
|
|
@ -24,8 +24,7 @@
|
||||||
#include "asfheaders.h"
|
#include "asfheaders.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"
|
extern "C" {
|
||||||
{
|
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#define GST_TYPE_ASFMUX \
|
#define GST_TYPE_ASFMUX \
|
||||||
|
@ -41,8 +40,7 @@ extern "C"
|
||||||
|
|
||||||
#define MAX_ASF_OUTPUTS 16
|
#define MAX_ASF_OUTPUTS 16
|
||||||
|
|
||||||
typedef struct _GstAsfMuxStream
|
typedef struct _GstAsfMuxStream {
|
||||||
{
|
|
||||||
guint index;
|
guint index;
|
||||||
|
|
||||||
gint type; /* ASF_STREAM_VIDEO/AUDIO */
|
gint type; /* ASF_STREAM_VIDEO/AUDIO */
|
||||||
|
@ -53,19 +51,16 @@ extern "C"
|
||||||
guint seqnum;
|
guint seqnum;
|
||||||
guint bitrate;
|
guint bitrate;
|
||||||
|
|
||||||
union
|
union {
|
||||||
{
|
|
||||||
asf_stream_audio audio;
|
asf_stream_audio audio;
|
||||||
struct
|
struct {
|
||||||
{
|
|
||||||
asf_stream_video stream;
|
asf_stream_video stream;
|
||||||
asf_stream_video_format format;
|
asf_stream_video_format format;
|
||||||
} video;
|
} video;
|
||||||
} header;
|
} header;
|
||||||
} GstAsfMuxStream;
|
} GstAsfMuxStream;
|
||||||
|
|
||||||
typedef struct _GstAsfMux
|
typedef struct _GstAsfMux {
|
||||||
{
|
|
||||||
GstElement element;
|
GstElement element;
|
||||||
|
|
||||||
/* pads */
|
/* pads */
|
||||||
|
@ -81,8 +76,7 @@ extern "C"
|
||||||
guint64 data_offset;
|
guint64 data_offset;
|
||||||
} GstAsfMux;
|
} GstAsfMux;
|
||||||
|
|
||||||
typedef struct _GstAsfMuxClass
|
typedef struct _GstAsfMuxClass {
|
||||||
{
|
|
||||||
GstElementClass parent_class;
|
GstElementClass parent_class;
|
||||||
} GstAsfMuxClass;
|
} GstAsfMuxClass;
|
||||||
|
|
||||||
|
|
|
@ -26,8 +26,7 @@
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"
|
extern "C" {
|
||||||
{
|
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
|
|
||||||
|
@ -45,8 +44,7 @@ extern "C"
|
||||||
typedef struct _GstMPEGAudioParse GstMPEGAudioParse;
|
typedef struct _GstMPEGAudioParse GstMPEGAudioParse;
|
||||||
typedef struct _GstMPEGAudioParseClass GstMPEGAudioParseClass;
|
typedef struct _GstMPEGAudioParseClass GstMPEGAudioParseClass;
|
||||||
|
|
||||||
struct _GstMPEGAudioParse
|
struct _GstMPEGAudioParse {
|
||||||
{
|
|
||||||
GstElement element;
|
GstElement element;
|
||||||
|
|
||||||
GstPad *sinkpad,*srcpad;
|
GstPad *sinkpad,*srcpad;
|
||||||
|
@ -58,8 +56,7 @@ extern "C"
|
||||||
gboolean in_flush;
|
gboolean in_flush;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstMPEGAudioParseClass
|
struct _GstMPEGAudioParseClass {
|
||||||
{
|
|
||||||
GstElementClass parent_class;
|
GstElementClass parent_class;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -27,8 +27,7 @@
|
||||||
#include <gst/gstsystemclock.h>
|
#include <gst/gstsystemclock.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"
|
extern "C" {
|
||||||
{
|
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
|
|
||||||
|
@ -46,20 +45,17 @@ extern "C"
|
||||||
typedef struct _GstMPEGClock GstMPEGClock;
|
typedef struct _GstMPEGClock GstMPEGClock;
|
||||||
typedef struct _GstMPEGClockClass GstMPEGClockClass;
|
typedef struct _GstMPEGClockClass GstMPEGClockClass;
|
||||||
|
|
||||||
typedef GstClockTime (*GstMPEGClockGetTimeFunc) (GstClock * clock,
|
typedef GstClockTime (*GstMPEGClockGetTimeFunc) (GstClock *clock, gpointer user_data);
|
||||||
gpointer user_data);
|
|
||||||
|
|
||||||
|
|
||||||
struct _GstMPEGClock
|
struct _GstMPEGClock {
|
||||||
{
|
|
||||||
GstSystemClock clock;
|
GstSystemClock clock;
|
||||||
|
|
||||||
GstMPEGClockGetTimeFunc func;
|
GstMPEGClockGetTimeFunc func;
|
||||||
gpointer user_data;
|
gpointer user_data;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstMPEGClockClass
|
struct _GstMPEGClockClass {
|
||||||
{
|
|
||||||
GstSystemClockClass parent_class;
|
GstSystemClockClass parent_class;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -27,8 +27,7 @@
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"
|
extern "C" {
|
||||||
{
|
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
|
|
||||||
|
@ -48,8 +47,7 @@ extern "C"
|
||||||
|
|
||||||
typedef struct _GstMPEGStream GstMPEGStream;
|
typedef struct _GstMPEGStream GstMPEGStream;
|
||||||
|
|
||||||
struct _GstMPEGStream
|
struct _GstMPEGStream {
|
||||||
{
|
|
||||||
gint8 STD_buffer_bound_scale;
|
gint8 STD_buffer_bound_scale;
|
||||||
gint16 STD_buffer_size_bound;
|
gint16 STD_buffer_size_bound;
|
||||||
GstPad *pad;
|
GstPad *pad;
|
||||||
|
@ -58,8 +56,7 @@ extern "C"
|
||||||
gint size_bound;
|
gint size_bound;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstMPEGDemux
|
struct _GstMPEGDemux {
|
||||||
{
|
|
||||||
GstMPEGParse parent;
|
GstMPEGParse parent;
|
||||||
|
|
||||||
/* previous partial chunk and bytes remaining in it */
|
/* previous partial chunk and bytes remaining in it */
|
||||||
|
@ -99,8 +96,7 @@ extern "C"
|
||||||
GstIndex *index;
|
GstIndex *index;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstMPEGDemuxClass
|
struct _GstMPEGDemuxClass {
|
||||||
{
|
|
||||||
GstMPEGParseClass parent_class;
|
GstMPEGParseClass parent_class;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -27,8 +27,7 @@
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"
|
extern "C" {
|
||||||
{
|
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#define PICTURE_START_CODE 0x00
|
#define PICTURE_START_CODE 0x00
|
||||||
|
@ -50,14 +49,12 @@ extern "C"
|
||||||
#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,
|
||||||
GST_MPEG_PACKETIZE_VIDEO,
|
GST_MPEG_PACKETIZE_VIDEO,
|
||||||
} GstMPEGPacketizeType;
|
} GstMPEGPacketizeType;
|
||||||
|
|
||||||
struct _GstMPEGPacketize
|
struct _GstMPEGPacketize {
|
||||||
{
|
|
||||||
/* current parse state */
|
/* current parse state */
|
||||||
guchar id;
|
guchar id;
|
||||||
|
|
||||||
|
@ -69,8 +66,7 @@ extern "C"
|
||||||
gboolean resync;
|
gboolean resync;
|
||||||
};
|
};
|
||||||
|
|
||||||
GstMPEGPacketize *gst_mpeg_packetize_new (GstPad * pad,
|
GstMPEGPacketize* gst_mpeg_packetize_new (GstPad *pad, GstMPEGPacketizeType type);
|
||||||
GstMPEGPacketizeType type);
|
|
||||||
void gst_mpeg_packetize_destroy (GstMPEGPacketize *packetize);
|
void gst_mpeg_packetize_destroy (GstMPEGPacketize *packetize);
|
||||||
|
|
||||||
GstData* gst_mpeg_packetize_read (GstMPEGPacketize *packetize);
|
GstData* gst_mpeg_packetize_read (GstMPEGPacketize *packetize);
|
||||||
|
|
|
@ -26,8 +26,7 @@
|
||||||
#include "gstmpegpacketize.h"
|
#include "gstmpegpacketize.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"
|
extern "C" {
|
||||||
{
|
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
|
|
||||||
|
@ -53,8 +52,7 @@ extern "C"
|
||||||
typedef struct _GstMPEGParse GstMPEGParse;
|
typedef struct _GstMPEGParse GstMPEGParse;
|
||||||
typedef struct _GstMPEGParseClass GstMPEGParseClass;
|
typedef struct _GstMPEGParseClass GstMPEGParseClass;
|
||||||
|
|
||||||
struct _GstMPEGParse
|
struct _GstMPEGParse {
|
||||||
{
|
|
||||||
GstElement element;
|
GstElement element;
|
||||||
|
|
||||||
GstPad *sinkpad, *srcpad;
|
GstPad *sinkpad, *srcpad;
|
||||||
|
@ -81,8 +79,7 @@ extern "C"
|
||||||
gint index_id;
|
gint index_id;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstMPEGParseClass
|
struct _GstMPEGParseClass {
|
||||||
{
|
|
||||||
GstElementClass parent_class;
|
GstElementClass parent_class;
|
||||||
|
|
||||||
/* process packet types */
|
/* process packet types */
|
||||||
|
@ -100,14 +97,17 @@ extern "C"
|
||||||
|
|
||||||
gboolean gst_mpeg_parse_plugin_init (GstPlugin *plugin);
|
gboolean gst_mpeg_parse_plugin_init (GstPlugin *plugin);
|
||||||
|
|
||||||
const GstFormat *gst_mpeg_parse_get_src_formats (GstPad * pad);
|
const GstFormat*
|
||||||
|
gst_mpeg_parse_get_src_formats (GstPad *pad);
|
||||||
|
|
||||||
gboolean gst_mpeg_parse_convert_src (GstPad * pad, GstFormat src_format,
|
gboolean gst_mpeg_parse_convert_src (GstPad *pad, GstFormat src_format, gint64 src_value,
|
||||||
gint64 src_value, GstFormat * dest_format, gint64 * dest_value);
|
GstFormat *dest_format, gint64 *dest_value);
|
||||||
const GstEventMask *gst_mpeg_parse_get_src_event_masks (GstPad * pad);
|
const GstEventMask*
|
||||||
|
gst_mpeg_parse_get_src_event_masks (GstPad *pad);
|
||||||
gboolean gst_mpeg_parse_handle_src_event (GstPad *pad, GstEvent *event);
|
gboolean gst_mpeg_parse_handle_src_event (GstPad *pad, GstEvent *event);
|
||||||
|
|
||||||
const GstQueryType *gst_mpeg_parse_get_src_query_types (GstPad * pad);
|
const GstQueryType*
|
||||||
|
gst_mpeg_parse_get_src_query_types (GstPad *pad);
|
||||||
gboolean gst_mpeg_parse_handle_src_query (GstPad *pad, GstQueryType type,
|
gboolean gst_mpeg_parse_handle_src_query (GstPad *pad, GstQueryType type,
|
||||||
GstFormat *format, gint64 *value);
|
GstFormat *format, gint64 *value);
|
||||||
|
|
||||||
|
|
|
@ -28,8 +28,7 @@
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"
|
extern "C" {
|
||||||
{
|
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
|
|
||||||
|
@ -46,8 +45,7 @@ extern "C"
|
||||||
|
|
||||||
#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),
|
||||||
|
@ -57,8 +55,7 @@ extern "C"
|
||||||
typedef struct _GstRFC2250Enc GstRFC2250Enc;
|
typedef struct _GstRFC2250Enc GstRFC2250Enc;
|
||||||
typedef struct _GstRFC2250EncClass GstRFC2250EncClass;
|
typedef struct _GstRFC2250EncClass GstRFC2250EncClass;
|
||||||
|
|
||||||
struct _GstRFC2250Enc
|
struct _GstRFC2250Enc {
|
||||||
{
|
|
||||||
GstElement element;
|
GstElement element;
|
||||||
|
|
||||||
GstPad *sinkpad, *srcpad;
|
GstPad *sinkpad, *srcpad;
|
||||||
|
@ -74,8 +71,7 @@ extern "C"
|
||||||
gint remaining;
|
gint remaining;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstRFC2250EncClass
|
struct _GstRFC2250EncClass {
|
||||||
{
|
|
||||||
GstElementClass parent_class;
|
GstElementClass parent_class;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -25,8 +25,7 @@
|
||||||
#include <gst/bytestream/bytestream.h>
|
#include <gst/bytestream/bytestream.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"
|
extern "C" {
|
||||||
{
|
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
|
|
||||||
|
@ -47,8 +46,7 @@ extern "C"
|
||||||
typedef struct _GstRMDemuxClass GstRMDemuxClass;
|
typedef struct _GstRMDemuxClass GstRMDemuxClass;
|
||||||
typedef struct _GstRMDemuxStream GstRMDemuxStream;
|
typedef struct _GstRMDemuxStream GstRMDemuxStream;
|
||||||
|
|
||||||
struct _GstRMDemux
|
struct _GstRMDemux {
|
||||||
{
|
|
||||||
GstElement element;
|
GstElement element;
|
||||||
|
|
||||||
/* pads */
|
/* pads */
|
||||||
|
@ -79,8 +77,7 @@ extern "C"
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstRMDemuxClass
|
struct _GstRMDemuxClass {
|
||||||
{
|
|
||||||
GstElementClass parent_class;
|
GstElementClass parent_class;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue