| 1 |
// Generated by generate_plugin_gmmproc_file. Don't edit this file. |
| 2 |
|
| 3 |
|
| 4 |
#include <gstreamermm/basesrc.h> |
| 5 |
#include <gstreamermm/caps.h> |
| 6 |
#include <gstreamermm/format.h> |
| 7 |
#include <gstreamermm/pad.h> |
| 8 |
#include <gstreamermm/buffer.h> |
| 9 |
#include <gstreamermm/sample.h> |
| 10 |
#include <gstreamermm/urihandler.h> |
| 11 |
_DEFS(gstreamermm,gst) |
| 12 |
|
| 13 |
_CONFIGINCLUDE(gstreamermmconfig.h) |
| 14 |
_IS_DEPRECATED |
| 15 |
|
| 16 |
// Plug-in C enums used in signals: |
| 17 |
namespace Gst |
| 18 |
{ |
| 19 |
|
| 20 |
_WRAP_ENUM(AppStreamType,GstAppStreamType) |
| 21 |
_CONV_ENUM(Gst,AppStreamType) |
| 22 |
|
| 23 |
/** A Wrapper for the appsrc plugin. |
| 24 |
* Please note that not all plug-ins are available on all systems so care |
| 25 |
* must be taken that they exist before they are used otherwise there will |
| 26 |
* be errors and possibly a crash. |
| 27 |
* |
| 28 |
* @ingroup GstPlugins |
| 29 |
* @deprecated Plugins API is deprecated, and should not be used in a new code. |
| 30 |
*/ |
| 31 |
class AppSrc |
| 32 |
: public Gst::BaseSrc, public Gst::URIHandler |
| 33 |
{ |
| 34 |
_CLASS_GOBJECT(AppSrc, GstAppSrc, GST_APP_SRC_GSTREAMERMM, Gst::BaseSrc, GstBaseSrc) |
| 35 |
_IMPLEMENTS_INTERFACE(Gst::URIHandler) |
| 36 |
|
| 37 |
_IS_GSTREAMERMM_PLUGIN |
| 38 |
protected: |
| 39 |
AppSrc(); |
| 40 |
explicit AppSrc(const Glib::ustring& name); |
| 41 |
|
| 42 |
public: |
| 43 |
/** Creates a new appsrc plugin with a unique name. |
| 44 |
*/ |
| 45 |
_WRAP_CREATE() |
| 46 |
|
| 47 |
/** Creates a new appsrc plugin with the given name. |
| 48 |
*/ |
| 49 |
_WRAP_CREATE(const Glib::ustring& name) |
| 50 |
|
| 51 |
/** This is a convenience method for the action signal |
| 52 |
* signal_push_buffer(). |
| 53 |
*/ |
| 54 |
Gst::FlowReturn push_buffer(const Glib::RefPtr<Gst::Buffer>& arg0); |
| 55 |
|
| 56 |
/** This is a convenience method for the action signal |
| 57 |
* signal_push_sample(). |
| 58 |
*/ |
| 59 |
Gst::FlowReturn push_sample(const Glib::RefPtr<Gst::Sample>& arg0); |
| 60 |
|
| 61 |
/** This is a convenience method for the action signal |
| 62 |
* signal_end_of_stream(). |
| 63 |
*/ |
| 64 |
Gst::FlowReturn end_of_stream(); |
| 65 |
|
| 66 |
|
| 67 |
_WRAP_PROPERTY("caps", Glib::RefPtr<Gst::Caps>) |
| 68 |
_WRAP_PROPERTY("size", gint64) |
| 69 |
_WRAP_PROPERTY("stream-type", Gst::AppStreamType) |
| 70 |
_WRAP_PROPERTY("max-bytes", guint64) |
| 71 |
_WRAP_PROPERTY("format", Gst::Format) |
| 72 |
_WRAP_PROPERTY("block", bool) |
| 73 |
_WRAP_PROPERTY("is-live", bool) |
| 74 |
_WRAP_PROPERTY("min-latency", gint64) |
| 75 |
_WRAP_PROPERTY("max-latency", gint64) |
| 76 |
_WRAP_PROPERTY("emit-signals", bool) |
| 77 |
_WRAP_PROPERTY("min-percent", guint) |
| 78 |
_WRAP_PROPERTY("current-level-bytes", guint64) |
| 79 |
_WRAP_PROPERTY("duration", guint64) |
| 80 |
|
| 81 |
_WRAP_SIGNAL(void need_data(guint arg0), "need-data", no_default_handler) |
| 82 |
_WRAP_SIGNAL(void enough_data(), "enough-data", no_default_handler) |
| 83 |
_WRAP_SIGNAL(bool seek_data(guint64 arg0), "seek-data", no_default_handler) |
| 84 |
|
| 85 |
#m4 _CONVERSION(`GstBuffer*', `const Glib::RefPtr<Gst::Buffer>&', `Glib::wrap($3, true)') |
| 86 |
/** This is an action signal which is designed to be used as a method. To |
| 87 |
* do that, use its convenience method, push_buffer(). |
| 88 |
*/ |
| 89 |
_WRAP_SIGNAL(Gst::FlowReturn push_buffer(const Glib::RefPtr<Gst::Buffer>& arg0), "push-buffer", no_default_handler) |
| 90 |
|
| 91 |
|
| 92 |
#m4 _CONVERSION(`GstSample*', `const Glib::RefPtr<Gst::Sample>&', `Glib::wrap($3, true)') |
| 93 |
/** This is an action signal which is designed to be used as a method. To |
| 94 |
* do that, use its convenience method, push_sample(). |
| 95 |
*/ |
| 96 |
_WRAP_SIGNAL(Gst::FlowReturn push_sample(const Glib::RefPtr<Gst::Sample>& arg0), "push-sample", no_default_handler) |
| 97 |
|
| 98 |
|
| 99 |
/** This is an action signal which is designed to be used as a method. To |
| 100 |
* do that, use its convenience method, end_of_stream(). |
| 101 |
*/ |
| 102 |
_WRAP_SIGNAL(Gst::FlowReturn end_of_stream(), "end-of-stream", no_default_handler) |
| 103 |
|
| 104 |
}; |
| 105 |
|
| 106 |
} // namespace Gst |