00001
00002
00003 #ifndef _GSTREAMERMM_BASESRC_H
00004 #define _GSTREAMERMM_BASESRC_H
00005
00006
00007 #include <glibmm.h>
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #include <gst/base/gstbasesrc.h>
00029 #include <gstreamermm/element.h>
00030 #include <gstreamermm/pad.h>
00031 #include <gstreamermm/format.h>
00032 #include <gstreamermm/clock.h>
00033 #include <gstreamermm/segment.h>
00034
00035
00036 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00037 typedef struct _GstBaseSrc GstBaseSrc;
00038 typedef struct _GstBaseSrcClass GstBaseSrcClass;
00039 #endif
00040
00041
00042 namespace Gst
00043 { class BaseSrc_Class; }
00044 namespace Gst
00045 {
00046
00157 class BaseSrc
00158 : public Element
00159 {
00160
00161 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00162
00163 public:
00164 typedef BaseSrc CppObjectType;
00165 typedef BaseSrc_Class CppClassType;
00166 typedef GstBaseSrc BaseObjectType;
00167 typedef GstBaseSrcClass BaseClassType;
00168
00169 private: friend class BaseSrc_Class;
00170 static CppClassType basesrc_class_;
00171
00172 private:
00173
00174 BaseSrc(const BaseSrc&);
00175 BaseSrc& operator=(const BaseSrc&);
00176
00177 protected:
00178 explicit BaseSrc(const Glib::ConstructParams& construct_params);
00179 explicit BaseSrc(GstBaseSrc* castitem);
00180
00181 #endif
00182
00183 public:
00184 virtual ~BaseSrc();
00185
00186 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00187 static GType get_type() G_GNUC_CONST;
00188 static GType get_base_type() G_GNUC_CONST;
00189 #endif
00190
00192 GstBaseSrc* gobj() { return reinterpret_cast<GstBaseSrc*>(gobject_); }
00193
00195 const GstBaseSrc* gobj() const { return reinterpret_cast<GstBaseSrc*>(gobject_); }
00196
00198 GstBaseSrc* gobj_copy();
00199
00200 private:
00201
00202
00203 public:
00204
00216 FlowReturn wait_playing();
00217
00221 bool is_live() const;
00222
00233 void set_live(bool live);
00234
00244 void set_format(Format format);
00245
00259 bool query_latency(bool& live, ClockTime& min_latency, ClockTime& max_latency) const;
00260
00266 bool get_do_timestamp() const;
00267
00275 void set_do_timestamp(bool timestamp);
00276
00279 Glib::RefPtr<Gst::Pad> get_src_pad() const;
00280
00281 #ifdef GLIBMM_PROPERTIES_ENABLED
00282
00288 Glib::PropertyProxy<gulong> property_blocksize() ;
00289 #endif //#GLIBMM_PROPERTIES_ENABLED
00290
00291 #ifdef GLIBMM_PROPERTIES_ENABLED
00292
00298 Glib::PropertyProxy_ReadOnly<gulong> property_blocksize() const;
00299 #endif //#GLIBMM_PROPERTIES_ENABLED
00300
00301 #ifdef GLIBMM_PROPERTIES_ENABLED
00302
00308 Glib::PropertyProxy<bool> property_do_timestamp() ;
00309 #endif //#GLIBMM_PROPERTIES_ENABLED
00310
00311 #ifdef GLIBMM_PROPERTIES_ENABLED
00312
00318 Glib::PropertyProxy_ReadOnly<bool> property_do_timestamp() const;
00319 #endif //#GLIBMM_PROPERTIES_ENABLED
00320
00321 #ifdef GLIBMM_PROPERTIES_ENABLED
00322
00328 Glib::PropertyProxy<int> property_num_buffers() ;
00329 #endif //#GLIBMM_PROPERTIES_ENABLED
00330
00331 #ifdef GLIBMM_PROPERTIES_ENABLED
00332
00338 Glib::PropertyProxy_ReadOnly<int> property_num_buffers() const;
00339 #endif //#GLIBMM_PROPERTIES_ENABLED
00340
00341 #ifdef GLIBMM_PROPERTIES_ENABLED
00342
00348 Glib::PropertyProxy<bool> property_typefind() ;
00349 #endif //#GLIBMM_PROPERTIES_ENABLED
00350
00351 #ifdef GLIBMM_PROPERTIES_ENABLED
00352
00358 Glib::PropertyProxy_ReadOnly<bool> property_typefind() const;
00359 #endif //#GLIBMM_PROPERTIES_ENABLED
00360
00361
00362
00363
00364
00365
00366
00367
00368
00369
00370
00373 #ifdef GLIBMM_VFUNCS_ENABLED
00374 virtual Glib::RefPtr<Gst::Caps> get_caps_vfunc() const;
00375 #endif //GLIBMM_VFUNCS_ENABLED
00376
00377
00379
00380
00381
00383
00384
00385
00387
00388
00389
00391
00392
00393
00394
00396
00397
00398
00399
00403 #ifdef GLIBMM_VFUNCS_ENABLED
00404 virtual void get_times_vfunc(const Glib::RefPtr<Gst::Buffer>& buffer, ClockTime& start, ClockTime& end) const;
00405 #endif //GLIBMM_VFUNCS_ENABLED
00406
00407
00409
00410
00411
00413
00414
00415
00417
00418
00419
00420
00422
00423
00424
00425
00426
00427
00428
00430
00431
00432
00434
00435
00436
00438
00439
00440
00441
00442
00443
00444
00448 #ifdef GLIBMM_VFUNCS_ENABLED
00449 virtual void fixate_vfunc(const Glib::RefPtr<Gst::Caps>& caps);
00450 #endif //GLIBMM_VFUNCS_ENABLED
00451
00452
00454
00455
00456
00457
00459
00460
00461
00462
00463
00464
00465
00466
00467 public:
00468
00469 public:
00470
00471 #ifdef GLIBMM_VFUNCS_ENABLED
00472 #endif //GLIBMM_VFUNCS_ENABLED
00473
00474 protected:
00475
00476 #ifdef GLIBMM_VFUNCS_ENABLED
00477 #endif //GLIBMM_VFUNCS_ENABLED
00478
00479
00480 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00481 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00482
00483
00484 };
00485
00486 }
00487
00488
00489 namespace Glib
00490 {
00499 Glib::RefPtr<Gst::BaseSrc> wrap(GstBaseSrc* object, bool take_copy = false);
00500 }
00501
00502
00503 #endif
00504