Debian Codegraph @

gstreamer/src/pushsrc.hg

raw
1 /* gstreamermm - a C++ wrapper for gstreamer
2 *
3 * Copyright 2008 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 #include <gst/base/gstpushsrc.h>
21 #include <gstreamermm/basesrc.h>
22
23 _DEFS(gstreamermm,gst)
24
25 namespace Gst
26 {
27 /** A base class for push based source elements.
28 * This class is mostly useful for elements that cannot do random access, or at
29 * least very slowly. The source usually prefers to push out a fixed size
30 * buffer.
31 *
32 * Subclasses usually operate in a format that is different from the default
33 * Gst::FORMAT_BYTES format of Gst::BaseSrc.
34 *
35 * Classes extending this base class will usually be scheduled in a push based
36 * mode. If the peer accepts to operate without offsets and within the limits
37 * of the allowed block size, this class can operate in getrange based mode
38 * automatically. To make this possible, the subclass should override the
39 * Gst::BaseSrc::check_get_range_vfunc() method.
40 *
41 * The subclass should extend the methods from the baseclass in addition to the
42 * GstBaseSrc::create_vfunc() method.
43 *
44 * Seeking, flushing, scheduling and sync is all handled by this base class.
45 *
46 * Last reviewed on 2006-07-04 (0.10.9).
47 *
48 * @ingroup GstBaseClasses
49 */
50 class PushSrc
51 : public BaseSrc
52 {
53 _CLASS_GOBJECT(PushSrc, GstPushSrc, GST_PUSH_SRC, BaseSrc, GstBaseSrc)
54 };
55
56 } //namespace Gst