2
// Copyright (C) 2008 Free Software Foundation, Inc.
4
// This program is free software; you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation; either version 3 of the License, or
7
// (at your option) any later version.
9
// This program is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
// GNU General Public License for more details.
13
// You should have received a copy of the GNU General Public License
14
// along with this program; if not, write to the Free Software
15
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17
// This file incorporates work covered by the following copyright and permission
21
* Copyright (C) 2007 David Schleef <ds@schleef.org>
23
* This library is free software; you can redistribute it and/or
24
* modify it under the terms of the GNU Library General Public
25
* License as published by the Free Software Foundation; either
26
* version 2 of the License, or (at your option) any later version.
28
* This library is distributed in the hope that it will be useful,
29
* but WITHOUT ANY WARRANTY; without even the implied warranty of
30
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
31
* Library General Public License for more details.
33
* You should have received a copy of the GNU Library General Public
34
* License along with this library; if not, write to the
35
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
36
* Boston, MA 02111-1307, USA.
39
#ifndef _GNASH_BUFFER_SRC_H_
40
#define _GNASH_BUFFER_SRC_H_
42
#define UNUSEDPAR(x) { x = x; }
45
#include <gst/base/gstbasesrc.h>
49
#define GST_TYPE_BUFFER_SRC \
50
(gst_buffer_src_get_type())
51
#define GST_BUFFER_SRC(obj) \
52
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_BUFFER_SRC,GstBufferSrc))
53
#define GST_BUFFER_SRC_CLASS(klass) \
54
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_BUFFER_SRC,GstBufferSrcClass))
55
#define GST_IS_BUFFER_SRC(obj) \
56
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_BUFFER_SRC))
57
#define GST_IS_BUFFER_SRC_CLASS(klass) \
58
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_BUFFER_SRC))
60
typedef struct _GstBufferSrc GstBufferSrc;
61
typedef struct _GstBufferSrcClass GstBufferSrcClass;
72
gboolean end_of_stream;
77
struct _GstBufferSrcClass
79
GstBaseSrcClass basesrc_class;
82
GType gst_buffer_src_get_type(void);
84
GST_DEBUG_CATEGORY_EXTERN (buffer_src_debug);
87
void gst_buffer_src_push_buffer_unowned (GstBufferSrc *buffersrc, GstBuffer *buffer);
88
void gst_buffer_src_set_caps (GstBufferSrc *buffersrc, GstCaps *caps);
89
void gst_buffer_src_end_of_stream (GstBufferSrc *buffersrc);
90
void gst_buffer_src_flush (GstBufferSrc * buffersrc);