#ifdef HAVE_CONFIG_H #include "config.h" #endif #include "gstmusepackdec.h" #include "gstmusepackreader.h" GST_DEBUG_CATEGORY (musepackdec_debug); #define GST_CAT_DEFAULT musepackdec_debug static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, #ifdef MPC_IS_OLD_API GST_STATIC_CAPS ("audio/x-musepack, streamversion = (int) 7") #else GST_STATIC_CAPS ("audio/x-musepack, streamversion = (int) { 7, 8 }") #endif ); #ifdef MPC_FIXED_POINT #define BASE_CAPS \ "audio/x-raw-int, " \ "signed = (bool) TRUE, " \ "width = (int) 32, " \ "depth = (int) 32" #else #define BASE_CAPS \ "audio/x-raw-float, " \ "width = (int) 32"
uniaudio_channel_map_5_1_surround, uniaudio_channel_map_6_1_surround, uniaudio_channel_map_7_1_surround }; #define CHANNEL_MAPS_SIZE (sizeof(uniaudio_channel_maps) / sizeof(gint32 *)) static GstStaticPadTemplate static_src_template = GST_STATIC_PAD_TEMPLATE( "src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS( "audio/x-raw, " "format = (string) { S32LE, S24LE, S16LE, S8 }, " "rate = [ 1, MAX ], " "channels = (int) [ 1, 8 ], " "layout = (string) interleaved " ) ); G_DEFINE_TYPE(GstImxAudioUniaudioDec, gst_imx_audio_uniaudio_dec, GST_TYPE_AUDIO_DECODER); static void gst_imx_audio_uniaudio_dec_finalize(GObject *object); static gboolean gst_imx_audio_uniaudio_dec_start(GstAudioDecoder *dec); static gboolean gst_imx_audio_uniaudio_dec_stop(GstAudioDecoder *dec); static gboolean gst_imx_audio_uniaudio_dec_set_format(GstAudioDecoder *dec, GstCaps *caps); static GstFlowReturn gst_imx_audio_uniaudio_dec_handle_frame(GstAudioDecoder *dec, GstBuffer *buffer);
#include "gstdshowvideosrc.h" #include <gst/video/video.h> GST_DEBUG_CATEGORY_STATIC (dshowvideosrc_debug); #define GST_CAT_DEFAULT dshowvideosrc_debug static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS (GST_VIDEO_CAPS_BGR ";" GST_VIDEO_CAPS_YUV ("{ I420 }") ";" GST_VIDEO_CAPS_YUV ("{ YUY2 }") ";" "video/x-dv," "systemstream = (boolean) FALSE," "width = (int) [ 1, MAX ]," "height = (int) [ 1, MAX ]," "framerate = (fraction) [ 0, MAX ]," "format = (fourcc) dvsd;" "video/x-dv," "systemstream = (boolean) TRUE") ); static void gst_dshowvideosrc_init_interfaces (GType type); GST_BOILERPLATE_FULL (GstDshowVideoSrc, gst_dshowvideosrc, GstPushSrc, GST_TYPE_PUSH_SRC, gst_dshowvideosrc_init_interfaces); enum { PROP_0, PROP_DEVICE,
PROP_OVERLAY_WIDTH, PROP_OVERLAY_HEIGHT, PROP_ALPHA }; #define VIDEO_FORMATS "{ RGBx, RGB, BGR, BGRx, xRGB, xBGR, " \ "RGBA, BGRA, ARGB, ABGR, I420, YV12, AYUV, YUY2, UYVY, " \ "v308, v210, v216, Y41B, Y42B, Y444, YVYU, NV12, NV21, UYVP, " \ "RGB16, BGR16, RGB15, BGR15, UYVP, A420, YUV9, YVU9, " \ "IYU1, ARGB64, AYUV64, r210, I420_10LE, I420_10BE, " \ "GRAY8, GRAY16_BE, GRAY16_LE }" static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE (VIDEO_FORMATS)) ); static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE (VIDEO_FORMATS)) ); G_DEFINE_TYPE (GstGdkPixbufOverlay, gst_gdk_pixbuf_overlay, GST_TYPE_VIDEO_FILTER); static void gst_gdk_pixbuf_overlay_class_init (GstGdkPixbufOverlayClass * klass) { GstVideoFilterClass *videofilter_class = GST_VIDEO_FILTER_CLASS (klass);
*/ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "gstpnmdec.h" #include "gstpnmenc.h" #include "gstpnmutils.h" #include <gst/gstplugin.h> #include <gst/gstversion.h> #include <gst/gsttypefind.h> #include <string.h> static GstStaticCaps bitmap_caps = GST_STATIC_CAPS (MIME_BM); static GstStaticCaps graymap_caps = GST_STATIC_CAPS (MIME_GM); static GstStaticCaps pixmap_caps = GST_STATIC_CAPS (MIME_PM); #define BITMAP_CAPS (gst_static_caps_get (&bitmap_caps)) #define GRAYMAP_CAPS (gst_static_caps_get (&graymap_caps)) #define PIXMAP_CAPS (gst_static_caps_get (&pixmap_caps)) static void gst_my_typefind_function (GstTypeFind * tf, gpointer d) { GstPnmInfoMngrResult r = GST_PNM_INFO_MNGR_RESULT_READING; GstPnmInfoMngr mngr = { 0, }; guint i; guint8 *data = NULL;
ARG_MUTE, ARG_HOST }; #define DEFAULT_MUTE FALSE #define DEFAULT_HOST NULL static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS ("audio/x-raw-int, " "endianness = (int) BYTE_ORDER, " "signed = (boolean) TRUE, " "width = (int) 16, " "depth = (int) 16, " "rate = (int) [ 1000, 96000 ], " "channels = (int) [ 1, 2 ]; " "audio/x-raw-int, " "signed = (boolean) FALSE, " "width = (int) 8, " "depth = (int) 8, " "rate = (int) [ 1000, 96000 ], " "channels = (int) [ 1, 2 ]") ); static void gst_nas_sink_finalize (GObject * object); static gboolean gst_nas_sink_open (GstAudioSink * sink); static gboolean gst_nas_sink_close (GstAudioSink * sink); static gboolean gst_nas_sink_prepare (GstAudioSink * sink, GstRingBufferSpec * spec); static gboolean gst_nas_sink_unprepare (GstAudioSink * sink); static guint gst_nas_sink_write (GstAudioSink * asink, gpointer data,
PROP_COLOR_R, PROP_COLOR_G, PROP_COLOR_B, PROP_TEXT, PROP_HEIGHT, PROP_WIDTH }; /* the capabilities of the inputs and outputs. * * describe the real formats here. */ static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE ("RGB")) ); static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE ("RGB")) ); G_DEFINE_TYPE (GstOpencvTextOverlay, gst_opencv_text_overlay, GST_TYPE_OPENCV_VIDEO_FILTER); static void gst_opencv_text_overlay_set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec); static void gst_opencv_text_overlay_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec);
GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS ("audio/x-raw-int, " "width = (int) 8, " "depth = (int) [ 1, 8 ], " "signed = (boolean) true, " "endianness = (int) BIG_ENDIAN, " "channels = (int) [ 1, MAX ], " "rate = (int) [ 1, MAX ];" "audio/x-raw-int, " "width = (int) 16, " "depth = (int) [ 9, 16 ], " "signed = (boolean) true, " "endianness = (int) BIG_ENDIAN, " "channels = (int) [ 1, MAX ], " "rate = (int) [ 1, MAX ];" "audio/x-raw-int, " "width = (int) 24, " "depth = (int) [ 17, 24 ], " "signed = (boolean) true, " "endianness = (int) BIG_ENDIAN, " "channels = (int) [ 1, MAX ], " "rate = (int) [ 1, MAX ];" "audio/x-raw-int, " "width = (int) 32, " "depth = (int) [ 25, 32 ], " "signed = (boolean) true, " "endianness = (int) BIG_ENDIAN, " "channels = (int) [ 1, MAX ], " "rate = (int) [ 1, MAX ]") );
/* *INDENT-OFF* */ static const char gst_vaapi_decode_bin_src_caps_str[] = GST_VAAPI_DECODE_BIN_SURFACE_CAPS ", " GST_CAPS_INTERLACED_FALSE "; " GST_VIDEO_CAPS_MAKE_WITH_FEATURES ( GST_CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META, "{ RGBA, BGRA }") ", " GST_CAPS_INTERLACED_FALSE "; " GST_VIDEO_CAPS_MAKE (GST_VIDEO_FORMATS_ALL) ", " GST_CAPS_INTERLACED_FALSE; /* *INDENT-ON* */ static GstStaticPadTemplate gst_vaapi_decode_bin_sink_factory = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS (gst_vaapi_decode_bin_sink_caps_str)); static GstStaticPadTemplate gst_vaapi_decode_bin_src_factory = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS (gst_vaapi_decode_bin_src_caps_str)); G_DEFINE_TYPE (GstVaapiDecodeBin, gst_vaapi_decode_bin, GST_TYPE_BIN); static void post_missing_element_message (GstVaapiDecodeBin * vaapidecbin, const gchar * missing_factory) { GstMessage *msg;
/* For ease of programming we use globals to keep refs for our floating src and * sink pads we create; otherwise we always have to do get_pad, get_peer, and * then remove references in every test function */ static GstPad *mysrcpad, *mysinkpad; #define RG_VOLUME_CAPS_TEMPLATE_STRING \ "audio/x-raw-float, " \ "width = (int) 32, " \ "endianness = (int) BYTE_ORDER, " \ "channels = (int) [ 1, MAX ], " \ "rate = (int) [ 1, MAX ]" static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS (RG_VOLUME_CAPS_TEMPLATE_STRING) ); static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS (RG_VOLUME_CAPS_TEMPLATE_STRING) ); /* gstcheck sets up a chain function that appends buffers to a global list. * This is our equivalent of that for event handling. */ static gboolean event_func (GstPad * pad, GstEvent * event) { events = g_list_append (events, event); return TRUE;
fail_if (gst_bus_poll (GST_ELEMENT_BUS (pipe), GST_MESSAGE_ERROR, 0) != NULL); gst_element_set_state (pipe, GST_STATE_NULL); gst_object_unref (pipe); } GST_END_TEST; /* Fake mp3 parser for test */ typedef GstBaseParse TestMpegAudioParse; typedef GstBaseParseClass TestMpegAudioParseClass; static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS ("audio/mpeg, mpegversion=1, layer=[1,3], parsed=(b)true") ); static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS ("audio/mpeg, mpegversion=1") ); static GType test_mpeg_audio_parse_get_type (void); static gboolean test_mpeg_audio_parse_start (GstBaseParse * parse); static gboolean test_mpeg_audio_parse_stop (GstBaseParse * parse); static GstFlowReturn test_mpeg_audio_parse_handle_frame (GstBaseParse * parse, GstBaseParseFrame * frame, gint * skipsize); G_DEFINE_TYPE (TestMpegAudioParse, test_mpeg_audio_parse, GST_TYPE_BASE_PARSE);
ARG_PAT_INTERVAL, ARG_PMT_INTERVAL }; static GstStaticPadTemplate mpegtsmux_sink_factory = GST_STATIC_PAD_TEMPLATE ("sink_%d", GST_PAD_SINK, GST_PAD_REQUEST, GST_STATIC_CAPS ("video/mpeg, " "mpegversion = (int) { 1, 2, 4 }, " "systemstream = (boolean) false; " "video/x-dirac;" "video/x-h264,stream-format=(string)byte-stream;" "audio/mpeg, " "mpegversion = (int) { 1, 2 };" "audio/mpeg, " "mpegversion = (int) 4, stream-format = (string) { raw, adts };" "audio/x-lpcm, " "width = (int) { 16, 20, 24 }, " "rate = (int) { 48000, 96000 }, " "channels = (int) [ 1, 8 ], " "dynamic_range = (int) [ 0, 255 ], " "emphasis = (boolean) { FALSE, TRUE }, " "mute = (boolean) { FALSE, TRUE }; " "audio/x-ac3;" "audio/x-dts")); static GstStaticPadTemplate mpegtsmux_src_factory = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS ("video/mpegts, " "systemstream = (boolean) true, " "packetsize = (int) { 188, 192} ") );
#include "gstvcdparse.h" GST_DEBUG_CATEGORY_EXTERN (vcdparse_debug); #define GST_CAT_DEFAULT vcdparse_debug static gboolean gst_vcd_parse_sink_event (GstPad * pad, GstEvent * event); static gboolean gst_vcd_parse_src_event (GstPad * pad, GstEvent * event); static gboolean gst_vcd_parse_src_query (GstPad * pad, GstQuery * query); static GstFlowReturn gst_vcd_parse_chain (GstPad * pad, GstBuffer * buf); static GstStateChangeReturn gst_vcd_parse_change_state (GstElement * element, GstStateChange transition); static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS ("video/x-vcd") ); static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS ("video/mpeg, systemstream = (boolean) TRUE") ); GST_BOILERPLATE (GstVcdParse, gst_vcd_parse, GstElement, GST_TYPE_ELEMENT); static void gst_vcd_parse_base_init (gpointer klass) { GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
#include <gst/base/gstadapter.h> #include <gst/base/gstbitreader.h> #include <string.h> #include "gsth264frame.h" #include "gstvdph264dec.h" GST_DEBUG_CATEGORY_STATIC (gst_vdp_h264_dec_debug); #define GST_CAT_DEFAULT gst_vdp_h264_dec_debug static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE (GST_BASE_VIDEO_DECODER_SINK_NAME, GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS ("video/x-h264, " "interlaced = (boolean) false") ); #define DEBUG_INIT(bla) \ GST_DEBUG_CATEGORY_INIT (gst_vdp_h264_dec_debug, "vdpauh264dec", 0, \ "VDPAU h264 decoder"); GST_BOILERPLATE_FULL (GstVdpH264Dec, gst_vdp_h264_dec, GstVdpDecoder, GST_TYPE_VDP_DECODER, DEBUG_INIT); #define SYNC_CODE_SIZE 3 #define READ_UINT8(reader, val, nbits) { \ if (!gst_bit_reader_get_bits_uint8 (reader, &val, nbits)) { \ GST_WARNING ("failed to read uint8, nbits: %d", nbits); \ return FALSE; \
GstBin parent; GstElement *inner_parser; }; struct _GstUnalignedAudioParseClass { GstBinClass parent_class; }; static GstStaticPadTemplate static_sink_template = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS (GST_UNALIGNED_RAW_AUDIO_CAPS) ); static GstStaticPadTemplate static_src_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS (GST_AUDIO_CAPS_MAKE (GST_AUDIO_FORMATS_ALL) ", layout = (string) { interleaved, non-interleaved }") ); G_DEFINE_TYPE (GstUnalignedAudioParse, gst_unaligned_audio_parse, GST_TYPE_BIN);
enum { IMX_V4L2SRC_0, IMX_V4L2SRC_CAPTURE_MODE, IMX_V4L2SRC_FRAMERATE_NUM, IMX_V4L2SRC_INPUT, IMX_V4L2SRC_DEVICE, IMX_V4L2SRC_QUEUE_SIZE, }; static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE( "src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS( "video/x-raw" ) ); GST_DEBUG_CATEGORY_STATIC(gst_imx_v4l2src_debug_category); #define GST_CAT_DEFAULT gst_imx_v4l2src_debug_category #define DEBUG_INIT \ GST_DEBUG_CATEGORY_INIT(gst_imx_v4l2src_debug_category, \ "imxv4l2src", 0, "V4L2 CSI video source"); G_DEFINE_TYPE_WITH_CODE(GstImxV4l2Src, gst_imx_v4l2src, GST_TYPE_PUSH_SRC, DEBUG_INIT) /* TODO: This part is nonessential, and causes compilation errors with certain 3.10 kernels, * since VIDIOC_DBG_G_CHIP_IDENT is an experimental interface. Disabled for now. */
* 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. */ #include <gst/check/gstcheck.h> #include "parser.h" #define SRC_CAPS_TMPL "audio/x-flac, framed=(boolean)false" #define SINK_CAPS_TMPL "audio/x-flac, framed=(boolean)true" GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS (SINK_CAPS_TMPL) ); GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS (SRC_CAPS_TMPL) ); /* some data */ static guint8 streaminfo_header[] = { 0x7f, 0x46, 0x4c, 0x41, 0x43, 0x01, 0x00, 0x00, 0x02, 0x66, 0x4c, 0x61, 0x43, 0x00, 0x00, 0x00, 0x22, 0x12, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0xc4, 0x40, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
#define PPS_TYPE_ID 8 GST_DEBUG_CATEGORY_STATIC (rtph264pay_debug); #define GST_CAT_DEFAULT (rtph264pay_debug) /* references: * * RFC 3984 */ static GstStaticPadTemplate gst_rtp_h264_pay_sink_template = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS ("video/x-h264, " "stream-format = (string) avc, alignment = (string) au;" "video/x-h264, " "stream-format = (string) byte-stream, alignment = (string) { nal, au }") ); static GstStaticPadTemplate gst_rtp_h264_pay_src_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS ("application/x-rtp, " "media = (string) \"video\", " "payload = (int) " GST_RTP_PAYLOAD_DYNAMIC_STRING ", " "clock-rate = (int) 90000, " "encoding-name = (string) \"H264\"") ); #define DEFAULT_SPROP_PARAMETER_SETS NULL #define DEFAULT_CONFIG_INTERVAL 0
GstBuffer ** buf); #define DEFAULT_TIMEOUT 2000000000 /* 2000 ms */ enum { PROP_0, PROP_CHANNEL }; /* pad templates */ static GstStaticPadTemplate gst_inter_app_src_src_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS ("ANY") ); /* class initialization */ #define parent_class gst_inter_app_src_parent_class G_DEFINE_TYPE (GstInterAppSrc, gst_inter_app_src, GST_TYPE_BASE_SRC); static void gst_inter_app_src_class_init (GstInterAppSrcClass * klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); GstElementClass *element_class = GST_ELEMENT_CLASS (klass); GstBaseSrcClass *base_src_class = GST_BASE_SRC_CLASS (klass); GST_DEBUG_CATEGORY_INIT (gst_inter_app_src_debug_category, "interappsrc", 0, "debug category for interappsrc element");
#include <string.h> #include <gst/rtp/gstrtpbuffer.h> #include <gst/audio/audio.h> #include "gstrtpopuspay.h" GST_DEBUG_CATEGORY_STATIC (rtpopuspay_debug); #define GST_CAT_DEFAULT (rtpopuspay_debug) static GstStaticPadTemplate gst_rtp_opus_pay_sink_template = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS ("audio/x-opus, channels = (int) [1, 2], channel-mapping-family = (int) 0") ); static GstStaticPadTemplate gst_rtp_opus_pay_src_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS ("application/x-rtp, " "media = (string) \"audio\", " "payload = (int) " GST_RTP_PAYLOAD_DYNAMIC_STRING ", " "clock-rate = (int) 48000, " "encoding-params = (string) \"2\", " "encoding-name = (string) { \"OPUS\", \"X-GST-OPUS-DRAFT-SPITTKA-00\" }") ); static gboolean gst_rtp_opus_pay_setcaps (GstRTPBasePayload * payload,
*/ #ifdef HAVE_CONFIG_H # include "config.h" #endif #include "gstvorbisparse.h" GST_DEBUG_CATEGORY_EXTERN (vorbisparse_debug); #define GST_CAT_DEFAULT vorbisparse_debug static GstStaticPadTemplate vorbis_parse_sink_factory = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS ("audio/x-vorbis") ); static GstStaticPadTemplate vorbis_parse_src_factory = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS ("audio/x-vorbis") ); #define gst_vorbis_parse_parent_class parent_class G_DEFINE_TYPE (GstVorbisParse, gst_vorbis_parse, GST_TYPE_ELEMENT); static GstFlowReturn vorbis_parse_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer); static GstStateChangeReturn vorbis_parse_change_state (GstElement * element,
#ifdef HAVE_CONFIG_H #include "config.h" #endif #include <gst/check/gstcheck.h> #include <gst/audio/audio.h> #include <string.h> static GstPad *mysrcpad, *mysinkpad; static GstElement *mulawdec = NULL; static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS ("audio/x-raw," "format = (string) " GST_AUDIO_NE (S16) ", " "rate = (int) 8000, " "channels = (int) 1, " "layout = (string)interleaved") ); static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS ("audio/x-mulaw," "rate = (int) 8000," "channels = (int) 1") ); static void mulawdec_setup (void) { GstCaps *src_caps; src_caps =
#define GLIB_DISABLE_DEPRECATION_WARNINGS #ifdef HAVE_CONFIG_H # include "config.h" #endif #include "gsttheoraparse.h" #define GST_CAT_DEFAULT theoraparse_debug GST_DEBUG_CATEGORY_STATIC (GST_CAT_DEFAULT); static GstStaticPadTemplate theora_parse_sink_factory = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS ("video/x-theora") ); static GstStaticPadTemplate theora_parse_src_factory = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS ("video/x-theora") ); enum { PROP_0, PROP_SYNCHRONIZATION_POINTS };
#ifdef HAVE_CONFIG_H #include "config.h" #endif #include "gstbz2dec.h" #include <gst/base/gsttypefindhelper.h> #include <bzlib.h> #include <string.h> GST_DEBUG_CATEGORY_STATIC (bz2dec_debug); #define GST_CAT_DEFAULT bz2dec_debug static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS ("application/x-bzip")); static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS_ANY); struct _GstBz2dec { GstElement parent; GstPad *sink; GstPad *src; /* Properties */ guint first_buffer_size; guint buffer_size;
PROP_DROP_UNTIL_INTRA, PROP_RETRY_INTERVAL, NUM_PROPERTIES }; static GParamSpec *obj_properties[NUM_PROPERTIES] = {NULL, }; /* pad templates */ static GstStaticPadTemplate gst_videorepair_sink_template = GST_STATIC_PAD_TEMPLATE("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS("video/x-h264; video/x-vp8") ); static GstStaticPadTemplate gst_videorepair_src_template = GST_STATIC_PAD_TEMPLATE("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS("video/x-h264; video/x-vp8") ); /* class initialization */ #define gst_videorepair_parent_class parent_class G_DEFINE_TYPE_WITH_CODE(GstVideoRepair, gst_videorepair, GST_TYPE_ELEMENT, GST_DEBUG_CATEGORY_INIT(gst_videorepair_debug_category, "videorepair", 0,
mark_point (); g_main_loop_run (loop); mark_point (); GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS (GST_BIN (pipeline), GST_DEBUG_GRAPH_SHOW_ALL, "test_sendonly_end"); gst_element_set_state (pipeline, GST_STATE_NULL); g_object_unref (pipeline); g_slice_free (HandOffData, hod); } /* VP8 tests */ static GstStaticCaps vp8_expected_caps = GST_STATIC_CAPS ("video/x-vp8"); static const gchar *pattern_sdp_vp8_sendonly_str = "v=0\r\n" "o=- 0 0 IN IP4 0.0.0.0\r\n" "s=TestSession\r\n" "c=IN IP4 0.0.0.0\r\n" "t=0 0\r\n" "m=video 0 RTP/AVP 96\r\n" "a=rtpmap:96 VP8/90000\r\n" "a=sendonly\r\n"; static const gchar *pattern_sdp_vp8_recvonly_str = "v=0\r\n" "o=- 0 0 IN IP4 0.0.0.0\r\n" "s=TestSession\r\n" "c=IN IP4 0.0.0.0\r\n" "t=0 0\r\n" "m=video 0 RTP/AVP 96\r\n" "a=rtpmap:96 VP8/90000\r\n" "a=recvonly\r\n";
#ifdef HAVE_CONFIG_H # include "config.h" #endif #include "gstkate.h" #include "gstkateutil.h" #include "gstkateparse.h" GST_DEBUG_CATEGORY_EXTERN (gst_kateparse_debug); #define GST_CAT_DEFAULT gst_kateparse_debug static GstStaticPadTemplate gst_kate_parse_sink_factory = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS ("subtitle/x-kate; application/x-kate") ); static GstStaticPadTemplate gst_kate_parse_src_factory = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS ("subtitle/x-kate; application/x-kate") ); #define gst_kate_parse_parent_class parent_class G_DEFINE_TYPE (GstKateParse, gst_kate_parse, GST_TYPE_ELEMENT); static GstFlowReturn gst_kate_parse_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer); static GstStateChangeReturn gst_kate_parse_change_state (GstElement * element,
GST_DEBUG_CATEGORY_STATIC (gdkpixbufdec_debug); #define GST_CAT_DEFAULT gdkpixbufdec_debug static GstStaticPadTemplate gst_gdk_pixbuf_dec_sink_template = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS ("image/png; " /* "image/jpeg; " disabled because we can't handle MJPEG */ "image/gif; " "image/x-icon; " "application/x-navi-animation; " "image/x-cmu-raster; " "image/x-sun-raster; " "image/x-pixmap; " "image/tiff; " "image/x-portable-anymap; " "image/x-portable-bitmap; " "image/x-portable-graymap; " "image/x-portable-pixmap; " "image/bmp; " "image/x-bmp; " "image/x-MS-bmp; " "image/vnd.wap.wbmp; " "image/x-bitmap; " "image/x-tga; " "image/x-pcx; image/svg; image/svg+xml") ); static GstStaticPadTemplate gst_gdk_pixbuf_dec_src_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE ("RGB") "; "
if (!fragmentation_mode_type) { fragmentation_mode_type = g_enum_register_static ("GstFragmentationMode", fragmentation_mode); } return fragmentation_mode_type; } GST_DEBUG_CATEGORY_STATIC (rtph263ppay_debug); #define GST_CAT_DEFAULT rtph263ppay_debug static GstStaticPadTemplate gst_rtp_h263p_pay_sink_template = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS ("video/x-h263, " "variant = (string) \"itu\" ") ); static GstStaticPadTemplate gst_rtp_h263p_pay_src_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS ("application/x-rtp, " "media = (string) \"video\", " "payload = (int) " GST_RTP_PAYLOAD_DYNAMIC_STRING ", " "clock-rate = (int) 90000, " "encoding-name = (string) \"H263-1998\"; " "application/x-rtp, " "media = (string) \"video\", " "payload = (int) " GST_RTP_PAYLOAD_DYNAMIC_STRING ", " "clock-rate = (int) 90000, " "encoding-name = (string) \"H263-2000\"") );
{ GstElementClass parent_class; VisPluginRef *plugin; }; GType gst_visual_get_type (void); static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS (GST_VIDEO_CAPS_xRGB_HOST_ENDIAN "; " #if G_BYTE_ORDER == G_BIG_ENDIAN GST_VIDEO_CAPS_RGB "; " #else GST_VIDEO_CAPS_BGR "; " #endif GST_VIDEO_CAPS_RGB_16) ); 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, " "endianness = (int) BYTE_ORDER, " "signed = (boolean) TRUE, " "channels = (int) { 1, 2 }, " #if defined(VISUAL_API_VERSION) && VISUAL_API_VERSION >= 4000 && VISUAL_API_VERSION < 5000 "rate = (int) { 8000, 11250, 22500, 32000, 44100, 48000, 96000 }"