summaryrefslogtreecommitdiff
path: root/gstreamer_ti_dm81xx/ti_build/gst-openmax/omx/gstomx_base_sink.h
blob: f6ca34487b9003a682653308aa6981ff4c44fc10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
 * Copyright (C) 2007-2009 Nokia Corporation.
 *
 * Author: Felipe Contreras <felipe.contreras@nokia.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation
 * version 2.1 of the License.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 *
 */

#ifndef GSTOMX_BASE_SINK_H
#define GSTOMX_BASE_SINK_H

#include <gst/gst.h>
#include <gst/base/gstbasesink.h>

G_BEGIN_DECLS

#define GST_OMX_BASE_SINK(obj) (GstOmxBaseSink *) (obj)
#define GST_OMX_BASE_SINK_TYPE (gst_omx_base_sink_get_type ())
#define GST_OMX_BASE_SINK_CLASS(obj) (GstOmxBaseSinkClass *) (obj)

typedef struct GstOmxBaseSink GstOmxBaseSink;
typedef struct GstOmxBaseSinkClass GstOmxBaseSinkClass;
typedef void (*GstOmxSinkCb) (GstBaseSink *self, GstCaps *caps);

#include <gstomx_util.h>

struct GstOmxBaseSink
{
    GstBaseSink element;

    GstPad *sinkpad;

    GOmxCore *gomx;
    GOmxPort *in_port;

    char *omx_role;
    char *omx_component;
    char *omx_library;

    gboolean ready;
    GstPadActivateModeFunction base_activatepush;
    gboolean initialized;
    gboolean port_initialized;
    GstOmxSinkCb omx_setup;
};

struct GstOmxBaseSinkClass
{
    GstBaseSinkClass parent_class;
};

GType gst_omx_base_sink_get_type (void);

G_END_DECLS

#endif /* GSTOMX_BASE_SINK_H */