AG_GST_SET_PLUGINDIR
dnl define an ERROR_CFLAGS Makefile variable
-AG_GST_SET_ERROR_CFLAGS($GST_GIT)
+AG_GST_SET_ERROR_CFLAGS($GST_GIT, [
+ -Wmissing-declarations -Wmissing-prototypes ])
dnl define an ERROR_CXXFLAGS Makefile variable
-AG_GST_SET_ERROR_CXXFLAGS($GST_GIT)
+AG_GST_SET_ERROR_CXXFLAGS($GST_GIT, [
+ -Wmissing-declarations ])
dnl define correct level for debugging messages
AG_GST_SET_LEVEL_DEFAULT($GST_GIT)
&urihandler_info);
}
+GType gst_cdaudio_get_type (void);
GST_BOILERPLATE_FULL (GstCDAudio, gst_cdaudio, GstElement, GST_TYPE_ELEMENT,
_do_init);
static void gst_dc1394_framerate_const_to_frac (int framerateconst,
GValue * framefrac);
-static GstCaps *gst_dc1394_get_all_dc1394_caps ();
+static GstCaps *gst_dc1394_get_all_dc1394_caps (void);
static GstCaps *gst_dc1394_get_cam_caps (GstDc1394 * src);
static gboolean gst_dc1394_open_cam_with_best_caps (GstDc1394 * src);
static gint gst_dc1394_framerate_frac_to_const (gint num, gint denom);
}
}
-
-
-GstCaps *
-gst_dc1394_get_all_dc1394_caps ()
+static GstCaps *
+gst_dc1394_get_all_dc1394_caps (void)
{
/*
generate all possible caps
GstBaseVideoEncoderClass parent_class;
};
+GType gst_dirac_enc_get_type (void);
enum
{
return TRUE;
}
-char *
+static char *
get_channel_name (GstFliteTestSrc * src, int channel)
{
const char *numbers[10] = {
typedef jack_default_audio_sample_t sample_t;
#define GST_TYPE_JACK_CONNECT (gst_jack_connect_get_type())
-GType gst_jack_connect_get_type();
+GType gst_jack_connect_get_type(void);
#endif // _GST_JACK_H_
#include <gst/gst.h>
+#include "gstmetadatademux.h"
+#include "gstmetadatamux.h"
#include "metadatatags.h"
-extern gboolean gst_metadata_demux_plugin_init (GstPlugin * plugin);
-extern gboolean gst_metadata_mux_plugin_init (GstPlugin * plugin);
-
GST_DEBUG_CATEGORY_EXTERN (gst_metadata_exif_debug);
GST_DEBUG_CATEGORY_EXTERN (gst_metadata_iptc_debug);
GST_DEBUG_CATEGORY_EXTERN (gst_metadata_xmp_debug);
GstBaseMetadataClass parent_class;
};
-extern GType gst_metadata_demux_get_type (void);
+GType gst_metadata_demux_get_type (void);
+
+gboolean gst_metadata_demux_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_METADATA_DEMUX_H__ */
GstBaseMetadataClass parent_class;
};
-extern GType gst_metadata_mux_get_type (void);
+GType gst_metadata_mux_get_type (void);
+
+gboolean gst_metadata_mux_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_METADATA_MUX_H__ */
return GST_FLOW_ERROR;
}
-gint64
-gst_mythtv_src_get_position (GstMythtvSrc * src)
-{
- gint64 size_tmp = 0;
- guint max_tries = 2;
-
- if (src->live_tv == TRUE &&
- (abs (src->content_size - src->bytes_read) <
- GMYTHTV_TRANSFER_MAX_BUFFER)) {
-
- get_file_pos:
- g_usleep (10);
- size_tmp = gmyth_recorder_get_file_position (src->spawn_livetv->recorder);
- if (size_tmp > (src->content_size + GMYTHTV_TRANSFER_MAX_BUFFER))
- src->content_size = size_tmp;
- else if (size_tmp > 0 && --max_tries > 0)
- goto get_file_pos;
- GST_LOG_OBJECT (src, "file_position = %" G_GINT64_FORMAT, size_tmp);
- /*
- * sets the last content size amount before it can be updated
- */
- src->prev_content_size = src->content_size;
- }
- return src->content_size;
-}
-
static gboolean
gst_mythtv_src_do_seek (GstBaseSrc * base, GstSegment * segment)
{
}
#if 0
+static gint64
+gst_mythtv_src_get_position (GstMythtvSrc * src)
+{
+ gint64 size_tmp = 0;
+ guint max_tries = 2;
+
+ if (src->live_tv == TRUE &&
+ (abs (src->content_size - src->bytes_read) <
+ GMYTHTV_TRANSFER_MAX_BUFFER)) {
+
+ get_file_pos:
+ g_usleep (10);
+ size_tmp = gmyth_recorder_get_file_position (src->spawn_livetv->recorder);
+ if (size_tmp > (src->content_size + GMYTHTV_TRANSFER_MAX_BUFFER))
+ src->content_size = size_tmp;
+ else if (size_tmp > 0 && --max_tries > 0)
+ goto get_file_pos;
+ GST_LOG_OBJECT (src, "file_position = %" G_GINT64_FORMAT, size_tmp);
+ /*
+ * sets the last content size amount before it can be updated
+ */
+ src->prev_content_size = src->content_size;
+ }
+ return src->content_size;
+}
+
static gboolean
gst_mythtv_src_handle_event (GstPad * pad, GstEvent * event)
{
iface->get_uri = gst_mythtv_src_uri_get_uri;
iface->set_uri = gst_mythtv_src_uri_set_uri;
}
-
-void
-size_header_handler (void *src, const char *value)
-{
- GST_DEBUG_OBJECT (src, "content size = %" G_GUINT64_FORMAT " bytes",
- GST_MYTHTV_SRC (src)->content_size);
-}
GST_DEBUG_OBJECT (src, "Seek in format %d failed", segment->format);
return FALSE;
}
-
-gboolean
-rsndvdsrc_init (GstPlugin * plugin)
-{
- gboolean res;
-
- res = gst_element_register (plugin, "rsndvdsrc",
- GST_RANK_NONE, RESIN_TYPE_DVDSRC);
-
- return res;
-}
GstBaseVideoDecoder base_video_decoder_class;
};
+GType gst_schro_dec_get_type (void);
+
/* GstSchroDec signals and args */
enum
GstBaseVideoEncoderClass parent_class;
};
+GType gst_schro_enc_get_type (void);
+
enum
GstBaseVideoParseClass base_video_parse_class;
};
+GType gst_schro_parse_get_type (void);
+
+
/* GstSchroParse signals and args */
enum
{
#include "config.h"
#endif
+#include "gstschroutils.h"
+
//#define SCHRO_ENABLE_UNSTABLE_API
#include <gst/gst.h>
}
-void
+static void
mixaudio (void *unused, Uint8 * stream, int len)
{
GstSDLAudioSink *sdlaudio;
#define GST_CAT_DEFAULT basevideo_debug
-guint64
-gst_base_video_convert_bytes_to_frames (GstVideoState * state, guint64 bytes)
-{
- return gst_util_uint64_scale_int (bytes, 1, state->bytes_per_picture);
-}
-
-guint64
-gst_base_video_convert_frames_to_bytes (GstVideoState * state, guint64 frames)
-{
- return frames * state->bytes_per_picture;
-}
-
-
gboolean
gst_base_video_rawvideo_convert (GstVideoState * state,
GstFormat src_format, gint64 src_value,
} ADPCMDec;
+GType adpcmdec_get_type (void);
GST_BOILERPLATE (ADPCMDec, adpcmdec, GstElement, GST_TYPE_ELEMENT);
static gboolean
adpcmdec_setup (ADPCMDec * dec)
} ADPCMEnc;
+GType adpcmenc_get_type (void);
GST_BOILERPLATE (ADPCMEnc, adpcmenc, GstElement, GST_TYPE_ELEMENT);
static gboolean
adpcmenc_setup (ADPCMEnc * enc)
guint8 mantissa[8];
} AVExtFloat;
-AVExtFloat
+static AVExtFloat
av_dbl2ext (double d)
{
struct AVExtFloat ext = { {0} };
*buf += ASF_DATA_OBJECT_SIZE;
}
-guint
+static guint
gst_asf_mux_find_payload_parsing_info_size (GstAsfMux * asfmux)
{
/* Minimum payload parsing information size is 8 bytes */
return ret;
}
-gboolean
+static gboolean
gst_auto_convert_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "autoconvert",
GstBinClass parent_class;
};
+GType gst_auto_convert_get_type (void);
+
G_END_DECLS
#endif /* __GST_AUTO_CONVERT_H__ */
#define DEBUG_INIT(bla) \
GST_DEBUG_CATEGORY_INIT (gst_bayer2rgb_debug, "bayer2rgb", 0, "bayer2rgb element");
+GType gst_bayer2rgb_get_type (void);
GST_BOILERPLATE_FULL (GstBayer2RGB, gst_bayer2rgb, GstBaseTransform,
GST_TYPE_BASE_TRANSFORM, DEBUG_INIT);
return TRUE;
}
+#if 0
/*
* Get the current ccid of TX or RX half-connection. tx_or_rx parameter must be
* DCCP_SOCKOPT_TX_CCID or DCCP_SOCKOPT_RX_CCID.
* @return ccid or -1 on error or tx_or_rx not the correct option
*/
-uint8_t
+static uint8_t
gst_dccp_get_ccid (GstElement * element, int sock_fd, int tx_or_rx)
{
uint8_t ccid;
}
return ccid;
}
+#endif
/*
* Get the socket MTU.
GstBaseRTPDepayloadClass parent_class;
};
+GType gst_rtp_dtmf_depay_get_type (void);
+
gboolean gst_rtp_dtmf_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
return ret;
}
-gboolean
+static gboolean
gst_dvd_spu_plugin_init (GstPlugin * plugin)
{
GST_DEBUG_CATEGORY_INIT (dvdspu_debug, "gstspu",
gst_invtelecine_output_fields (GstInvtelecine * invtelecine, int num_fields);
-GType
+static GType
gst_invtelecine_get_type (void)
{
static GType invtelecine_type = 0;
#include "buffer.h"
#include "debug.h"
-void resample_scale_ref (ResampleState * r);
-void resample_scale_functable (ResampleState * r);
-
GST_DEBUG_CATEGORY (libaudioresample_debug);
void
void resample_set_method (ResampleState *r, int method);
int resample_format_size (ResampleFormat format);
+void resample_scale_ref (ResampleState * r);
+void resample_scale_functable (ResampleState * r);
+
#endif /* __RESAMPLE_H__ */
return decoder->state (decoder);
}
-guint8 *
+static guint8 *
rfb_decoder_read (RfbDecoder * decoder, guint32 len)
{
guint32 total = 0;
GST_DEBUG_CATEGORY_STATIC (gstflupsdemux_debug);
#define GST_CAT_DEFAULT (gstflupsdemux_debug)
-#define GST_TYPE_FLUPS_DEMUX_SYNC (gst_flups_demux_sync_get_type ())
-GType
-gst_flups_demux_sync_get_type (void)
-{
- static GType sync_type = 0;
- static GEnumValue sync_types[] = {
- {GST_FLUPS_DEMUX_SYNC_AUTO, "Auto-select method to synchronize streams",
- "auto"},
- {GST_FLUPS_DEMUX_SYNC_SCR, "Use SCR to synchronize streams", "scr"},
- {GST_FLUPS_DEMUX_SYNC_DTS, "Use DTS to synchronize streams", "dts"},
- {0, NULL, NULL}
- };
-
- if (sync_type == 0)
- sync_type = g_enum_register_static ("GstPSDemuxSync", sync_types);
-
- return sync_type;
-}
-
/* MPEG2Demux signals and args */
enum
{
guint8 *data;
} GstMPEGDescriptor;
-void gst_mpegtsdesc_init_debug ();
+void gst_mpegtsdesc_init_debug (void);
GstMPEGDescriptor* gst_mpeg_descriptor_parse (guint8 *data, guint size);
void gst_mpeg_descriptor_free (GstMPEGDescriptor *desc);
}
MpegTSPacketizer *
-mpegts_packetizer_new ()
+mpegts_packetizer_new (void)
{
MpegTSPacketizer *packetizer;
gst_adapter_push (packetizer->adapter, buffer);
}
-void
+static void
mpegts_try_discover_packet_size (MpegTSPacketizer * packetizer)
{
guint8 *dest;
PACKET_NEED_MORE
} MpegTSPacketizerPacketReturn;
-GType gst_mpegts_packetizer_get_type(void);
+GType mpegts_packetizer_get_type(void);
-MpegTSPacketizer *mpegts_packetizer_new ();
+MpegTSPacketizer *mpegts_packetizer_new (void);
void mpegts_packetizer_clear (MpegTSPacketizer *packetizer);
void mpegts_packetizer_push (MpegTSPacketizer *packetizer, GstBuffer *buffer);
gboolean mpegts_packetizer_has_packets (MpegTSPacketizer *packetizer);
void (*eit_info) (GstStructure *eit);
};
-GType gst_mpegts_parse_get_type(void);
+GType mpegts_parse_get_type(void);
gboolean gst_mpegtsparse_plugin_init (GstPlugin * plugin);
/* Get the index of the next unfilled block in the buffer. May need to grow
* the array first */
-gint
+static gint
get_next_free_block (MPEGPacketiser * p)
{
gint next;
GstElementClass parent_class;
};
-GType gst_mpegvideoparse_get_type(void);
+GType mpegvideoparse_get_type(void);
G_END_DECLS
GST_DEBUG_CATEGORY_STATIC (mvedemux_debug);
#define GST_CAT_DEFAULT mvedemux_debug
-extern int ipvideo_decode_frame8 (const GstMveDemuxStream * s,
- const unsigned char *data, unsigned short len);
-extern int ipvideo_decode_frame16 (const GstMveDemuxStream * s,
- const unsigned char *data, unsigned short len);
-
-extern void ipaudio_uncompress (short *buffer,
- unsigned short buf_len, const unsigned char *data, unsigned char channels);
-
enum MveDemuxState
{
MVEDEMUX_STATE_INITIAL, /* initial state, header not read */
GType gst_mve_demux_get_type (void);
+int ipvideo_decode_frame8 (const GstMveDemuxStream * s,
+ const unsigned char *data, unsigned short len);
+int ipvideo_decode_frame16 (const GstMveDemuxStream * s,
+ const unsigned char *data, unsigned short len);
+
+void ipaudio_uncompress (short *buffer,
+ unsigned short buf_len, const unsigned char *data, unsigned char channels);
+
G_END_DECLS
#endif /* __GST_MVE_DEMUX_H__ */
GST_DEBUG_CATEGORY_STATIC (mvemux_debug);
#define GST_CAT_DEFAULT mvemux_debug
-extern GstFlowReturn mve_encode_frame8 (GstMveMux * mve,
- GstBuffer * frame, const guint32 * palette, guint16 max_data);
-extern GstFlowReturn mve_encode_frame16 (GstMveMux * mve,
- GstBuffer * frame, guint16 max_data);
-extern gint mve_compress_audio (guint8 * dest,
- const guint8 * src, guint16 len, guint8 channels);
-
static const char mve_preamble[] = MVE_PREAMBLE;
enum
GType gst_mve_mux_get_type (void);
+GstFlowReturn mve_encode_frame8 (GstMveMux * mve,
+ GstBuffer * frame, const guint32 * palette, guint16 max_data);
+GstFlowReturn mve_encode_frame16 (GstMveMux * mve,
+ GstBuffer * frame, guint16 max_data);
+gint mve_compress_audio (guint8 * dest,
+ const guint8 * src, guint16 len, guint8 channels);
+
G_END_DECLS
#endif /* __GST_MVE_MUX_H__ */
* Interplay compressed audio codec by Mike Melanson (melanson@pcisys.net)
*/
-#include <gst/gst.h>
+#include "gstmvedemux.h"
static const short delta_table[256] = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
#include <math.h>
#include <stdlib.h>
-#include <gst/gst.h>
+
+#include "gstmvemux.h"
static const gint32 dec_table[256] = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
GST_DEBUG_CATEGORY_STATIC (mxfdemux_debug);
#define GST_CAT_DEFAULT mxfdemux_debug
+GType gst_mxf_demux_pad_get_type (void);
G_DEFINE_TYPE (GstMXFDemuxPad, gst_mxf_demux_pad, GST_TYPE_PAD);
static void
return ret;
}
-void
+static void
gst_mxf_demux_pull_random_index_pack (GstMXFDemux * demux)
{
GstBuffer *buffer;
"channels = (int) [ 1, 8 ]"
/* See ISO/IEC 13818-2 for MPEG ES format */
-gboolean
+static gboolean
mxf_mpeg_is_mpeg2_frame (GstBuffer * buffer)
{
GstByteReader reader = GST_BYTE_READER_INIT_FROM_BUFFER (buffer);
apu->ext->reset ();
}
-void
+static void
apu_build_luts (int num_samples)
{
int i;
}
/* Deallocate memory */
-void
+static void
nes_shutdown (nsf_t * nsf)
{
int i;
atom_elst_clear (&edts->elst);
}
-AtomEDTS *
-atom_edts_new ()
+static AtomEDTS *
+atom_edts_new (void)
{
AtomEDTS *edts = g_new0 (AtomEDTS, 1);
atom_edts_init (edts);
return edts;
}
-void
+static void
atom_edts_free (AtomEDTS * edts)
{
atom_edts_clear (edts);
atom_trak_set_constant_size_samples (trak, sample_size);
}
-AtomInfo *
+static AtomInfo *
build_pasp_extension (AtomTRAK * trak, gint par_width, gint par_height)
{
AtomData *atom_data;
}
AtomInfo *
-build_amr_extension ()
+build_amr_extension (void)
{
guint8 ext[9];
GstBuffer *buf;
}
AtomInfo *
-build_h263_extension ()
+build_h263_extension (void)
{
guint8 ext[7];
GstBuffer *buf;
AtomInfo * build_jp2x_extension (const GstBuffer * prefix);
AtomInfo * build_fiel_extension (gint fields);
-AtomInfo * build_amr_extension ();
-AtomInfo * build_h263_extension ();
+AtomInfo * build_amr_extension (void);
+AtomInfo * build_h263_extension (void);
AtomInfo * build_gama_atom (gdouble gamma);
AtomInfo * build_SMI_atom (const GstBuffer *seqh);
AtomInfo * build_ima_adpcm_extension (gint channels, gint rate,
return TRUE;
}
-guint32
+static guint32
trak_recov_data_get_trak_atom_size (TrakRecovData * trak)
{
AtomSTBL *stbl = &trak->stbl;
return 0;
}
-guint8 *
+static guint8 *
moov_recov_get_stbl_children_data (MoovRecovFile * moovrf, TrakRecovData * trak,
guint64 * p_size)
{
desc_sl_config_descriptor_clear (&es->sl_conf_desc);
}
-void
-desc_es_descriptor_free (ESDescriptor * es)
-{
- desc_es_descriptor_clear (es);
- g_free (es);
-}
-
/*
* Size handling functions below
*/
return -1;
}
-GstSDPStream *
+static GstSDPStream *
find_stream (GstSDPDemux * demux, gconstpointer data, gconstpointer func)
{
GList *lstream;
#define STEPSIZE 0.3010299957
void
-siren_init ()
+siren_init (void)
{
int i;
float region_power;
-extern void siren_init();
+extern void siren_init(void);
extern int categorize_regions(int number_of_regions, int number_of_available_bits, int *absolute_region_power_index, int *power_categories, int *category_balance);
extern int GetSirenCodecInfo(int flag, int sample_rate, int *number_of_coefs, int *sample_rate_bits, int *rate_control_bits, int *rate_control_possibilities, int *checksum_bits, int *esf_adjustment, int *scale_factor, int *number_of_regions, int *sample_rate_code, int *bits_per_frame );
static int dct4_initialized = 0;
void
-siren_dct4_init ()
+siren_dct4_init (void)
{
int i, j = 0;
double scale_320 = (float) sqrt (2.0 / 320);
#ifndef _SIREN7_DCT4_H_
#define _SIREN7_DCT4_H_
-extern void siren_dct4_init();
+extern void siren_dct4_init(void);
extern void siren_dct4(float *Source, float *Destination, int dct_length);
static int *bitstream_ptr = NULL;
int
-next_bit ()
+next_bit (void)
{
if (bitstream_ptr == NULL)
return -1;
extern int decode_vector(SirenDecoder decoder, int number_of_regions, int number_of_available_bits, float *decoder_standard_deviation, int *power_categories, float *coefs, int scale_factor);
extern void set_bitstream(int *stream);
-extern int next_bit();
+extern int next_bit(void);
#endif /* _SIREN7_HUFFMAN_H_ */
#define PI_2 1.57079632679489661923
void
-siren_rmlt_init ()
+siren_rmlt_init (void)
{
int i = 0;
float angle;
#ifndef _SIREN7_RMLT_H_
#define _SIREN7_RMLT_H_
-extern void siren_rmlt_init();
+extern void siren_rmlt_init(void);
extern int siren_rmlt_encode_samples(float *samples, float *old_samples, int dct_length, float *rmlt_coefs);
extern int siren_rmlt_decode_samples(float *coefs, float *old_coefs, int dct_length, float *samples);
ttadec->tta_buf.buffer_end = ttadec->tta_buf.buffer + TTA_BUFFER_SIZE;
}
-void
+static void
rice_init (adapt * rice, unsigned long k0, unsigned long k1)
{
rice->k0 = k0;
rice->sum1 = shift_16[k1];
}
-void
+static void
decoder_init (decoder * tta, long nch, long byte_size)
{
long shift = flt_set[byte_size - 1];
}
}
-void
+static void
get_binary (tta_buffer * tta_buf, guchar * buffer, unsigned long buffersize,
unsigned long *value, unsigned long bits)
{
tta_buf->bit_cache &= bit_mask[tta_buf->bit_count];
}
-void
+static void
get_unary (tta_buffer * tta_buf, guchar * buffer, unsigned long buffersize,
unsigned long *value)
{
typedef gfloat (*GstSSimWeightFunc) (GstSSim * ssim, gint y, gint x);
-gfloat
+static gfloat
gst_ssim_weight_func_none (GstSSim * ssim, gint y, gint x)
{
return 1;
}
-gfloat
+static gfloat
gst_ssim_weight_func_gauss (GstSSim * ssim, gint y, gint x)
{
gfloat coord = sqrt (x * x + y * y);
(ssim->sigma * sqrt (2 * G_PI));
}
-gboolean
+static gboolean
gst_ssim_regenerate_windows (GstSSim * ssim)
{
gint windowiseven;
switch (ssim->windowtype) {
case 0:
- func = (GstSSimWeightFunc) gst_ssim_weight_func_none;
+ func = gst_ssim_weight_func_none;
break;
case 1:
- func = (GstSSimWeightFunc) gst_ssim_weight_func_gauss;
+ func = gst_ssim_weight_func_gauss;
break;
default:
GST_WARNING_OBJECT (ssim, "unknown window type - %d. Defaulting to %d",
ssim->windowtype, 1);
ssim->windowtype = 1;
- func = (GstSSimWeightFunc) gst_ssim_weight_func_gauss;
+ func = gst_ssim_weight_func_gauss;
}
for (y = 0; y < ssim->windowsize; y++) {
"width=(int)[0, max], " "height=(int)[0, max]")
);
+GType gst_vmnc_dec_get_type (void);
GST_BOILERPLATE (GstVMncDec, gst_vmnc_dec, GstElement, GST_TYPE_ELEMENT);
static void vmnc_dec_get_property (GObject * object, guint prop_id,
GST_DEBUG_CATEGORY (cam_debug_cat);
void
-cam_init ()
+cam_init (void)
{
GST_DEBUG_CATEGORY_INIT (cam_debug_cat, "dvbcam", 0, "DVB CAM support");
}
GST_DEBUG_CATEGORY_EXTERN (cam_debug_cat);
-void cam_init ();
+void cam_init (void);
#endif /* CAM_H */
CamSLSession * session, guint tag, guint8 * buffer, guint length);
CamApplicationInfo *
-cam_application_info_new ()
+cam_application_info_new (void)
{
CamApplicationInfo *info;
CamALApplication *application;
CamALApplication application;
};
-CamApplicationInfo *cam_application_info_new ();
+CamApplicationInfo *cam_application_info_new (void);
void cam_application_info_destroy (CamApplicationInfo *info);
#endif /* CAM_APPLICATION_INFO_H */
CamSLSession * session, guint tag, guint8 * buffer, guint length);
CamConditionalAccess *
-cam_conditional_access_new ()
+cam_conditional_access_new (void)
{
CamConditionalAccess *cas;
CamALApplication *application;
gboolean ready;
};
-CamConditionalAccess *cam_conditional_access_new ();
+CamConditionalAccess *cam_conditional_access_new (void);
void cam_conditional_access_destroy (CamConditionalAccess *cas);
CamReturn cam_conditional_access_set_pmt (CamConditionalAccess *cas,
#define GST_CAT_DEFAULT cam_debug_cat
CamDevice *
-cam_device_new ()
+cam_device_new (void)
{
CamDevice *device = g_new0 (CamDevice, 1);
CamConditionalAccess *cas;
} CamDevice;
-CamDevice *cam_device_new ();
+CamDevice *cam_device_new (void);
void cam_device_free (CamDevice *device);
gboolean cam_device_open (CamDevice *device, const char *filename);
CamSLSession * session, guint tag, guint8 * buffer, guint length);
CamResourceManager *
-cam_resource_manager_new ()
+cam_resource_manager_new (void)
{
CamALApplication *application;
CamResourceManager *mgr;
CamALApplication application;
};
-CamResourceManager *cam_resource_manager_new ();
+CamResourceManager *cam_resource_manager_new (void);
void cam_resource_manager_destroy (CamResourceManager *manager);
#endif /* CAM_RESOURCE_MANAGER_H */
static CamReturn connection_data_cb (CamTL * tl, CamTLConnection * connection,
guint8 * spdu, guint spdu_length);
-CamSLSession *
+static CamSLSession *
cam_sl_session_new (CamSL * sl, CamTLConnection * connection,
guint16 session_nb, guint resource_id)
{
return session;
}
-void
+static void
cam_sl_session_destroy (CamSLSession * session)
{
g_free (session);
#define UNIX_PATH_MAX 108
CamSwClient *
-cam_sw_client_new ()
+cam_sw_client_new (void)
{
CamSwClient *client = g_new0 (CamSwClient, 1);
} CamSwClient;
-CamSwClient *cam_sw_client_new ();
+CamSwClient *cam_sw_client_new (void);
void cam_sw_client_free (CamSwClient *sw_client);
gboolean cam_sw_client_open (CamSwClient *sw_client, const char *sock_path);
void cam_gst_util_dump_mem (const guchar * mem, guint size);
-CamTLConnection *
+static CamTLConnection *
cam_tl_connection_new (CamTL * tl, guint8 id)
{
CamTLConnection *connection;
return CAM_RETURN_OK;
}
-CamReturn
+static CamReturn
handle_control_tpdu (CamTL * tl, CamTLConnection * connection)
{
if (tl->body_length != 0) {
return CAM_RETURN_OK;
}
-CamReturn
+static CamReturn
handle_data_tpdu (CamTL * tl, CamTLConnection * connection)
{
if (tl->body_length == 0) {
/* signals */
};
-GType gst_dvb_base_bin_get_type(void);
+GType dvb_base_bin_get_type(void);
gboolean gst_dvb_base_bin_plugin_init (GstPlugin *plugin);
G_END_DECLS
#include <string.h>
#include <gst/gst.h>
+#include "parsechannels.h"
+
/* this will do zap style channels.conf only for the moment*/
GHashTable *
parse_channels_conf_from_file (const gchar * filename)
/* Decent i18n is pretty much impossible with OSS's way of providing us with
* mixer labels (and the fact that they are pretty much random), but that
* doesn't mean we shouldn't at least try. */
-const gchar *
+static const gchar *
gst_oss4_mixer_control_get_translated_name (GstOss4MixerControl * mc)
{
gchar name[128] = { 0, };
GstPushSrcClass parent_class;
};
+GType gst_vcdsrc_get_type (void);
+
G_END_DECLS
#endif /* __VCDSRC_H__ */
} buffer_verify_data_s;
/* takes a copy of the passed buffer data */
-GstBuffer *
+static GstBuffer *
buffer_new (const unsigned char *buffer_data, guint size)
{
GstBuffer *buffer;
buffer_counter++;
}
-GstElement *
+static GstElement *
setup_aacparse (const gchar * src_caps_str)
{
GstElement *aacparse;
static Suite *
-aacparse_suite ()
+aacparse_suite (void)
{
Suite *s = suite_create ("aacparse");
TCase *tc_chain = tcase_create ("general");
/*
* Create a GstBuffer of the given data and set the caps, if not NULL.
*/
-GstBuffer *
+static GstBuffer *
buffer_new (const unsigned char *buffer_data, guint size,
const gchar * caps_str)
{
/*
* Create a parser and pads according to given templates.
*/
-GstElement *
+static GstElement *
setup_amrparse (GstStaticPadTemplate * srctemplate,
GstStaticPadTemplate * sinktemplate)
{
GST_PAD_ALWAYS,
GST_STATIC_CAPS (AUDIO_CAPS_STRING));
-GstPad *
+static GstPad *
setup_src_pad (GstElement * element,
GstStaticPadTemplate * template, GstCaps * caps, gchar * sinkname)
{
return srcpad;
}
-void
+static void
teardown_src_pad (GstElement * element, gchar * sinkname)
{
GstPad *srcpad, *sinkpad;
gst_object_unref (srcpad);
}
-GstElement *
+static GstElement *
setup_asfmux (GstStaticPadTemplate * srctemplate, gchar * sinkname)
{
GstElement *asfmux;
return asfmux;
}
-void
+static void
cleanup_asfmux (GstElement * asfmux, gchar * sinkname)
{
GST_DEBUG ("cleanup_asfmux");
gst_check_teardown_element (asfmux);
}
-void
+static void
check_asfmux_pad (GstStaticPadTemplate * srctemplate, gchar * src_caps_string,
gchar * sinkname)
{
GST_END_TEST;
-Suite *
+static Suite *
asfmux_suite (void)
{
Suite *s = suite_create ("asfmux");
CREATE_BASIC_TEST (xRGB);
CREATE_BASIC_TEST (I420);
-Suite *
+static Suite *
assrender_suite (void)
{
Suite *s = suite_create ("assrender");
typedef GstBin TestElement2;
typedef GstBinClass TestElement2Class;
+GType test_element1_get_type (void);
G_DEFINE_TYPE (TestElement1, test_element1, GST_TYPE_BIN);
+GType test_element2_get_type (void);
G_DEFINE_TYPE (TestElement2, test_element2, GST_TYPE_BIN);
static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",
GST_END_TEST;
-Suite *
+static Suite *
autoconvert_suite (void)
{
Suite *s = suite_create ("autoconvert");
GST_END_TEST;
-Suite *
+static Suite *
camerabin_suite (void)
{
Suite *s = suite_create ("camerabin");
GST_STATIC_CAPS (AAC_CAPS_STRING));
-GstElement *
-setup_faad ()
+static GstElement *
+setup_faad (void)
{
GstElement *faad;
return faad;
}
-void
+static void
cleanup_faad (GstElement * faad)
{
GST_DEBUG ("cleanup_faad");
gst_check_teardown_element (faad);
}
-void
+static void
do_test (GstBuffer * inbuffer)
{
GstElement *faad;
GST_END_TEST;
-Suite *
+static Suite *
faad_suite (void)
{
Suite *s = suite_create ("faad");
GST_END_TEST;
-Suite *
+static Suite *
imagefreeze_suite (void)
{
Suite *s = suite_create ("imagefreeze");
GST_END_TEST;
-Suite *
+static Suite *
jpegparse_suite (void)
{
Suite *s = suite_create ("jpegparse");
static GCond *mpeg2enc_cond;
static gboolean arrived_eos;
-gboolean
+static gboolean
test_sink_event (GstPad * pad, GstEvent * event)
{
return gst_pad_event_default (pad, event);
}
-GstElement *
-setup_mpeg2enc ()
+static GstElement *
+setup_mpeg2enc (void)
{
GstElement *mpeg2enc;
return mpeg2enc;
}
-void
+static void
cleanup_mpeg2enc (GstElement * mpeg2enc)
{
GST_DEBUG ("cleanup_mpeg2enc");
GST_END_TEST;
-Suite *
+static Suite *
mpeg2enc_suite (void)
{
Suite *s = suite_create ("mpeg2enc");
/* end binary data. size = 384 bytes */
-gboolean
+static gboolean
test_sink_event (GstPad * pad, GstEvent * event)
{
}
/* setup and teardown needs some special handling for muxer */
-GstPad *
+static GstPad *
setup_src_pad (GstElement * element,
GstStaticPadTemplate * template, GstCaps * caps, gchar * sinkname)
{
return srcpad;
}
-void
+static void
teardown_src_pad (GstElement * element, gchar * sinkname)
{
GstPad *srcpad, *sinkpad;
}
-GstElement *
-setup_mplex ()
+static GstElement *
+setup_mplex (void)
{
GstElement *mplex;
return mplex;
}
-void
+static void
cleanup_mplex (GstElement * mplex)
{
GST_DEBUG ("cleanup_mplex");
GST_END_TEST;
-Suite *
+static Suite *
mplex_suite (void)
{
Suite *s = suite_create ("mplex");
GST_END_TEST;
-Suite *
+static Suite *
ofa_suite (void)
{
Suite *s = suite_create ("OFA");
/* setup and teardown needs some special handling for muxer */
-GstPad *
+static GstPad *
setup_src_pad (GstElement * element,
GstStaticPadTemplate * template, GstCaps * caps, gchar * sinkname)
{
return srcpad;
}
-void
+static void
teardown_src_pad (GstPad * srcpad)
{
GstPad *sinkpad;
gst_object_unref (srcpad);
}
-GstElement *
+static GstElement *
setup_qtmux (GstStaticPadTemplate * srctemplate, gchar * sinkname)
{
GstElement *qtmux;
return qtmux;
}
-void
+static void
cleanup_qtmux (GstElement * qtmux, gchar * sinkname)
{
GST_DEBUG ("cleanup_qtmux");
gst_check_teardown_element (qtmux);
}
-void
+static void
check_qtmux_pad (GstStaticPadTemplate * srctemplate, gchar * sinkname)
{
GstElement *qtmux;
GST_END_TEST;
-Suite *
+static Suite *
qtmux_suite (void)
{
Suite *s = suite_create ("qtmux");
gst_check_teardown_element (rtpmux);
}
-void
+static void
basic_check_cb (GstPad * pad, int i)
{
fail_unless (buffers && g_list_length (buffers) == 1);
GST_END_TEST;
-void
+static void
lock_check_cb (GstPad * pad, int i)
{
GstStructure *s;
GST_STATIC_CAPS_ANY);
/* Data probe cb to drop everything but count buffers and events */
-gboolean
+static gboolean
probe_cb (GstPad * pad, GstMiniObject * obj, gpointer user_data)
{
gint count = 0;
}
/* Create and link output pad: selector:src%d ! output_pad */
-GstPad *
+static GstPad *
setup_output_pad (GstElement * element)
{
GstPad *srcpad = NULL, *output_pad = NULL;
}
/* Clean up output/input pad and respective selector request pad */
-void
+static void
cleanup_pad (GstPad * pad, GstElement * element)
{
GstPad *selpad = NULL;
}
/* Duplicate and push given buffer many times to all input_pads */
-void
+static void
push_input_buffers (GList * input_pads, GstBuffer * buf, gint num_buffers)
{
GstBuffer *buf_in = NULL;
}
/* Check that received buffers count match to expected buffers */
-void
+static void
count_output_buffers (GList * output_pads, gint expected_buffers)
{
gint count = 0;
}
/* Set selector active pad */
-void
+static void
selector_set_active_pad (GstElement * elem, GstPad * selpad)
{
gchar *padname = "";
}
/* Push buffers and switch for each selector pad */
-void
+static void
push_switched_buffers (GList * input_pads,
GstElement * elem, GList * peer_pads, gint num_buffers)
{
/* Create output-selector with given number of src pads and switch
given number of input buffers to each src pad.
*/
-void
+static void
run_output_selector_buffer_count (gint num_output_pads,
gint num_buffers_per_output)
{
}
/* Create and link input pad: input_pad ! selector:sink%d */
-GstPad *
+static GstPad *
setup_input_pad (GstElement * element)
{
GstPad *sinkpad = NULL, *input_pad = NULL;
/* Create input-selector with given number of sink pads and switch
given number of input buffers to each sink pad.
*/
-void
+static void
run_input_selector_buffer_count (gint num_input_pads,
gint num_buffers_per_input)
{
GST_END_TEST;
-Suite *
+static Suite *
selector_suite (void)
{
Suite *s = suite_create ("selector");
GST_END_TEST;
-Suite *
+static Suite *
timidity_suite (void)
{
Suite *s = suite_create ("timidity");
GST_END_TEST;
-Suite *
+static Suite *
states_suite (void)
{
Suite *s = suite_create ("states");
GST_END_TEST;
-Suite *
+static Suite *
metadata_suite (void)
{
Suite *s = suite_create ("MetaData");
GST_END_TEST;
-Suite *
+static Suite *
metadata_suite (void)
{
Suite *s = suite_create ("tagschecking");
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include "metadata_editor.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <gst/gst.h>
-#include <gtk/gtk.h>
/*
* Global constants
/* ui related functions */
-static void ui_refresh ();
-static void process_file();
+static void ui_refresh (void);
+static void process_file(void);
/*
* Global Vars