1 /* Generic video aggregator plugin
2 * Copyright (C) 2008 Wim Taymans <wim@fluendo.com>
3 * Copyright (C) 2010 Sebastian Dröge <sebastian.droege@collabora.co.uk>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
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 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
21 #ifndef __GST_VIDEO_AGGREGATOR_PAD_H__
22 #define __GST_VIDEO_AGGREGATOR_PAD_H__
25 #include <gst/video/video.h>
27 #include <gst/base/gstaggregator.h>
29 #include "videoconvert.h"
33 #define GST_TYPE_VIDEO_AGGREGATOR_PAD (gst_videoaggregator_pad_get_type())
34 #define GST_VIDEO_AGGREGATOR_PAD(obj) \
35 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VIDEO_AGGREGATOR_PAD, GstVideoAggregatorPad))
36 #define GST_VIDEO_AGGREGATOR_PAD_CLASS(klass) \
37 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_COMPOSITOR_PAD, GstVideoAggregatorPadClass))
38 #define GST_IS_VIDEO_AGGREGATOR_PAD(obj) \
39 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VIDEO_AGGREGATOR_PAD))
40 #define GST_IS_VIDEO_AGGREGATOR_PAD_CLASS(klass) \
41 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VIDEO_AGGREGATOR_PAD))
43 typedef struct _GstVideoAggregatorPad GstVideoAggregatorPad;
44 typedef struct _GstVideoAggregatorPadClass GstVideoAggregatorPadClass;
45 typedef struct _GstVideoAggregatorCollect GstVideoAggregatorCollect;
48 * GstVideoAggregatorPad:
50 * The opaque #GstVideoAggregatorPad structure.
52 struct _GstVideoAggregatorPad
54 GstAggregatorPad parent;
64 /* caps used for conversion if needed */
65 GstVideoInfo conversion_info;
67 /* Converter, if NULL no conversion is done */
68 VideoConvert *convert;
69 gboolean need_conversion_update;
70 GstBuffer *converted_buffer;
73 GstVideoInfo queued_vinfo;
75 GstVideoInfo buffer_vinfo;
77 GstClockTime start_time;
78 GstClockTime end_time;
79 GstVideoFrame *aggregated_frame;
82 struct _GstVideoAggregatorPadClass
84 GstAggregatorPadClass parent_class;
87 GType gst_videoaggregator_pad_get_type (void);
90 #endif /* __GST_VIDEO_AGGREGATOR_PAD_H__ */