/* * Copyright (C) 2007-2009 Nokia Corporation. * * Author: Felipe Contreras * * 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 #include 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 (*GstOmxBaseSinkCb) (GstOmxBaseSink * self); #include struct GstOmxBaseSink { GstBaseSink element; GstPad *sinkpad; GOmxCore *gomx; GOmxPort *in_port; gboolean ready; GstPadActivateModeFunction base_activatepush; gboolean initialized; }; struct GstOmxBaseSinkClass { GstBaseSinkClass parent_class; }; GType gst_omx_base_sink_get_type (void); G_END_DECLS #endif /* GSTOMX_BASE_SINK_H */