#ifdef HAVE_CONFIG_H # include "config.h" #endif #include <string.h> #include "pnmsrc.h" GST_DEBUG_CATEGORY_STATIC (pnmsrc_debug); #define GST_CAT_DEFAULT pnmsrc_debug /* elementfactory information */ static const GstElementDetails gst_pnm_src_details = GST_ELEMENT_DETAILS ("PNM packet receiver", "Source/Network", "Receive data over the network via PNM", "Wim Taymans <*****@*****.**>"); /* PNMSrc signals and args */ enum { /* FILL ME */ LAST_SIGNAL }; #define DEFAULT_LOCATION NULL enum { PROP_0, PROP_LOCATION,
#define A2DP_SBC_RTP_PAYLOAD_TYPE 1 #define TEMPLATE_MAX_BITPOOL_STR "64" #define DEFAULT_AUTOCONNECT TRUE enum { PROP_0, PROP_DEVICE, PROP_AUTOCONNECT }; GST_BOILERPLATE(GstA2dpSink, gst_a2dp_sink, GstBin, GST_TYPE_BIN); static const GstElementDetails gst_a2dp_sink_details = GST_ELEMENT_DETAILS("Bluetooth A2DP sink", "Sink/Audio", "Plays audio to an A2DP device", "Marcel Holtmann <*****@*****.**>"); static GstStaticPadTemplate gst_a2dp_sink_factory = GST_STATIC_PAD_TEMPLATE("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS("audio/x-sbc, " "rate = (int) { 16000, 32000, 44100, 48000 }, " "channels = (int) [ 1, 2 ], " "mode = (string) { \"mono\", \"dual\", \"stereo\", \"joint\" }, " "blocks = (int) { 4, 8, 12, 16 }, " "subbands = (int) { 4, 8 }, " "allocation = (string) { \"snr\", \"loudness\" }, " "bitpool = (int) [ 2, " TEMPLATE_MAX_BITPOOL_STR " ]; " "audio/mpeg" ));
static GstStateChangeReturn gst_auto_audio_src_change_state (GstElement * element, GstStateChange transition); static void gst_auto_audio_src_dispose (GstAutoAudioSrc * src); static void gst_auto_audio_src_clear_kid (GstAutoAudioSrc * src); static void gst_auto_audio_src_set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec); static void gst_auto_audio_src_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec); GST_BOILERPLATE (GstAutoAudioSrc, gst_auto_audio_src, GstBin, GST_TYPE_BIN); static const GstElementDetails gst_auto_audio_src_details = GST_ELEMENT_DETAILS ("Auto audio source", "Source/Audio", "Wrapper audio source for automatically detected audio source", "Ronald Bultje <*****@*****.**>\n" "Jan Schmidt <*****@*****.**>\n" "Stefan Kost <*****@*****.**>"); static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS_ANY); static void gst_auto_audio_src_base_init (gpointer klass) { GstElementClass *eklass = GST_ELEMENT_CLASS (klass); gst_element_class_add_pad_template (eklass, gst_static_pad_template_get (&src_template));
gst_auto_video_src_change_state (GstElement * element, GstStateChange transition); static void gst_auto_video_src_dispose (GstAutoVideoSrc * src); static void gst_auto_video_src_clear_kid (GstAutoVideoSrc * src); static void gst_auto_video_src_set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec); static void gst_auto_video_src_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec); GST_BOILERPLATE (GstAutoVideoSrc, gst_auto_video_src, GstBin, GST_TYPE_BIN); static const GstElementDetails gst_auto_video_src_details = GST_ELEMENT_DETAILS ("Auto video source", "Source/Video", "Wrapper video source for automatically detected video source", "Jan Schmidt <*****@*****.**>\n" "Stefan Kost <*****@*****.**>"); static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS_ANY); static void gst_auto_video_src_base_init (gpointer klass) { GstElementClass *eklass = GST_ELEMENT_CLASS (klass); gst_element_class_add_pad_template (eklass, gst_static_pad_template_get (&src_template));
* </refsect2> */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <string.h> #include <sys/time.h> #include "gstcacasink.h" /* elementfactory information */ static const GstElementDetails gst_cacasink_details = GST_ELEMENT_DETAILS ("A colored ASCII art video sink", "Sink/Video", "A colored ASCII art videosink", "Zeeshan Ali <*****@*****.**>"); /* cacasink signals and args */ enum { LAST_SIGNAL }; enum { ARG_0, ARG_SCREEN_WIDTH, ARG_SCREEN_HEIGHT, ARG_DITHER,
{ GstBaseTransformClass parent_class; }; static void gst_break_my_data_set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec); static void gst_break_my_data_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec); static GstFlowReturn gst_break_my_data_transform_ip (GstBaseTransform * trans, GstBuffer * buf); static gboolean gst_break_my_data_stop (GstBaseTransform * trans); static gboolean gst_break_my_data_start (GstBaseTransform * trans); static const GstElementDetails details = GST_ELEMENT_DETAILS ("Break my data", "Testing", "randomly change data in the stream", "Benjamin Otte <otte@gnome>"); GstStaticPadTemplate bmd_src_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS_ANY); GstStaticPadTemplate bmd_sink_template = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS_ANY); #define DEBUG_INIT(bla) \ GST_DEBUG_CATEGORY_INIT (gst_break_my_data_debug, "breakmydata", 0, \
#define MIN_EVENT_STRING "0" #define MAX_EVENT_STRING "16" #define MIN_VOLUME 0 #define MAX_VOLUME 36 #define MIN_INTER_DIGIT_INTERVAL 50 /* ms */ #define MIN_PULSE_DURATION 70 /* ms */ #define DEFAULT_PACKET_REDUNDANCY 1 #define MIN_PACKET_REDUNDANCY 1 #define MAX_PACKET_REDUNDANCY 5 /* elementfactory information */ static const GstElementDetails gst_rtp_dtmf_src_details = GST_ELEMENT_DETAILS ("RTP DTMF packet generator", "Source/Network", "Generates RTP DTMF packets", "Zeeshan Ali <*****@*****.**>"); GST_DEBUG_CATEGORY_STATIC (gst_rtp_dtmf_src_debug); #define GST_CAT_DEFAULT gst_rtp_dtmf_src_debug /* signals and args */ enum { /* FILL ME */ LAST_SIGNAL }; enum { PROP_0,
GST_PAD_ALWAYS, GST_STATIC_CAPS (GST_VIDEO_CAPS_YUV("AYUV") ";" \ GST_VIDEO_CAPS_YUV("YV12") ";" \ GST_VIDEO_CAPS_YUV("I420") ";" \ GST_VIDEO_CAPS_RGBA ";" \ GST_VIDEO_CAPS_BGRA ";" \ GST_VIDEO_CAPS_RGB ";" \ GST_VIDEO_CAPS_BGR)); GST_DEBUG_CATEGORY_STATIC (clutter_gst_video_sink_debug); #define GST_CAT_DEFAULT clutter_gst_video_sink_debug static GstElementDetails clutter_gst_video_sink_details = GST_ELEMENT_DETAILS ("Clutter video sink", "Sink/Video", "Sends video data from a GStreamer pipeline to a Clutter texture", "Jonathan Matthew <*****@*****.**>, " "Matthew Allum <[email protected], " "Chris Lord <*****@*****.**>"); enum { PROP_0, PROP_TEXTURE, }; typedef enum { CLUTTER_GST_NOFORMAT, CLUTTER_GST_RGB32, CLUTTER_GST_RGB24, CLUTTER_GST_AYUV,
static GstStateChangeReturn gst_auto_audio_sink_change_state (GstElement * element, GstStateChange transition); static void gst_auto_audio_sink_dispose (GstAutoAudioSink * sink); static void gst_auto_audio_sink_clear_kid (GstAutoAudioSink * sink); static void gst_auto_audio_sink_set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec); static void gst_auto_audio_sink_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec); GST_BOILERPLATE (GstAutoAudioSink, gst_auto_audio_sink, GstBin, GST_TYPE_BIN); static const GstElementDetails gst_auto_audio_sink_details = GST_ELEMENT_DETAILS ("Auto audio sink", "Sink/Audio", "Wrapper audio sink for automatically detected audio sink", "Jan Schmidt <*****@*****.**>"); static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS_ANY); static void gst_auto_audio_sink_base_init (gpointer klass) { GstElementClass *eklass = GST_ELEMENT_CLASS (klass); gst_element_class_add_pad_template (eklass, gst_static_pad_template_get (&sink_template));
#define GST_ASTERISKH263_HEADER_LEN 6 typedef struct _GstAsteriskH263Header { guint32 timestamp; /* Timestamp */ guint16 length; /* Length */ } GstAsteriskH263Header; #define GST_ASTERISKH263_HEADER_TIMESTAMP(buf) (((GstAsteriskH263Header *)(GST_BUFFER_DATA (buf)))->timestamp) #define GST_ASTERISKH263_HEADER_LENGTH(buf) (((GstAsteriskH263Header *)(GST_BUFFER_DATA (buf)))->length) /* elementfactory information */ static const GstElementDetails gst_rtp_h263p_depaydetails = GST_ELEMENT_DETAILS ("RTP packet parser", "Codec/Depayloader/Network", "Extracts H263 video from RTP and encodes in Asterisk H263 format", "Neil Stratford <*****@*****.**>"); static GstStaticPadTemplate gst_asteriskh263_src_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS ("application/x-asteriskh263") ); static GstStaticPadTemplate gst_asteriskh263_sink_template = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS ("application/x-rtp, " "media = (string) \"video\", "
#ifdef HAVE_CONFIG_H #include "config.h" #endif #include "gstmillcolor.h" #include <gst/gst.h> #include <gst/video/video.h> #include <string.h> GST_DEBUG_CATEGORY_STATIC (mill_color_debug); #define GST_CAT_DEFAULT mill_color_debug /* elementfactory information */ static const GstElementDetails gst_mill_color_details = GST_ELEMENT_DETAILS ("MillColor filter", "Filter/Effect/Video", "Applies a look from the Mill Colour iPhone app to a video", "Nick Ludlam <*****@*****.**>"); static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS (GST_VIDEO_CAPS_RGBA ";" GST_VIDEO_CAPS_BGRA)); static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS (GST_VIDEO_CAPS_YUV ("AYUV"))); GST_BOILERPLATE (GstMillColor, gst_mill_color, GstBaseTransform, GST_TYPE_BASE_TRANSFORM); static GstCaps *gst_mill_color_transform_caps (GstBaseTransform * btrans, GstPadDirection direction, GstCaps * caps); static gboolean gst_mill_color_set_caps (GstBaseTransform * btrans, GstCaps * incaps, GstCaps * outcaps); static GstFlowReturn gst_mill_color_transform_ip (GstBaseTransform * btrans, GstBuffer * inbuf); static void gst_mill_color_base_init (gpointer g_class) { GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); gst_element_class_set_details (element_class, &gst_mill_color_details);
* Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <gst/gst-i18n-plugin.h> #include <gst/dataprotocol/dataprotocol.h> #include "gsttcp.h" #include "gsttcpclientsink.h" #include <string.h> /* memset */ /* elementfactory information */ static const GstElementDetails gst_tcp_client_sink_details = GST_ELEMENT_DETAILS ("TCP client sink", "Sink/Network", "Send data as a client over the network via TCP", "Thomas Vander Stichele <thomas at apestaart dot org>"); /* TCPClientSink signals and args */ enum { FRAME_ENCODED, /* FILL ME */ LAST_SIGNAL }; GST_DEBUG_CATEGORY_STATIC (tcpclientsink_debug); #define GST_CAT_DEFAULT (tcpclientsink_debug) enum {
#if 1 #include "precomp.hpp" #include <gst/gst.h> #include <gst/base/gstbasesink.h> #include <gst/gstbuffer.h> #include <string.h> #include "gstappsink.h" GST_DEBUG_CATEGORY (app_sink_debug); #define GST_CAT_DEFAULT app_sink_debug static const GstElementDetails app_sink_details = GST_ELEMENT_DETAILS ((gchar*)"AppSink", (gchar*)"Generic/Sink", (gchar*)"Allow the application to get access to raw buffer", (gchar*)"David Schleef <*****@*****.**>, Wim Taymans <*****@*****.**"); enum { /* signals */ SIGNAL_EOS, SIGNAL_NEW_PREROLL, SIGNAL_NEW_BUFFER, /* acions */ SIGNAL_PULL_PREROLL, SIGNAL_PULL_BUFFER, LAST_SIGNAL };
* Decodes images in smoke format. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <string.h> /*#define DEBUG_ENABLED*/ #include "gstsmokedec.h" #include <gst/video/video.h> /* elementfactory information */ static const GstElementDetails gst_smokedec_details = GST_ELEMENT_DETAILS ("Smoke video decoder", "Codec/Decoder/Video", "Decode video from Smoke format", "Wim Taymans <*****@*****.**>"); GST_DEBUG_CATEGORY_STATIC (smokedec_debug); #define GST_CAT_DEFAULT smokedec_debug /* SmokeDec signals and args */ enum { LAST_SIGNAL }; enum { PROP_0 };
#ifdef HAVE_CONFIG_H # include <config.h> #endif #include <gst/gst.h> #include <CoreAudio/CoreAudio.h> #include <CoreAudio/AudioHardware.h> #include "gstosxaudiosrc.h" #include "gstosxaudioelement.h" GST_DEBUG_CATEGORY_STATIC (osx_audiosrc_debug); #define GST_CAT_DEFAULT osx_audiosrc_debug static GstElementDetails gst_osx_audio_src_details = GST_ELEMENT_DETAILS ("Audio Source (OSX)", "Source/Audio", "Input from a sound card in OS X", "Zaheer Abbas Merali <zaheerabbas at merali dot org>"); /* Filter signals and args */ enum { /* FILL ME */ LAST_SIGNAL }; enum { ARG_0, ARG_DEVICE };
* Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H # include "config.h" #endif #include <string.h> #include <stdlib.h> #include <gst/rtp/gstrtpbuffer.h> #include "gstrtpilbcdepay.h" /* elementfactory information */ static const GstElementDetails gst_rtp_ilbc_depay_details = GST_ELEMENT_DETAILS ("RTP iLBC depayloader", "Codec/Depayloader/Network", "Extracts iLBC audio from RTP packets (RFC 3952)", "Philippe Kalaf <*****@*****.**>"); /* RtpiLBCDepay signals and args */ enum { /* FILL ME */ LAST_SIGNAL }; #define DEFAULT_MODE GST_ILBC_MODE_30 enum { PROP_0, PROP_MODE
#include "gstrtpjitterbuffer.h" #include "rtpjitterbuffer.h" GST_DEBUG_CATEGORY (rtpjitterbuffer_debug); #define GST_CAT_DEFAULT (rtpjitterbuffer_debug) /* low and high threshold tell the queue when to start and stop buffering */ #define LOW_THRESHOLD 0.2 #define HIGH_THRESHOLD 0.8 /* elementfactory information */ static const GstElementDetails gst_rtp_jitter_buffer_details = GST_ELEMENT_DETAILS ("RTP packet jitter-buffer", "Filter/Network/RTP", "A buffer that deals with network jitter and other transmission faults", "Philippe Kalaf <*****@*****.**>, " "Wim Taymans <*****@*****.**>"); /* RTPJitterBuffer signals and args */ enum { SIGNAL_REQUEST_PT_MAP, SIGNAL_CLEAR_PT_MAP, LAST_SIGNAL }; #define DEFAULT_LATENCY_MS 200 #define DEFAULT_DROP_ON_LATENCY FALSE #define DEFAULT_TS_OFFSET 0 #define DEFAULT_DO_LOST FALSE
enum { PROP_0, PROP_LEVEL }; /* default values */ #define DEFAULT_LEVEL OMX_VIDEO_H263Level10 #define DEFAULT_BITRATE 368000 #define DEFAULT_CONTROLRATE GOO_TI_VIDEO_ENCODER_CR_VARIABLE static const GstElementDetails details = GST_ELEMENT_DETAILS ( "OpenMAX H263 encoder", "Codedc/Encoder/Video", "Encodes H263 streams with OpenMAX", "Texas Instrument" ); static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS ("video/x-h263, " "width = (int) [16, 4096], " "height = (int) [16, 4096], " "framerate = (GstFraction) [1/1, 60/1]")); static void gst_goo_ench263_set_property (GObject* object, guint prop_id,
* * Copyright Jeroen Vreeken ([email protected]), 2005 * * This software is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. */ #include "gstiq.h" #include <string.h> #include <math.h> static GstElementDetails manchestermod_details = GST_ELEMENT_DETAILS( "Manchester modulator plugin", "Filter/Effect/Audio", "Manchester modulator", "Jeroen Vreeken ([email protected])" ); static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE( "sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS( "application/x-raw-float, " "endianness = (int) BYTE_ORDER, " "depth = (int) 32, " "width = (int) 32, " "rate = (int) [ 1, MAX ], " "channels = (int) 1" )
"video/x-h263, " \ "width = (int) [16, 1280], " \ "height = (int) [16, 720]; " \ \ "video/x-h264, " \ "width = (int) [16, 1280], " \ "height = (int) [16, 720]; " \ \ "image/jpeg, " \ "width = (int) [16, 1920], " \ "height = (int) [16, 1080]; " /* get the element details */ static GstElementDetails mfw_gst_vpuenc_details = GST_ELEMENT_DETAILS("Freescale: Hardware (VPU) Encoder", "Codec/Encoder/Video", "Encodes Raw YUV Data to MPEG4 SP,or H.264 BP, or H.263 Format", "Multimedia Team <*****@*****.**>"); static GstStaticPadTemplate mfw_gst_vpuenc_src_factory = GST_STATIC_PAD_TEMPLATE("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS(MFW_GST_VPUENC_VIDEO_CAPS)); /* defines the source pad properties of VPU Encoder element */ static GstStaticPadTemplate mfw_gst_vpuenc_sink_factory = GST_STATIC_PAD_TEMPLATE("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS("video/x-raw-yuv, " "format = (fourcc) {I420}, "
}; #define GST_GOO_ENCPCM_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GST_TYPE_GOO_ENCPCM, GstGooEncPcmPrivate)) struct _GstGooEncPcmPrivate { guint incount; guint outcount; }; static const GstElementDetails details = GST_ELEMENT_DETAILS ("OpenMAX PCM encoder", "Codec/Decoder/Audio", "Encodes Pulse-Code Modulation streams with OpenMAX", "Texas Instruments" ); static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS ("audio/x-raw-int, " "width = (int) 16, " "depth = (int) 16, " "signed = (boolean) TRUE, " "endianness = (int) BYTE_ORDER, " "rate = (int) [ 8000, 48000 ], " "channels = (int) 1") );
/* args */ enum { PROP_0, PROP_LEVEL }; /* default values */ #define DEFAULT_BITRATE 128000 #define DEFAULT_CONTROLRATE GOO_TI_VIDEO_ENCODER720P_CR_VARIABLE #define DEFAULT_LEVEL OMX_VIDEO_MPEG4Level1 static const GstElementDetails details = GST_ELEMENT_DETAILS ( "OpenMAX MPEG4 Ittiam encoder", "Codedc/Encoder/Video", "Encodes MPEG4 720p streams with OpenMAX", "Texas Instruments" ); static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS ("video/mpeg, " "mpegversion = (int) 4, " "systemstream = (boolean) FALSE," "width = (int) [16, 4096], " "height = (int) [16, 4096], " "framerate = (GstFraction) [1/1, 120/1]"));
#include <glib/gstdio.h> #include <stdlib.h> #include <unistd.h> #include "gstwildmidi.h" #ifndef WILDMIDI_CFG #define WILDMIDI_CFG "/etc/timidity.cfg" #endif GST_DEBUG_CATEGORY_STATIC (gst_wildmidi_debug); #define GST_CAT_DEFAULT gst_wildmidi_debug static const GstElementDetails gst_wildmidi_details = GST_ELEMENT_DETAILS ("WildMidi", "Codec/Decoder/Audio", "Midi Synthesizer Element", "Wouter Paesen <*****@*****.**>"); enum { /* FILL ME */ LAST_SIGNAL }; enum { ARG_0, ARG_LINEAR_VOLUME, ARG_HIGH_QUALITY, /* FILL ME */ };
GstVideoFilterClass parent_class; }; enum { ARG_0, ARG_DELAY, ARG_LINESPACE, ARG_GAIN }; GType gst_revtv_get_type (void); static const GstElementDetails gst_revtv_details = GST_ELEMENT_DETAILS ("RevTV effect", "Filter/Effect/Video", "A video waveform monitor for each line of video processed", "Wim Taymans <*****@*****.**>"); static GstStaticPadTemplate gst_revtv_src_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS (GST_VIDEO_CAPS_BGRx) ); static GstStaticPadTemplate gst_revtv_sink_template = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS (GST_VIDEO_CAPS_BGRx) );
enum { PROP_0, PROP_MIN_FRAMES }; GST_DEBUG_CATEGORY_STATIC(gst_rtp_sbc_pay_debug); #define GST_CAT_DEFAULT gst_rtp_sbc_pay_debug GST_BOILERPLATE(GstRtpSBCPay, gst_rtp_sbc_pay, GstBaseRTPPayload, GST_TYPE_BASE_RTP_PAYLOAD); static const GstElementDetails gst_rtp_sbc_pay_details = GST_ELEMENT_DETAILS("RTP packet payloader", "Codec/Payloader/Network", "Payload SBC audio as RTP packets", "Thiago Sousa Santos " "<*****@*****.**>"); static GstStaticPadTemplate gst_rtp_sbc_pay_sink_factory = GST_STATIC_PAD_TEMPLATE("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS("audio/x-sbc, " "rate = (int) { 16000, 32000, 44100, 48000 }, " "channels = (int) [ 1, 2 ], " "mode = (string) { \"mono\", \"dual\", \"stereo\", \"joint\" }, " "blocks = (int) { 4, 8, 12, 16 }, " "subbands = (int) { 4, 8 }, " "allocation = (string) { \"snr\", \"loudness\" }, " "bitpool = (int) [ 2, 64 ]") );
#endif #include <fcntl.h> #include <string.h> #include <unistd.h> #include <stropts.h> #include <sys/mixer.h> #include "gstsunaudiosrc.h" GST_DEBUG_CATEGORY_EXTERN (sunaudio_debug); #define GST_CAT_DEFAULT sunaudio_debug static GstElementDetails plugin_details = GST_ELEMENT_DETAILS ("Sun Audio Source", "Source/Audio", "Audio source for Sun Audio devices", "Brian Cameron <*****@*****.**>"); static void gst_sunaudiosrc_base_init (gpointer g_class); static void gst_sunaudiosrc_class_init (GstSunAudioSrcClass * klass); static void gst_sunaudiosrc_init (GstSunAudioSrc * sunaudiosrc, GstSunAudioSrcClass * g_class); static void gst_sunaudiosrc_dispose (GObject * object); static void gst_sunaudiosrc_set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec); static void gst_sunaudiosrc_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec); static GstCaps *gst_sunaudiosrc_getcaps (GstBaseSrc * bsrc);
*/ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "gstpnmdec.h" #include "gstpnmutils.h" #include <gst/gstutils.h> #include <gst/video/video.h> #include <string.h> static GstElementDetails pnmdec_details = GST_ELEMENT_DETAILS ("PNM converter", "Codec/Decoder/Image", "Decodes PNM format", "Lutz Mueller <*****@*****.**>"); static GstElementClass *parent_class; static GstStaticPadTemplate gst_pnmdec_src_pad_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS (GST_VIDEO_CAPS_RGB "; " "video/x-raw-gray, width =" GST_VIDEO_SIZE_RANGE ", " "height =" GST_VIDEO_SIZE_RANGE ", framerate =" GST_VIDEO_FPS_RANGE ", " "bpp= (int) 8, depth= (int) 8")); static GstStaticPadTemplate gst_pnmdec_sink_pad_template = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS (MIME_ALL));
#include "gstg729encoderinterface.h" #include "gstilbcencoderinterface.h" #include "string.h" GST_DEBUG_CATEGORY_EXTERN (devsoundsrc_debug); #ifdef GST_CAT_DEFAULT #undef GST_CAT_DEFAULT #endif #define GST_CAT_DEFAULT devsoundsrc_debug /* elementfactory information */ static const GstElementDetails gst_devsound_src_details= GST_ELEMENT_DETAILS ("Audio Src (DEVSOUND)", "Src/Audio", "Record via Devsound", " " ); static void gst_devsound_src_base_init(gpointer g_class); static void gst_devsound_src_class_init(GstDevsoundSrcClass * klass); static void gst_devsound_src_init(GstDevsoundSrc * devsoundsrc); static void gst_devsound_src_dispose(GObject * object); static void gst_devsound_src_get_property(GObject * object, guint prop_id, GValue * value, GParamSpec * pspec); static void gst_devsound_src_set_property(GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec); static GstCaps *gst_devsound_src_getcaps(GstBaseSrc * bsrc);
* </para> * </refsect2> */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "gstwaveformsink.h" GST_DEBUG_CATEGORY_STATIC (waveformsink_debug); /* elementfactory information */ static const GstElementDetails gst_waveform_sink_details = GST_ELEMENT_DETAILS ("WaveForm Audio Sink", "Sink/Audio", "Output to a sound card via WaveForm API", "Sebastien Moutte <*****@*****.**>"); static void gst_waveform_sink_base_init (gpointer g_class); static void gst_waveform_sink_class_init (GstWaveFormSinkClass * klass); static void gst_waveform_sink_init (GstWaveFormSink * wfsink, GstWaveFormSinkClass * g_class); static void gst_waveform_sink_finalise (GObject * object); static void gst_waveform_sink_set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec); static void gst_waveform_sink_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec); static GstCaps *gst_waveform_sink_getcaps (GstBaseSink * bsink); /************************************************************************/ /* GstAudioSink functions */
* with the example shown in gdpdepay. * </refsect2> */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <gst/dataprotocol/dataprotocol.h> #include "gstgdppay.h" /* elementfactory information */ static const GstElementDetails gdp_pay_details = GST_ELEMENT_DETAILS ("GDP Payloader", "GDP/Payloader", "Payloads GStreamer Data Protocol buffers", "Thomas Vander Stichele <thomas at apestaart dot org>"); static GstStaticPadTemplate gdp_pay_sink_template = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS_ANY); static GstStaticPadTemplate gdp_pay_src_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS ("application/x-gdp")); GST_DEBUG_CATEGORY_STATIC (gst_gdp_pay_debug);