本文整理汇总了C++中GST_ELEMENT_DETAILS函数的典型用法代码示例。如果您正苦于以下问题:C++ GST_ELEMENT_DETAILS函数的具体用法?C++ GST_ELEMENT_DETAILS怎么用?C++ GST_ELEMENT_DETAILS使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了GST_ELEMENT_DETAILS函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GST_DEBUG_CATEGORY_STATIC
#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 <[email protected]>");
/* PNMSrc signals and args */
enum
{
/* FILL ME */
LAST_SIGNAL
};
#define DEFAULT_LOCATION NULL
enum
{
PROP_0,
PROP_LOCATION,
示例2: GST_BOILERPLATE
#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 <[email protected]>");
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"
));
示例3: gst_auto_audio_src_change_state
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 <[email protected]>\n"
"Jan Schmidt <[email protected]>\n"
"Stefan Kost <[email protected]>");
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));
示例4: gst_auto_video_src_change_state
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 <[email protected]>\n"
"Stefan Kost <[email protected]>");
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));
示例5: gst_break_my_data_set_property
{
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 <[email protected]>");
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, \
示例6: GST_ELEMENT_DETAILS
#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 <[email protected]>");
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,
示例7: GST_STATIC_CAPS
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 <[email protected]>, "
"Matthew Allum <[email protected], "
"Chris Lord <[email protected]>");
enum
{
PROP_0,
PROP_TEXTURE,
};
typedef enum
{
CLUTTER_GST_NOFORMAT,
CLUTTER_GST_RGB32,
CLUTTER_GST_RGB24,
CLUTTER_GST_AYUV,
示例8: gst_auto_audio_sink_change_state
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 <[email protected]>");
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));
示例9: GST_DEBUG_CATEGORY_STATIC
#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 <[email protected]>");
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);
示例10: GST_ELEMENT_DETAILS
* 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 <[email protected]>");
GST_DEBUG_CATEGORY_STATIC (smokedec_debug);
#define GST_CAT_DEFAULT smokedec_debug
/* SmokeDec signals and args */
enum
{
LAST_SIGNAL
};
enum
{
PROP_0
};
示例11: GST_DEBUG_CATEGORY_STATIC
#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
};
示例12: GST_ELEMENT_DETAILS
* 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 <[email protected]>");
/* RtpiLBCDepay signals and args */
enum
{
/* FILL ME */
LAST_SIGNAL
};
#define DEFAULT_MODE GST_ILBC_MODE_30
enum
{
PROP_0,
PROP_MODE
示例13: GST_ELEMENT_DETAILS
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,
示例14: GST_ELEMENT_DETAILS
*
* 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"
)
示例15: GST_ELEMENT_DETAILS
"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 <[email protected]>");
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}, "