| 1 | // Generated by gmmproc 2.50.1 -- DO NOT MODIFY! |
| 2 | #ifndef _GSTREAMERMM_IDENTITY_H |
| 3 | #define _GSTREAMERMM_IDENTITY_H |
| 4 | |
| 5 | #include <gstreamermmconfig.h> |
| 6 | |
| 7 | #ifndef GSTREAMERMM_DISABLE_DEPRECATED |
| 8 | |
| 9 | |
| 10 | #include <glibmm/ustring.h> |
| 11 | #include <sigc++/sigc++.h> |
| 12 | |
| 13 | // Generated by generate_plugin_gmmproc_file. Don't edit this file. |
| 14 | |
| 15 | |
| 16 | #include <gstreamermm/basetransform.h> |
| 17 | #include <gstreamermm/buffer.h> |
| 18 | #include <gstreamermm/buffer.h> |
| 19 | |
| 20 | |
| 21 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 22 | using GstIdentity = struct _GstIdentity; |
| 23 | using GstIdentityClass = struct _GstIdentityClass; |
| 24 | #endif /* DOXYGEN_SHOULD_SKIP_THIS */ |
| 25 | |
| 26 | |
| 27 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 28 | namespace Gst |
| 29 | { class Identity_Class; } // namespace Gst |
| 30 | #endif //DOXYGEN_SHOULD_SKIP_THIS |
| 31 | |
| 32 | namespace Gst |
| 33 | { |
| 34 | |
| 35 | /** A Wrapper for the identity plugin. |
| 36 | * Please note that not all plug-ins are available on all systems so care |
| 37 | * must be taken that they exist before they are used otherwise there will |
| 38 | * be errors and possibly a crash. |
| 39 | * |
| 40 | * @ingroup GstPlugins |
| 41 | * @deprecated Plugins API is deprecated, and should not be used in a new code. |
| 42 | */ |
| 43 | |
| 44 | class Identity |
| 45 | : public Gst::BaseTransform |
| 46 | { |
| 47 | |
| 48 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 49 | |
| 50 | public: |
| 51 | using CppObjectType = Identity; |
| 52 | using CppClassType = Identity_Class; |
| 53 | using BaseObjectType = GstIdentity; |
| 54 | using BaseClassType = GstIdentityClass; |
| 55 | |
| 56 | // noncopyable |
| 57 | Identity(const Identity&) = delete; |
| 58 | Identity& operator=(const Identity&) = delete; |
| 59 | |
| 60 | private: friend class Identity_Class; |
| 61 | static CppClassType identity_class_; |
| 62 | |
| 63 | protected: |
| 64 | explicit Identity(const Glib::ConstructParams& construct_params); |
| 65 | explicit Identity(GstIdentity* castitem); |
| 66 | |
| 67 | #endif /* DOXYGEN_SHOULD_SKIP_THIS */ |
| 68 | |
| 69 | public: |
| 70 | |
| 71 | Identity(Identity&& src) noexcept; |
| 72 | Identity& operator=(Identity&& src) noexcept; |
| 73 | |
| 74 | ~Identity() noexcept override; |
| 75 | |
| 76 | /** Get the GType for this class, for use with the underlying GObject type system. |
| 77 | */ |
| 78 | static GType get_type() G_GNUC_CONST; |
| 79 | |
| 80 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 81 | |
| 82 | |
| 83 | static GType get_base_type() G_GNUC_CONST; |
| 84 | #endif |
| 85 | |
| 86 | ///Provides access to the underlying C GObject. |
| 87 | GstIdentity* gobj() { return reinterpret_cast<GstIdentity*>(gobject_); } |
| 88 | |
| 89 | ///Provides access to the underlying C GObject. |
| 90 | const GstIdentity* gobj() const { return reinterpret_cast<GstIdentity*>(gobject_); } |
| 91 | |
| 92 | ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. |
| 93 | GstIdentity* gobj_copy(); |
| 94 | |
| 95 | private: |
| 96 | |
| 97 | |
| 98 | protected: |
| 99 | Identity(); |
| 100 | explicit Identity(const Glib::ustring& name); |
| 101 | |
| 102 | public: |
| 103 | /** Creates a new identity plugin with a unique name. |
| 104 | */ |
| 105 | |
| 106 | static Glib::RefPtr<Identity> create(); |
| 107 | |
| 108 | |
| 109 | /** Creates a new identity plugin with the given name. |
| 110 | */ |
| 111 | |
| 112 | static Glib::RefPtr<Identity> create(const Glib::ustring& name); |
| 113 | |
| 114 | |
| 115 | /** Microseconds to sleep between processing. |
| 116 | * |
| 117 | * @return A PropertyProxy that allows you to get or set the value of the property, |
| 118 | * or receive notification when the value of the property changes. |
| 119 | */ |
| 120 | Glib::PropertyProxy< guint > property_sleep_time() ; |
| 121 | |
| 122 | /** Microseconds to sleep between processing. |
| 123 | * |
| 124 | * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, |
| 125 | * or receive notification when the value of the property changes. |
| 126 | */ |
| 127 | Glib::PropertyProxy_ReadOnly< guint > property_sleep_time() const; |
| 128 | |
| 129 | /** Error after N buffers. |
| 130 | * |
| 131 | * @return A PropertyProxy that allows you to get or set the value of the property, |
| 132 | * or receive notification when the value of the property changes. |
| 133 | */ |
| 134 | Glib::PropertyProxy< int > property_error_after() ; |
| 135 | |
| 136 | /** Error after N buffers. |
| 137 | * |
| 138 | * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, |
| 139 | * or receive notification when the value of the property changes. |
| 140 | */ |
| 141 | Glib::PropertyProxy_ReadOnly< int > property_error_after() const; |
| 142 | |
| 143 | /** The Probability a buffer is dropped. |
| 144 | * |
| 145 | * @return A PropertyProxy that allows you to get or set the value of the property, |
| 146 | * or receive notification when the value of the property changes. |
| 147 | */ |
| 148 | Glib::PropertyProxy< float > property_drop_probability() ; |
| 149 | |
| 150 | /** The Probability a buffer is dropped. |
| 151 | * |
| 152 | * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, |
| 153 | * or receive notification when the value of the property changes. |
| 154 | */ |
| 155 | Glib::PropertyProxy_ReadOnly< float > property_drop_probability() const; |
| 156 | |
| 157 | /** Drop buffers with the given flags. |
| 158 | * |
| 159 | * @return A PropertyProxy that allows you to get or set the value of the property, |
| 160 | * or receive notification when the value of the property changes. |
| 161 | */ |
| 162 | Glib::PropertyProxy< Gst::BufferFlags > property_drop_buffer_flags() ; |
| 163 | |
| 164 | /** Drop buffers with the given flags. |
| 165 | * |
| 166 | * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, |
| 167 | * or receive notification when the value of the property changes. |
| 168 | */ |
| 169 | Glib::PropertyProxy_ReadOnly< Gst::BufferFlags > property_drop_buffer_flags() const; |
| 170 | |
| 171 | /** (Re)timestamps buffers with number of bytes per second (0 = inactive). |
| 172 | * |
| 173 | * @return A PropertyProxy that allows you to get or set the value of the property, |
| 174 | * or receive notification when the value of the property changes. |
| 175 | */ |
| 176 | Glib::PropertyProxy< int > property_datarate() ; |
| 177 | |
| 178 | /** (Re)timestamps buffers with number of bytes per second (0 = inactive). |
| 179 | * |
| 180 | * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, |
| 181 | * or receive notification when the value of the property changes. |
| 182 | */ |
| 183 | Glib::PropertyProxy_ReadOnly< int > property_datarate() const; |
| 184 | |
| 185 | /** silent. |
| 186 | * |
| 187 | * @return A PropertyProxy that allows you to get or set the value of the property, |
| 188 | * or receive notification when the value of the property changes. |
| 189 | */ |
| 190 | Glib::PropertyProxy< bool > property_silent() ; |
| 191 | |
| 192 | /** silent. |
| 193 | * |
| 194 | * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, |
| 195 | * or receive notification when the value of the property changes. |
| 196 | */ |
| 197 | Glib::PropertyProxy_ReadOnly< bool > property_silent() const; |
| 198 | |
| 199 | /** Timestamp buffers and eat segments so as to appear as one segment. |
| 200 | * |
| 201 | * @return A PropertyProxy that allows you to get or set the value of the property, |
| 202 | * or receive notification when the value of the property changes. |
| 203 | */ |
| 204 | Glib::PropertyProxy< bool > property_single_segment() ; |
| 205 | |
| 206 | /** Timestamp buffers and eat segments so as to appear as one segment. |
| 207 | * |
| 208 | * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, |
| 209 | * or receive notification when the value of the property changes. |
| 210 | */ |
| 211 | Glib::PropertyProxy_ReadOnly< bool > property_single_segment() const; |
| 212 | |
| 213 | /** last-message. |
| 214 | * |
| 215 | * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, |
| 216 | * or receive notification when the value of the property changes. |
| 217 | */ |
| 218 | Glib::PropertyProxy_ReadOnly< Glib::ustring > property_last_message() const; |
| 219 | |
| 220 | |
| 221 | /** Dump buffer contents to stdout. |
| 222 | * |
| 223 | * @return A PropertyProxy that allows you to get or set the value of the property, |
| 224 | * or receive notification when the value of the property changes. |
| 225 | */ |
| 226 | Glib::PropertyProxy< bool > property_dump() ; |
| 227 | |
| 228 | /** Dump buffer contents to stdout. |
| 229 | * |
| 230 | * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, |
| 231 | * or receive notification when the value of the property changes. |
| 232 | */ |
| 233 | Glib::PropertyProxy_ReadOnly< bool > property_dump() const; |
| 234 | |
| 235 | /** Synchronize to pipeline clock. |
| 236 | * |
| 237 | * @return A PropertyProxy that allows you to get or set the value of the property, |
| 238 | * or receive notification when the value of the property changes. |
| 239 | */ |
| 240 | Glib::PropertyProxy< bool > property_sync() ; |
| 241 | |
| 242 | /** Synchronize to pipeline clock. |
| 243 | * |
| 244 | * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, |
| 245 | * or receive notification when the value of the property changes. |
| 246 | */ |
| 247 | Glib::PropertyProxy_ReadOnly< bool > property_sync() const; |
| 248 | |
| 249 | /** Send element messages if timestamps and durations do not match up. |
| 250 | * |
| 251 | * @return A PropertyProxy that allows you to get or set the value of the property, |
| 252 | * or receive notification when the value of the property changes. |
| 253 | */ |
| 254 | Glib::PropertyProxy< bool > property_check_imperfect_timestamp() ; |
| 255 | |
| 256 | /** Send element messages if timestamps and durations do not match up. |
| 257 | * |
| 258 | * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, |
| 259 | * or receive notification when the value of the property changes. |
| 260 | */ |
| 261 | Glib::PropertyProxy_ReadOnly< bool > property_check_imperfect_timestamp() const; |
| 262 | |
| 263 | /** Send element messages if offset and offset_end do not match up. |
| 264 | * |
| 265 | * @return A PropertyProxy that allows you to get or set the value of the property, |
| 266 | * or receive notification when the value of the property changes. |
| 267 | */ |
| 268 | Glib::PropertyProxy< bool > property_check_imperfect_offset() ; |
| 269 | |
| 270 | /** Send element messages if offset and offset_end do not match up. |
| 271 | * |
| 272 | * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, |
| 273 | * or receive notification when the value of the property changes. |
| 274 | */ |
| 275 | Glib::PropertyProxy_ReadOnly< bool > property_check_imperfect_offset() const; |
| 276 | |
| 277 | /** Send a signal before pushing the buffer. |
| 278 | * |
| 279 | * @return A PropertyProxy that allows you to get or set the value of the property, |
| 280 | * or receive notification when the value of the property changes. |
| 281 | */ |
| 282 | Glib::PropertyProxy< bool > property_signal_handoffs() ; |
| 283 | |
| 284 | /** Send a signal before pushing the buffer. |
| 285 | * |
| 286 | * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, |
| 287 | * or receive notification when the value of the property changes. |
| 288 | */ |
| 289 | Glib::PropertyProxy_ReadOnly< bool > property_signal_handoffs() const; |
| 290 | |
| 291 | |
| 292 | /** |
| 293 | * @par Slot Prototype: |
| 294 | * <tt>void on_my_%handoff(const Glib::RefPtr<Gst::Buffer>& arg0)</tt> |
| 295 | * |
| 296 | */ |
| 297 | |
| 298 | Glib::SignalProxy< void,const Glib::RefPtr<Gst::Buffer>& > signal_handoff(); |
| 299 | |
| 300 | |
| 301 | public: |
| 302 | |
| 303 | public: |
| 304 | //C++ methods used to invoke GTK+ virtual functions: |
| 305 | |
| 306 | protected: |
| 307 | //GTK+ Virtual Functions (override these to change behaviour): |
| 308 | |
| 309 | //Default Signal Handlers:: |
| 310 | |
| 311 | |
| 312 | }; |
| 313 | |
| 314 | } // namespace Gst |
| 315 | |
| 316 | |
| 317 | namespace Glib |
| 318 | { |
| 319 | /** A Glib::wrap() method for this object. |
| 320 | * |
| 321 | * @param object The C instance. |
| 322 | * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref. |
| 323 | * @result A C++ instance that wraps this C instance. |
| 324 | * |
| 325 | * @relates Gst::Identity |
| 326 | */ |
| 327 | Glib::RefPtr<Gst::Identity> wrap(GstIdentity* object, bool take_copy = false); |
| 328 | } |
| 329 | |
| 330 | |
| 331 | #endif // GSTREAMERMM_DISABLE_DEPRECATED |
| 332 | |
| 333 | |
| 334 | #endif /* _GSTREAMERMM_IDENTITY_H */ |
| 335 |