mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-20 06:08:14 +00:00
Add -Wmissing-declarations -Wmissing-prototypes warning flags
And fix all the warnings.
This commit is contained in:
parent
7e363149f3
commit
3342b1679e
156 changed files with 412 additions and 249 deletions
|
@ -272,10 +272,10 @@ dnl set location of plugin directory
|
|||
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 -Wmissing-prototypes])
|
||||
|
||||
dnl define correct level for debugging messages
|
||||
AG_GST_SET_LEVEL_DEFAULT($GST_GIT)
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
|
||||
#include <math.h>
|
||||
#include <gst/tag/tag.h>
|
||||
#include "gstannodex.h"
|
||||
#include "gstcmmlparser.h"
|
||||
#include "gstcmmlenc.h"
|
||||
#include "gstcmmldec.h"
|
||||
|
|
|
@ -91,6 +91,8 @@ struct _GstCmmlDecClass
|
|||
GstElementClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_cmml_dec_get_type (void);
|
||||
|
||||
gboolean gst_cmml_dec_plugin_init (GstPlugin * plugin);
|
||||
|
||||
#endif /* __GST_CMML_DEC_H__ */
|
||||
|
|
|
@ -72,6 +72,8 @@ struct _GstCmmlEncClass
|
|||
GstElementClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_cmml_enc_get_type (void);
|
||||
|
||||
gboolean gst_cmml_enc_plugin_init (GstPlugin * plugin);
|
||||
|
||||
#endif /* __GST_CMML_ENC_H__ */
|
||||
|
|
|
@ -121,7 +121,7 @@ gst_cmml_parser_parse_chunk (GstCmmlParser * parser,
|
|||
|
||||
/* convert an xmlNodePtr to a string
|
||||
*/
|
||||
guchar *
|
||||
static guchar *
|
||||
gst_cmml_parser_node_to_string (GstCmmlParser * parser, xmlNodePtr node)
|
||||
{
|
||||
xmlBufferPtr xml_buffer;
|
||||
|
|
|
@ -386,27 +386,3 @@ gst_cmml_track_list_get_track_last_clip (GHashTable * tracks,
|
|||
|
||||
return res ? GST_CMML_TAG_CLIP (res->data) : NULL;
|
||||
}
|
||||
|
||||
void
|
||||
gst_cmml_track_list_set_data (GHashTable * tracks,
|
||||
const gchar * track_name, gpointer data)
|
||||
{
|
||||
GstCmmlTrack *track;
|
||||
|
||||
g_return_if_fail (track_name != NULL);
|
||||
|
||||
track = g_hash_table_lookup (tracks, track_name);
|
||||
if (track)
|
||||
track->user_data = data;
|
||||
}
|
||||
|
||||
gpointer
|
||||
gst_cmml_track_get_data (GHashTable * tracks, const gchar * track_name)
|
||||
{
|
||||
GstCmmlTrack *track;
|
||||
|
||||
g_return_val_if_fail (track_name != NULL, NULL);
|
||||
|
||||
track = g_hash_table_lookup (tracks, track_name);
|
||||
return track ? track->user_data : NULL;
|
||||
}
|
||||
|
|
|
@ -132,7 +132,7 @@ static GstStaticPadTemplate src_temp = GST_STATIC_PAD_TEMPLATE ("src",
|
|||
);
|
||||
|
||||
#define GST_TYPE_DVDEC_QUALITY (gst_dvdec_quality_get_type())
|
||||
GType
|
||||
static GType
|
||||
gst_dvdec_quality_get_type (void)
|
||||
{
|
||||
static GType qtype = 0;
|
||||
|
|
|
@ -232,7 +232,7 @@ static const GstFlacEncParams flacenc_params[] = {
|
|||
#define DEFAULT_SEEKPOINTS 0
|
||||
|
||||
#define GST_TYPE_FLAC_ENC_QUALITY (gst_flac_enc_quality_get_type ())
|
||||
GType
|
||||
static GType
|
||||
gst_flac_enc_quality_get_type (void)
|
||||
{
|
||||
static GType qtype = 0;
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
|
||||
#include "gstgdkpixbuf.h"
|
||||
#include "gstgdkpixbufsink.h"
|
||||
#include "pixbufscale.h"
|
||||
|
||||
GST_DEBUG_CATEGORY_STATIC (gst_gdk_pixbuf_debug);
|
||||
#define GST_CAT_DEFAULT gst_gdk_pixbuf_debug
|
||||
|
@ -75,8 +76,6 @@ static GstStaticPadTemplate gst_gdk_pixbuf_src_template =
|
|||
GST_STATIC_CAPS (GST_VIDEO_CAPS_RGB "; " GST_VIDEO_CAPS_RGBA)
|
||||
);
|
||||
|
||||
gboolean pixbufscale_init (GstPlugin * plugin);
|
||||
|
||||
static void gst_gdk_pixbuf_base_init (gpointer g_class);
|
||||
static void gst_gdk_pixbuf_class_init (GstGdkPixbufClass * klass);
|
||||
static void gst_gdk_pixbuf_init (GstGdkPixbuf * filter,
|
||||
|
|
|
@ -75,7 +75,9 @@ struct _GstPixbufScaleClass {
|
|||
GstBaseTransformClass parent_class;
|
||||
};
|
||||
|
||||
static GType gst_pixbufscale_get_type(void);
|
||||
GType gst_pixbufscale_get_type(void);
|
||||
|
||||
gboolean pixbufscale_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
|
@ -14,6 +14,7 @@ libgstjpeg_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
|||
libgstjpeg_la_LIBTOOLFLAGS = --tag=disable-static
|
||||
|
||||
noinst_HEADERS = \
|
||||
gstjpeg.h \
|
||||
gstjpegdec.h gstjpegenc.h \
|
||||
gstsmokeenc.h gstsmokedec.h \
|
||||
smokecodec.h smokeformat.h
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
#include <gst/gst.h>
|
||||
|
||||
#include "gstjpeg.h"
|
||||
#include "gstjpegdec.h"
|
||||
#include "gstjpegenc.h"
|
||||
#include "gstsmokeenc.h"
|
||||
|
|
34
ext/jpeg/gstjpeg.h
Normal file
34
ext/jpeg/gstjpeg.h
Normal file
|
@ -0,0 +1,34 @@
|
|||
/* GStreamer
|
||||
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef __GST_JPEG_H__
|
||||
#define __GST_JPEG_H__
|
||||
|
||||
#include <glib-object.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
|
||||
GType gst_idct_method_get_type (void);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_JPEG_H__ */
|
|
@ -38,6 +38,7 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "gstjpegdec.h"
|
||||
#include "gstjpeg.h"
|
||||
#include <gst/video/video.h>
|
||||
#include "gst/gst-i18n-plugin.h"
|
||||
#include <jerror.h>
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "gstjpegenc.h"
|
||||
#include "gstjpeg.h"
|
||||
#include <gst/video/video.h>
|
||||
|
||||
/* experimental */
|
||||
|
|
|
@ -107,7 +107,7 @@ gst_wavpack_stream_reader_write_bytes (void *id, void *data, int32_t bcount)
|
|||
}
|
||||
|
||||
WavpackStreamReader *
|
||||
gst_wavpack_stream_reader_new ()
|
||||
gst_wavpack_stream_reader_new (void)
|
||||
{
|
||||
WavpackStreamReader *stream_reader =
|
||||
(WavpackStreamReader *) g_malloc0 (sizeof (WavpackStreamReader));
|
||||
|
|
|
@ -31,6 +31,6 @@ typedef struct
|
|||
uint32_t position;
|
||||
} read_id;
|
||||
|
||||
WavpackStreamReader *gst_wavpack_stream_reader_new ();
|
||||
WavpackStreamReader *gst_wavpack_stream_reader_new (void);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -105,6 +105,7 @@ GstStaticPadTemplate bmd_sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
|
|||
GST_DEBUG_CATEGORY_INIT (gst_break_my_data_debug, "breakmydata", 0, \
|
||||
"debugging category for breakmydata element");
|
||||
|
||||
GType gst_break_my_data_get_type (void);
|
||||
GST_BOILERPLATE_FULL (GstBreakMyData, gst_break_my_data, GstBaseTransform,
|
||||
GST_TYPE_BASE_TRANSFORM, DEBUG_INIT);
|
||||
|
||||
|
|
|
@ -65,6 +65,7 @@ static void gst_navseek_set_property (GObject * object, guint prop_id,
|
|||
static void gst_navseek_get_property (GObject * object, guint prop_id,
|
||||
GValue * value, GParamSpec * pspec);
|
||||
|
||||
GType gst_navseek_get_type (void);
|
||||
GST_BOILERPLATE (GstNavSeek, gst_navseek, GstBaseTransform,
|
||||
GST_TYPE_BASE_TRANSFORM);
|
||||
|
||||
|
|
|
@ -96,6 +96,7 @@ static GstStateChangeReturn gst_rnd_buffer_size_change_state (GstElement *
|
|||
GST_DEBUG_CATEGORY_INIT (gst_rnd_buffer_size_debug, "rndbuffersize", 0, \
|
||||
"rndbuffersize element");
|
||||
|
||||
GType gst_rnd_buffer_size_get_type (void);
|
||||
GST_BOILERPLATE_FULL (GstRndBufferSize, gst_rnd_buffer_size, GstElement,
|
||||
GST_TYPE_ELEMENT, DEBUG_INIT);
|
||||
|
||||
|
|
|
@ -90,6 +90,7 @@ static const GstElementDetails details = GST_ELEMENT_DETAILS ("Test plugin",
|
|||
GST_DEBUG_CATEGORY_INIT (gst_test_debug, "testsink", 0, \
|
||||
"debugging category for testsink element");
|
||||
|
||||
GType gst_test_get_type (void);
|
||||
GST_BOILERPLATE_FULL (GstTest, gst_test, GstBaseSink, GST_TYPE_BASE_SINK,
|
||||
DEBUG_INIT);
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
#include "x86-64_macros.inc"
|
||||
|
||||
void
|
||||
static void
|
||||
FUNCT_NAME (GstDeinterlaceMethodGreedyH *self, uint8_t * L1, uint8_t * L2, uint8_t * L3, uint8_t * L2P,
|
||||
uint8_t * Dest, int size)
|
||||
{
|
||||
|
|
|
@ -63,7 +63,7 @@ typedef struct
|
|||
uint8_t * L1, uint8_t * L3, uint8_t * L2P, uint8_t * Dest, int size);
|
||||
} GstDeinterlaceMethodGreedyHClass;
|
||||
|
||||
void
|
||||
static void
|
||||
greedyDScaler_C (GstDeinterlaceMethodGreedyH * self, uint8_t * L1, uint8_t * L2,
|
||||
uint8_t * L3, uint8_t * L2P, uint8_t * Dest, int size)
|
||||
{
|
||||
|
|
|
@ -98,7 +98,7 @@ typedef union {
|
|||
|
||||
/* Function to test if multimedia instructions are supported...
|
||||
*/
|
||||
inline extern int
|
||||
static inline int
|
||||
mm_support(void)
|
||||
{
|
||||
/* Returns 1 if MMX instructions are supported,
|
||||
|
@ -251,7 +251,7 @@ mm_support(void)
|
|||
|
||||
/* Function to test if mmx instructions are supported...
|
||||
*/
|
||||
inline extern int
|
||||
static inline int
|
||||
mmx_ok(void)
|
||||
{
|
||||
/* Returns 1 if MMX instructions are supported, 0 otherwise */
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
#define SEFUNC(x) Search_Effort_C_##x(src_pitch, dst_pitch, rowsize, pWeaveSrc, pWeaveSrcP, pWeaveDest, IsOdd, pCopySrc, pCopySrcP, FldHeight)
|
||||
#endif
|
||||
|
||||
void FUNCT_NAME(GstDeinterlaceMethod *d_method, GstDeinterlace* object, GstBuffer *outbuf)
|
||||
static void FUNCT_NAME(GstDeinterlaceMethod *d_method, GstDeinterlace* object, GstBuffer *outbuf)
|
||||
{
|
||||
GstDeinterlaceMethodTomsMoComp *self = GST_DEINTERLACE_METHOD_TOMSMOCOMP (d_method);
|
||||
long SearchEffort = self->search_effort;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#include "goom_visual_fx.h"
|
||||
#include "goom_plugin_info.h"
|
||||
|
||||
VisualFX convolve_create ();
|
||||
VisualFX convolve_create (void);
|
||||
VisualFX flying_star_create (void);
|
||||
|
||||
void zoom_filter_c(int sizeX, int sizeY, Pixel *src, Pixel *dest, int *brutS, int *brutD, int buffratio, int precalCoef[16][16]);
|
||||
|
|
|
@ -64,7 +64,7 @@ static int firstTime = 1;
|
|||
static int sintable[0xffff];
|
||||
|
||||
ZoomFilterData *
|
||||
zoomFilterNew ()
|
||||
zoomFilterNew (void)
|
||||
{
|
||||
ZoomFilterData *zf = malloc (sizeof (ZoomFilterData));
|
||||
|
||||
|
@ -106,7 +106,7 @@ ShiftRight (int x, const unsigned char s)
|
|||
px et py indique la nouvelle position (en sqrtperte ieme de pixel)
|
||||
(valeur * 16)
|
||||
*/
|
||||
void
|
||||
static void
|
||||
calculatePXandPY (GoomData * gd, int x, int y, int *px, int *py)
|
||||
{
|
||||
ZoomFilterData *zf = gd->zfd;
|
||||
|
|
|
@ -55,7 +55,7 @@ Uint middleX,
|
|||
Uint middleY);
|
||||
*/
|
||||
|
||||
ZoomFilterData *zoomFilterNew ();
|
||||
ZoomFilterData *zoomFilterNew (void);
|
||||
void zoomFilterDestroy (ZoomFilterData *zf);
|
||||
void zoomFilterFastRGB (GoomData *goomdata, ZoomFilterData *zf,
|
||||
int zfd_update);
|
||||
|
|
|
@ -25,6 +25,8 @@
|
|||
|
||||
#include <glib.h>
|
||||
|
||||
#include "mulaw-conversion.h"
|
||||
|
||||
#undef ZEROTRAP /* turn on the trap as per the MIL-STD */
|
||||
#define BIAS 0x84 /* define the add-in bias for 16 bit samples */
|
||||
#define CLIP 32635
|
||||
|
|
|
@ -175,6 +175,7 @@ static GstCaps
|
|||
/* stream methods */
|
||||
static void gst_matroska_demux_reset (GstElement * element);
|
||||
|
||||
GType gst_matroska_demux_get_type (void);
|
||||
GST_BOILERPLATE (GstMatroskaDemux, gst_matroska_demux, GstEbmlRead,
|
||||
GST_TYPE_EBML_READ);
|
||||
|
||||
|
|
|
@ -199,6 +199,7 @@ G_LOCK_DEFINE_STATIC (used_uids);
|
|||
|
||||
static void gst_matroska_mux_add_interfaces (GType type);
|
||||
|
||||
GType gst_matroska_mux_get_type (void);
|
||||
GST_BOILERPLATE_FULL (GstMatroskaMux, gst_matroska_mux, GstElement,
|
||||
GST_TYPE_ELEMENT, gst_matroska_mux_add_interfaces);
|
||||
|
||||
|
@ -2343,7 +2344,7 @@ gst_matroska_mux_best_pad (GstMatroskaMux * mux, gboolean * popped)
|
|||
*
|
||||
* Returns: New buffer.
|
||||
*/
|
||||
GstBuffer *
|
||||
static GstBuffer *
|
||||
gst_matroska_mux_create_buffer_header (GstMatroskaTrackContext * track,
|
||||
gint16 relative_timestamp, int flags)
|
||||
{
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
|
||||
#include <gst/gst.h>
|
||||
|
||||
extern gboolean gst_multipart_demux_plugin_init (GstPlugin * plugin);
|
||||
extern gboolean gst_multipart_mux_plugin_init (GstPlugin * plugin);
|
||||
#include "multipartdemux.h"
|
||||
#include "multipartmux.h"
|
||||
|
||||
static gboolean
|
||||
plugin_init (GstPlugin * plugin)
|
||||
|
|
|
@ -200,7 +200,7 @@ gst_multipart_demux_init (GstMultipartDemux * multipart,
|
|||
multipart->autoscan = DEFAULT_AUTOSCAN;
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
gst_multipart_pad_free (GstMultipartPad * mppad)
|
||||
{
|
||||
g_free (mppad->mime);
|
||||
|
|
|
@ -93,6 +93,10 @@ struct _GstMultipartDemuxClass
|
|||
GHashTable *gstnames;
|
||||
};
|
||||
|
||||
GType gst_multipart_demux_get_type (void);
|
||||
|
||||
gboolean gst_multipart_demux_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_MULTIPART_DEMUX__ */
|
||||
|
|
|
@ -231,11 +231,11 @@ gst_multipart_mux_request_new_pad (GstElement * element,
|
|||
/* construct our own wrapper data structure for the pad to
|
||||
* keep track of its status */
|
||||
{
|
||||
GstMultipartPad *multipartpad;
|
||||
GstMultipartPadData *multipartpad;
|
||||
|
||||
multipartpad = (GstMultipartPad *)
|
||||
multipartpad = (GstMultipartPadData *)
|
||||
gst_collect_pads_add_pad (multipart_mux->collect, newpad,
|
||||
sizeof (GstMultipartPad));
|
||||
sizeof (GstMultipartPadData));
|
||||
|
||||
/* save a pointer to our data in the pad */
|
||||
gst_pad_set_element_private (newpad, multipartpad);
|
||||
|
@ -338,7 +338,7 @@ gst_multipart_mux_get_mime (GstMultipartMux * mux, GstStructure * s)
|
|||
*/
|
||||
static gint
|
||||
gst_multipart_mux_compare_pads (GstMultipartMux * multipart_mux,
|
||||
GstMultipartPad * old, GstMultipartPad * new)
|
||||
GstMultipartPadData * old, GstMultipartPadData * new)
|
||||
{
|
||||
guint64 oldtime, newtime;
|
||||
|
||||
|
@ -372,11 +372,11 @@ gst_multipart_mux_compare_pads (GstMultipartMux * multipart_mux,
|
|||
|
||||
/* make sure a buffer is queued on all pads, returns a pointer to an multipartpad
|
||||
* that holds the best buffer or NULL when no pad was usable */
|
||||
static GstMultipartPad *
|
||||
static GstMultipartPadData *
|
||||
gst_multipart_mux_queue_pads (GstMultipartMux * mux)
|
||||
{
|
||||
GSList *walk = NULL;
|
||||
GstMultipartPad *bestpad = NULL;
|
||||
GstMultipartPadData *bestpad = NULL;
|
||||
|
||||
g_return_val_if_fail (GST_IS_MULTIPART_MUX (mux), NULL);
|
||||
|
||||
|
@ -384,7 +384,7 @@ gst_multipart_mux_queue_pads (GstMultipartMux * mux)
|
|||
walk = mux->collect->data;
|
||||
while (walk) {
|
||||
GstCollectData *data = (GstCollectData *) walk->data;
|
||||
GstMultipartPad *pad = (GstMultipartPad *) data;
|
||||
GstMultipartPadData *pad = (GstMultipartPadData *) data;
|
||||
|
||||
walk = g_slist_next (walk);
|
||||
|
||||
|
@ -428,7 +428,7 @@ gst_multipart_mux_queue_pads (GstMultipartMux * mux)
|
|||
static GstFlowReturn
|
||||
gst_multipart_mux_collected (GstCollectPads * pads, GstMultipartMux * mux)
|
||||
{
|
||||
GstMultipartPad *best;
|
||||
GstMultipartPadData *best;
|
||||
GstFlowReturn ret = GST_FLOW_OK;
|
||||
gchar *header = NULL;
|
||||
size_t headerlen;
|
||||
|
|
|
@ -48,7 +48,7 @@ typedef struct
|
|||
GstClockTime timestamp; /* its timestamp, converted to running_time so that we can
|
||||
correctly sort over multiple segments. */
|
||||
}
|
||||
GstMultipartPad;
|
||||
GstMultipartPadData;
|
||||
|
||||
/**
|
||||
* GstMultipartMux:
|
||||
|
@ -84,6 +84,10 @@ struct _GstMultipartMuxClass
|
|||
GHashTable *mimetypes;
|
||||
};
|
||||
|
||||
GType gst_multipart_mux_get_type (void);
|
||||
|
||||
gboolean gst_multipart_mux_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_MULTIPART_MUX__ */
|
||||
|
|
|
@ -695,10 +695,3 @@ gst_rtp_xqt_depay_change_state (GstElement * element, GstStateChange transition)
|
|||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
gboolean
|
||||
gst_rtp_xqt_depay_plugin_init (GstPlugin * plugin)
|
||||
{
|
||||
return gst_element_register (plugin, "rtpxqtdepay",
|
||||
GST_RANK_MARGINAL, GST_TYPE_RTP_XQT_DEPAY);
|
||||
}
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
|
||||
#include <glib.h>
|
||||
|
||||
#include "fnv1hash.h"
|
||||
|
||||
/* This file implements FNV-1 hashing used in the Ogg payload encoders
|
||||
* to generate the 24-bit ident value based on the header pages.
|
||||
* See http://isthe.com/chongo/tech/comp/fnv/
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
guint32 fnv1_hash_32_new ();
|
||||
guint32 fnv1_hash_32_new (void);
|
||||
guint32 fnv1_hash_32_update (guint32 hash, const guchar *data, guint length);
|
||||
guint32 fnv1_hash_32_to_24 (guint32 hash);
|
||||
|
||||
|
|
|
@ -56,6 +56,8 @@ struct _GstAsteriskh263Class
|
|||
GstElementClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_asteriskh263_get_type (void);
|
||||
|
||||
gboolean gst_asteriskh263_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -55,6 +55,8 @@ struct _GstRtpL16DepayClass
|
|||
GstBaseRTPDepayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_L16_depay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_L16_depay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -52,6 +52,8 @@ struct _GstRtpL16PayClass
|
|||
GstBaseRTPAudioPayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_L16_pay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_L16_pay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -49,6 +49,8 @@ struct _GstRtpAC3DepayClass
|
|||
GstBaseRTPDepayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_ac3_depay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_ac3_depay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -68,6 +68,8 @@ struct _GstRtpAMRDepayClass
|
|||
GstBaseRTPDepayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_amr_depay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_amr_depay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -58,6 +58,8 @@ struct _GstRtpAMRPayClass
|
|||
GstBaseRTPPayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_amr_pay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_amr_pay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -51,6 +51,8 @@ struct _GstRTPBVDepayClass
|
|||
GstBaseRTPDepayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_bv_depay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_bv_depay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#include "gstrtpbvpay.h"
|
||||
|
||||
/* elementfactory information */
|
||||
static GstElementDetails gst_rtpbvpay_details = {
|
||||
static GstElementDetails gst_rtp_bv_pay_details = {
|
||||
"RTP BV Payloader",
|
||||
"Codec/Payloader/Network",
|
||||
"Packetize BroadcomVoice audio streams into RTP packets (RFC 4298)",
|
||||
|
@ -38,14 +38,14 @@ static GstElementDetails gst_rtpbvpay_details = {
|
|||
GST_DEBUG_CATEGORY_STATIC (rtpbvpay_debug);
|
||||
#define GST_CAT_DEFAULT (rtpbvpay_debug)
|
||||
|
||||
static GstStaticPadTemplate gst_rtpbvpay_sink_template =
|
||||
static GstStaticPadTemplate gst_rtp_bv_pay_sink_template =
|
||||
GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
GST_PAD_SINK,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS ("audio/x-bv, " "mode = (int) {16, 32}")
|
||||
);
|
||||
|
||||
static GstStaticPadTemplate gst_rtpbvpay_src_template =
|
||||
static GstStaticPadTemplate gst_rtp_bv_pay_src_template =
|
||||
GST_STATIC_PAD_TEMPLATE ("src",
|
||||
GST_PAD_SRC,
|
||||
GST_PAD_ALWAYS,
|
||||
|
@ -61,42 +61,42 @@ static GstStaticPadTemplate gst_rtpbvpay_src_template =
|
|||
);
|
||||
|
||||
|
||||
static GstCaps *gst_rtpbvpay_sink_getcaps (GstBaseRTPPayload * payload,
|
||||
static GstCaps *gst_rtp_bv_pay_sink_getcaps (GstBaseRTPPayload * payload,
|
||||
GstPad * pad);
|
||||
static gboolean gst_rtpbvpay_sink_setcaps (GstBaseRTPPayload * payload,
|
||||
static gboolean gst_rtp_bv_pay_sink_setcaps (GstBaseRTPPayload * payload,
|
||||
GstCaps * caps);
|
||||
|
||||
GST_BOILERPLATE (GstRTPBVPay, gst_rtpbvpay, GstBaseRTPAudioPayload,
|
||||
GST_BOILERPLATE (GstRTPBVPay, gst_rtp_bv_pay, GstBaseRTPAudioPayload,
|
||||
GST_TYPE_BASE_RTP_AUDIO_PAYLOAD);
|
||||
|
||||
static void
|
||||
gst_rtpbvpay_base_init (gpointer klass)
|
||||
gst_rtp_bv_pay_base_init (gpointer klass)
|
||||
{
|
||||
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_rtpbvpay_sink_template));
|
||||
gst_static_pad_template_get (&gst_rtp_bv_pay_sink_template));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_rtpbvpay_src_template));
|
||||
gst_element_class_set_details (element_class, &gst_rtpbvpay_details);
|
||||
gst_static_pad_template_get (&gst_rtp_bv_pay_src_template));
|
||||
gst_element_class_set_details (element_class, &gst_rtp_bv_pay_details);
|
||||
}
|
||||
|
||||
static void
|
||||
gst_rtpbvpay_class_init (GstRTPBVPayClass * klass)
|
||||
gst_rtp_bv_pay_class_init (GstRTPBVPayClass * klass)
|
||||
{
|
||||
GstBaseRTPPayloadClass *gstbasertppayload_class;
|
||||
|
||||
gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
|
||||
|
||||
gstbasertppayload_class->set_caps = gst_rtpbvpay_sink_setcaps;
|
||||
gstbasertppayload_class->get_caps = gst_rtpbvpay_sink_getcaps;
|
||||
gstbasertppayload_class->set_caps = gst_rtp_bv_pay_sink_setcaps;
|
||||
gstbasertppayload_class->get_caps = gst_rtp_bv_pay_sink_getcaps;
|
||||
|
||||
GST_DEBUG_CATEGORY_INIT (rtpbvpay_debug, "rtpbvpay", 0,
|
||||
"BroadcomVoice audio RTP payloader");
|
||||
}
|
||||
|
||||
static void
|
||||
gst_rtpbvpay_init (GstRTPBVPay * rtpbvpay, GstRTPBVPayClass * klass)
|
||||
gst_rtp_bv_pay_init (GstRTPBVPay * rtpbvpay, GstRTPBVPayClass * klass)
|
||||
{
|
||||
GstBaseRTPPayload *basertppayload;
|
||||
GstBaseRTPAudioPayload *basertpaudiopayload;
|
||||
|
@ -111,7 +111,7 @@ gst_rtpbvpay_init (GstRTPBVPay * rtpbvpay, GstRTPBVPayClass * klass)
|
|||
}
|
||||
|
||||
static gboolean
|
||||
gst_rtpbvpay_sink_setcaps (GstBaseRTPPayload * basertppayload, GstCaps * caps)
|
||||
gst_rtp_bv_pay_sink_setcaps (GstBaseRTPPayload * basertppayload, GstCaps * caps)
|
||||
{
|
||||
GstRTPBVPay *rtpbvpay;
|
||||
GstBaseRTPAudioPayload *basertpaudiopayload;
|
||||
|
@ -183,7 +183,7 @@ mode_changed:
|
|||
/* we return the padtemplate caps with the mode field fixated to a value if we
|
||||
* can */
|
||||
static GstCaps *
|
||||
gst_rtpbvpay_sink_getcaps (GstBaseRTPPayload * rtppayload, GstPad * pad)
|
||||
gst_rtp_bv_pay_sink_getcaps (GstBaseRTPPayload * rtppayload, GstPad * pad)
|
||||
{
|
||||
GstCaps *otherpadcaps;
|
||||
GstCaps *caps;
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
G_BEGIN_DECLS
|
||||
|
||||
#define GST_TYPE_RTP_BV_PAY \
|
||||
(gst_rtpbvpay_get_type())
|
||||
(gst_rtp_bv_pay_get_type())
|
||||
#define GST_RTP_BV_PAY(obj) \
|
||||
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RTP_BV_PAY,GstRTPBVPay))
|
||||
#define GST_RTP_BV_PAY_CLASS(klass) \
|
||||
|
@ -51,6 +51,8 @@ struct _GstRTPBVPayClass
|
|||
GstBaseRTPAudioPayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_bv_pay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_bv_pay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -45,6 +45,8 @@ struct _GstRtpCELTDepayClass
|
|||
GstBaseRTPDepayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_celt_depay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_celt_depay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -53,6 +53,8 @@ struct _GstRtpCELTPayClass
|
|||
GstBaseRTPPayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_celt_pay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_celt_pay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -58,6 +58,7 @@ struct _GstRTPDVDepayClass
|
|||
};
|
||||
|
||||
GType gst_rtp_dv_depay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_dv_depay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -60,6 +60,8 @@ struct _GstRTPDVPayClass
|
|||
GstBaseRTPPayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_dv_pay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_dv_pay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -50,6 +50,8 @@ struct _GstRtpG723DepayClass
|
|||
GstBaseRTPDepayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_g723_depay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_g723_depay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -55,10 +55,10 @@ struct _GstRTPG723PayClass
|
|||
GstBaseRTPPayloadClass parent_class;
|
||||
};
|
||||
|
||||
gboolean gst_rtp_g723_pay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
GType gst_rtp_g723_pay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_g723_pay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_RTP_G723_PAY_H__ */
|
||||
|
|
|
@ -49,6 +49,8 @@ struct _GstRtpG726DepayClass
|
|||
GstBaseRTPDepayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_g726_depay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_g726_depay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -47,6 +47,8 @@ struct _GstRtpG726PayClass
|
|||
GstBaseRTPAudioPayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_g726_pay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_g726_pay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -52,6 +52,8 @@ struct _GstRtpG729DepayClass
|
|||
GstBaseRTPDepayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_g729_depay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_g729_depay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -50,6 +50,8 @@ struct _GstRTPG729PayClass
|
|||
GstBaseRTPAudioPayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_g729_pay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_g729_pay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -49,6 +49,8 @@ struct _GstRTPGSMDepayClass
|
|||
GstBaseRTPDepayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_gsm_depay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_gsm_depay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -50,6 +50,8 @@ struct _GstRTPGSMPayClass
|
|||
GstBaseRTPPayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_gsm_pay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_gsm_pay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -55,6 +55,8 @@ struct _GstRtpH263DepayClass
|
|||
GstBaseRTPDepayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_h263_depay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_h263_depay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -405,6 +405,8 @@ struct _GstRtpH263PayPackage
|
|||
#define GST_RTP_H263_PAY_END(start, len) (((guint8 *)start) + ((guint)len))
|
||||
#define GST_RTP_H263_PAY_GOBN(gob) (((((guint8 *) gob)[2] >> 2) & 0x1f)
|
||||
|
||||
GType gst_rtp_h263_pay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_h263_pay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -53,6 +53,8 @@ struct _GstRtpH263PDepayClass
|
|||
GstBaseRTPDepayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_h263p_depay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_h263p_depay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -61,6 +61,8 @@ struct _GstRtpH263PPayClass
|
|||
GstBaseRTPPayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_h263p_pay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_h263p_pay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -63,6 +63,8 @@ struct _GstRtpH264DepayClass
|
|||
GstBaseRTPDepayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_h264_depay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_h264_depay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -73,6 +73,8 @@ struct _GstRtpH264PayClass
|
|||
GstBaseRTPPayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_h264_pay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_h264_pay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -56,6 +56,8 @@ struct _GstRTPiLBCDepayClass
|
|||
GstBaseRTPDepayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_ilbc_depay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_ilbc_depay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#include "gstrtpilbcpay.h"
|
||||
|
||||
/* elementfactory information */
|
||||
static GstElementDetails gst_rtpilbcpay_details = {
|
||||
static GstElementDetails gst_rtp_ilbc_pay_details = {
|
||||
"RTP iLBC Payloader",
|
||||
"Codec/Payloader/Network",
|
||||
"Packetize iLBC audio streams into RTP packets",
|
||||
|
@ -36,14 +36,14 @@ static GstElementDetails gst_rtpilbcpay_details = {
|
|||
GST_DEBUG_CATEGORY_STATIC (rtpilbcpay_debug);
|
||||
#define GST_CAT_DEFAULT (rtpilbcpay_debug)
|
||||
|
||||
static GstStaticPadTemplate gst_rtpilbcpay_sink_template =
|
||||
static GstStaticPadTemplate gst_rtp_ilbc_pay_sink_template =
|
||||
GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
GST_PAD_SINK,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS ("audio/x-iLBC, " "mode = (int) {20, 30}")
|
||||
);
|
||||
|
||||
static GstStaticPadTemplate gst_rtpilbcpay_src_template =
|
||||
static GstStaticPadTemplate gst_rtp_ilbc_pay_src_template =
|
||||
GST_STATIC_PAD_TEMPLATE ("src",
|
||||
GST_PAD_SRC,
|
||||
GST_PAD_ALWAYS,
|
||||
|
@ -56,42 +56,42 @@ GST_STATIC_PAD_TEMPLATE ("src",
|
|||
);
|
||||
|
||||
|
||||
static GstCaps *gst_rtpilbcpay_sink_getcaps (GstBaseRTPPayload * payload,
|
||||
static GstCaps *gst_rtp_ilbc_pay_sink_getcaps (GstBaseRTPPayload * payload,
|
||||
GstPad * pad);
|
||||
static gboolean gst_rtpilbcpay_sink_setcaps (GstBaseRTPPayload * payload,
|
||||
static gboolean gst_rtp_ilbc_pay_sink_setcaps (GstBaseRTPPayload * payload,
|
||||
GstCaps * caps);
|
||||
|
||||
GST_BOILERPLATE (GstRTPILBCPay, gst_rtpilbcpay, GstBaseRTPAudioPayload,
|
||||
GST_BOILERPLATE (GstRTPILBCPay, gst_rtp_ilbc_pay, GstBaseRTPAudioPayload,
|
||||
GST_TYPE_BASE_RTP_AUDIO_PAYLOAD);
|
||||
|
||||
static void
|
||||
gst_rtpilbcpay_base_init (gpointer klass)
|
||||
gst_rtp_ilbc_pay_base_init (gpointer klass)
|
||||
{
|
||||
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_rtpilbcpay_sink_template));
|
||||
gst_static_pad_template_get (&gst_rtp_ilbc_pay_sink_template));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_rtpilbcpay_src_template));
|
||||
gst_element_class_set_details (element_class, &gst_rtpilbcpay_details);
|
||||
gst_static_pad_template_get (&gst_rtp_ilbc_pay_src_template));
|
||||
gst_element_class_set_details (element_class, &gst_rtp_ilbc_pay_details);
|
||||
}
|
||||
|
||||
static void
|
||||
gst_rtpilbcpay_class_init (GstRTPILBCPayClass * klass)
|
||||
gst_rtp_ilbc_pay_class_init (GstRTPILBCPayClass * klass)
|
||||
{
|
||||
GstBaseRTPPayloadClass *gstbasertppayload_class;
|
||||
|
||||
gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
|
||||
|
||||
gstbasertppayload_class->set_caps = gst_rtpilbcpay_sink_setcaps;
|
||||
gstbasertppayload_class->get_caps = gst_rtpilbcpay_sink_getcaps;
|
||||
gstbasertppayload_class->set_caps = gst_rtp_ilbc_pay_sink_setcaps;
|
||||
gstbasertppayload_class->get_caps = gst_rtp_ilbc_pay_sink_getcaps;
|
||||
|
||||
GST_DEBUG_CATEGORY_INIT (rtpilbcpay_debug, "rtpilbcpay", 0,
|
||||
"iLBC audio RTP payloader");
|
||||
}
|
||||
|
||||
static void
|
||||
gst_rtpilbcpay_init (GstRTPILBCPay * rtpilbcpay, GstRTPILBCPayClass * klass)
|
||||
gst_rtp_ilbc_pay_init (GstRTPILBCPay * rtpilbcpay, GstRTPILBCPayClass * klass)
|
||||
{
|
||||
GstBaseRTPPayload *basertppayload;
|
||||
GstBaseRTPAudioPayload *basertpaudiopayload;
|
||||
|
@ -110,7 +110,8 @@ gst_rtpilbcpay_init (GstRTPILBCPay * rtpilbcpay, GstRTPILBCPayClass * klass)
|
|||
}
|
||||
|
||||
static gboolean
|
||||
gst_rtpilbcpay_sink_setcaps (GstBaseRTPPayload * basertppayload, GstCaps * caps)
|
||||
gst_rtp_ilbc_pay_sink_setcaps (GstBaseRTPPayload * basertppayload,
|
||||
GstCaps * caps)
|
||||
{
|
||||
GstRTPILBCPay *rtpilbcpay;
|
||||
GstBaseRTPAudioPayload *basertpaudiopayload;
|
||||
|
@ -181,7 +182,7 @@ mode_changed:
|
|||
/* we return the padtemplate caps with the mode field fixated to a value if we
|
||||
* can */
|
||||
static GstCaps *
|
||||
gst_rtpilbcpay_sink_getcaps (GstBaseRTPPayload * rtppayload, GstPad * pad)
|
||||
gst_rtp_ilbc_pay_sink_getcaps (GstBaseRTPPayload * rtppayload, GstPad * pad)
|
||||
{
|
||||
GstCaps *otherpadcaps;
|
||||
GstCaps *caps;
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
G_BEGIN_DECLS
|
||||
|
||||
#define GST_TYPE_RTP_ILBC_PAY \
|
||||
(gst_rtpilbcpay_get_type())
|
||||
(gst_rtp_ilbc_pay_get_type())
|
||||
#define GST_RTP_ILBC_PAY(obj) \
|
||||
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RTP_ILBC_PAY,GstRTPILBCPay))
|
||||
#define GST_RTP_ILBC_PAY_CLASS(klass) \
|
||||
|
@ -51,6 +51,8 @@ struct _GstRTPILBCPayClass
|
|||
GstBaseRTPAudioPayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_ilbc_pay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_ilbc_pay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -55,6 +55,8 @@ struct _GstRtpJ2KDepayClass
|
|||
GstBaseRTPDepayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_j2k_depay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_j2k_depay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -52,6 +52,8 @@ struct _GstRtpJ2KPayClass
|
|||
GstBaseRTPPayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_j2k_pay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_j2k_pay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -60,6 +60,8 @@ struct _GstRtpJPEGDepayClass
|
|||
GstBaseRTPDepayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_jpeg_depay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_jpeg_depay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -57,6 +57,8 @@ struct _GstRtpJPEGPayClass
|
|||
GstBaseRTPPayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_jpeg_pay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_jpeg_pay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -49,6 +49,8 @@ struct _GstRtpMP1SDepayClass
|
|||
GstBaseRTPDepayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_mp1s_depay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_mp1s_depay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -51,6 +51,8 @@ struct _GstRtpMP2TDepayClass
|
|||
GstBaseRTPDepayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_mp2t_depay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_mp2t_depay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -55,6 +55,8 @@ struct _GstRTPMP2TPayClass
|
|||
GstBaseRTPPayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_mp2t_pay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_mp2t_pay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -51,6 +51,8 @@ struct _GstRtpMP4ADepayClass
|
|||
GstBaseRTPDepayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_mp4a_depay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_mp4a_depay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -56,6 +56,8 @@ struct _GstRtpMP4APayClass
|
|||
GstBaseRTPPayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_mp4a_pay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_mp4a_pay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -76,6 +76,8 @@ struct _GstRtpMP4GDepayClass
|
|||
GstBaseRTPDepayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_mp4g_depay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_mp4g_depay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -62,6 +62,8 @@ struct _GstRtpMP4GPayClass
|
|||
GstBaseRTPPayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_mp4g_pay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_mp4g_pay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -52,6 +52,8 @@ struct _GstRtpMP4VDepayClass
|
|||
GstBaseRTPDepayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_mp4v_depay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_mp4v_depay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -64,6 +64,8 @@ struct _GstRtpMP4VPayClass
|
|||
GstBaseRTPPayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_mp4v_pay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_mp4v_pay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -49,6 +49,8 @@ struct _GstRtpMPADepayClass
|
|||
GstBaseRTPDepayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_mpa_depay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_mpa_depay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -54,6 +54,8 @@ struct _GstRtpMPAPayClass
|
|||
GstBaseRTPPayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_mpa_pay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_mpa_pay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -49,6 +49,8 @@ struct _GstRtpMPVDepayClass
|
|||
GstBaseRTPDepayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_mpv_depay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_mpv_depay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -55,6 +55,8 @@ struct _GstRTPMPVPayClass
|
|||
GstBaseRTPPayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_mpv_pay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_mpv_pay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -44,6 +44,8 @@ struct _GstRtpPcmaDepayClass
|
|||
GstBaseRTPDepayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_pcma_depay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_pcma_depay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -45,6 +45,8 @@ struct _GstRtpPmcaPayClass
|
|||
GstBaseRTPAudioPayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_pcma_pay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_pcma_pay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -44,6 +44,8 @@ struct _GstRtpPcmuDepayClass
|
|||
GstBaseRTPDepayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_pcmu_depay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_pcmu_depay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -45,6 +45,8 @@ struct _GstRtpPcmuPayClass
|
|||
GstBaseRTPAudioPayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_pcmu_pay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_pcmu_pay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -76,6 +76,8 @@ struct _GstRtpQDM2DepayClass
|
|||
GstBaseRTPDepayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_qdm2_depay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_qdm2_depay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -51,6 +51,8 @@ struct _GstRTPSirenDepayClass
|
|||
GstBaseRTPDepayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_siren_depay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_siren_depay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#include <gst/rtp/gstrtpbuffer.h>
|
||||
|
||||
/* elementfactory information */
|
||||
static GstElementDetails gst_rtpsirenpay_details = {
|
||||
static GstElementDetails gst_rtp_siren_pay_details = {
|
||||
"RTP Payloader for Siren Audio",
|
||||
"Codec/Payloader/Network",
|
||||
"Packetize Siren audio streams into RTP packets",
|
||||
|
@ -37,14 +37,14 @@ static GstElementDetails gst_rtpsirenpay_details = {
|
|||
GST_DEBUG_CATEGORY_STATIC (rtpsirenpay_debug);
|
||||
#define GST_CAT_DEFAULT (rtpsirenpay_debug)
|
||||
|
||||
static GstStaticPadTemplate gst_rtpsirenpay_sink_template =
|
||||
static GstStaticPadTemplate gst_rtp_siren_pay_sink_template =
|
||||
GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
GST_PAD_SINK,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS ("audio/x-siren, " "dct-length = (int) 320")
|
||||
);
|
||||
|
||||
static GstStaticPadTemplate gst_rtpsirenpay_src_template =
|
||||
static GstStaticPadTemplate gst_rtp_siren_pay_src_template =
|
||||
GST_STATIC_PAD_TEMPLATE ("src",
|
||||
GST_PAD_SRC,
|
||||
GST_PAD_ALWAYS,
|
||||
|
@ -56,39 +56,40 @@ GST_STATIC_PAD_TEMPLATE ("src",
|
|||
"bitrate = (string) \"16000\", " "dct-length = (int) 320")
|
||||
);
|
||||
|
||||
static gboolean gst_rtpsirenpay_setcaps (GstBaseRTPPayload * payload,
|
||||
static gboolean gst_rtp_siren_pay_setcaps (GstBaseRTPPayload * payload,
|
||||
GstCaps * caps);
|
||||
|
||||
GST_BOILERPLATE (GstRTPSirenPay, gst_rtpsirenpay, GstBaseRTPAudioPayload,
|
||||
GST_BOILERPLATE (GstRTPSirenPay, gst_rtp_siren_pay, GstBaseRTPAudioPayload,
|
||||
GST_TYPE_BASE_RTP_AUDIO_PAYLOAD);
|
||||
|
||||
static void
|
||||
gst_rtpsirenpay_base_init (gpointer klass)
|
||||
gst_rtp_siren_pay_base_init (gpointer klass)
|
||||
{
|
||||
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_rtpsirenpay_sink_template));
|
||||
gst_static_pad_template_get (&gst_rtp_siren_pay_sink_template));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_rtpsirenpay_src_template));
|
||||
gst_element_class_set_details (element_class, &gst_rtpsirenpay_details);
|
||||
gst_static_pad_template_get (&gst_rtp_siren_pay_src_template));
|
||||
gst_element_class_set_details (element_class, &gst_rtp_siren_pay_details);
|
||||
}
|
||||
|
||||
static void
|
||||
gst_rtpsirenpay_class_init (GstRTPSirenPayClass * klass)
|
||||
gst_rtp_siren_pay_class_init (GstRTPSirenPayClass * klass)
|
||||
{
|
||||
GstBaseRTPPayloadClass *gstbasertppayload_class;
|
||||
|
||||
gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
|
||||
|
||||
gstbasertppayload_class->set_caps = gst_rtpsirenpay_setcaps;
|
||||
gstbasertppayload_class->set_caps = gst_rtp_siren_pay_setcaps;
|
||||
|
||||
GST_DEBUG_CATEGORY_INIT (rtpsirenpay_debug, "rtpsirenpay", 0,
|
||||
"siren audio RTP payloader");
|
||||
}
|
||||
|
||||
static void
|
||||
gst_rtpsirenpay_init (GstRTPSirenPay * rtpsirenpay, GstRTPSirenPayClass * klass)
|
||||
gst_rtp_siren_pay_init (GstRTPSirenPay * rtpsirenpay,
|
||||
GstRTPSirenPayClass * klass)
|
||||
{
|
||||
GstBaseRTPPayload *basertppayload;
|
||||
GstBaseRTPAudioPayload *basertpaudiopayload;
|
||||
|
@ -105,7 +106,7 @@ gst_rtpsirenpay_init (GstRTPSirenPay * rtpsirenpay, GstRTPSirenPayClass * klass)
|
|||
}
|
||||
|
||||
static gboolean
|
||||
gst_rtpsirenpay_setcaps (GstBaseRTPPayload * basertppayload, GstCaps * caps)
|
||||
gst_rtp_siren_pay_setcaps (GstBaseRTPPayload * basertppayload, GstCaps * caps)
|
||||
{
|
||||
GstRTPSirenPay *rtpsirenpay;
|
||||
GstBaseRTPAudioPayload *basertpaudiopayload;
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
G_BEGIN_DECLS
|
||||
#define GST_TYPE_RTP_SIREN_PAY \
|
||||
(gst_rtpsirenpay_get_type())
|
||||
(gst_rtp_siren_pay_get_type())
|
||||
#define GST_RTP_SIREN_PAY(obj) \
|
||||
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RTP_SIREN_PAY,GstRTPSirenPay))
|
||||
#define GST_RTP_SIREN_PAY_CLASS(klass) \
|
||||
|
@ -49,6 +49,8 @@ struct _GstRTPSirenPayClass
|
|||
GstBaseRTPAudioPayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_siren_pay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_siren_pay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -44,6 +44,8 @@ struct _GstRtpSPEEXDepayClass
|
|||
GstBaseRTPDepayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_speex_depay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_speex_depay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -47,6 +47,8 @@ struct _GstRtpSPEEXPayClass
|
|||
GstBaseRTPPayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_speex_pay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_speex_pay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -58,6 +58,8 @@ struct _GstRtpSV3VDepayClass
|
|||
GstBaseRTPDepayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_sv3v_depay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_sv3v_depay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -61,6 +61,8 @@ struct _GstRtpTheoraDepayClass
|
|||
GstBaseRTPDepayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_theora_depay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_theora_depay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -68,6 +68,8 @@ struct _GstRtpTheoraPayClass
|
|||
GstBaseRTPPayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_theora_pay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_theora_pay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -61,6 +61,8 @@ struct _GstRtpVorbisDepayClass
|
|||
GstBaseRTPDepayloadClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_rtp_vorbis_depay_get_type (void);
|
||||
|
||||
gboolean gst_rtp_vorbis_depay_plugin_init (GstPlugin * plugin);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue