| 1 |
/* gstreamermm - a C++ wrapper for gstreamer |
| 2 |
* |
| 3 |
* Copyright 2013-2016 The gstreamermm Development Team |
| 4 |
* |
| 5 |
* This library is free software; you can redistribute it and/or |
| 6 |
* modify it under the terms of the GNU Lesser General Public |
| 7 |
* License as published by the Free Software Foundation; either |
| 8 |
* version 2.1 of the License, or (at your option) any later version. |
| 9 |
* |
| 10 |
* This library is distributed in the hope that it will be useful, |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 |
* Lesser General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU Lesser General Public |
| 16 |
* License along with this library; if not, write to the Free |
| 17 |
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 18 |
*/ |
| 19 |
|
| 20 |
|
| 21 |
#include <gst/gsttocsetter.h> |
| 22 |
#include <glibmm/interface.h> |
| 23 |
|
| 24 |
_DEFS(gstreamermm,gst) |
| 25 |
|
| 26 |
namespace Gst |
| 27 |
{ |
| 28 |
class Toc; |
| 29 |
|
| 30 |
/** An interface that allows setting and retrieval of the TOC. |
| 31 |
* |
| 32 |
* Elements that support some kind of chapters or editions (or tracks like in |
| 33 |
* the FLAC cue sheet) will implement this interface. |
| 34 |
* |
| 35 |
* If you just want to retrieve the TOC in your application then all you |
| 36 |
* need to do is watch for TOC messages on your pipeline's bus (or you can |
| 37 |
* perform TOC query). This interface is only for setting TOC data, not for |
| 38 |
* extracting it. To set TOC from the application, find proper tocsetter element |
| 39 |
* and set TOC using set_toc(). |
| 40 |
* |
| 41 |
* Elements implementing the Gst::TocSetter interface can extend existing TOC |
| 42 |
* by getting extend UID for that (you can use gst_toc_find_entry() to retrieve it) |
| 43 |
* with any TOC entries received from downstream. |
| 44 |
* |
| 45 |
* Last reviewed on 2016-08-27 (1.8.0) |
| 46 |
* |
| 47 |
* @ingroup GstInterfaces |
| 48 |
*/ |
| 49 |
class TocSetter : public Glib::Interface |
| 50 |
{ |
| 51 |
_CLASS_INTERFACE(TocSetter, GstTocSetter, GST_TOC_SETTER, GstTocSetterInterface) |
| 52 |
|
| 53 |
public: |
| 54 |
_WRAP_METHOD(void set_toc(const Glib::RefPtr<Gst::Toc>& toc), gst_toc_setter_set_toc) |
| 55 |
_WRAP_METHOD(Glib::RefPtr<Gst::Toc> get_toc() const, gst_toc_setter_get_toc) |
| 56 |
_WRAP_METHOD(void reset(), gst_toc_setter_reset) |
| 57 |
}; |
| 58 |
} |