1 /* GStreamer video re-encoder element
2 * Copyright (C) <2010> Edward Hervey <bilboed@bilboed.com>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library 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 GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
19 #ifndef __SMART_ENCODER_H__
20 #define __SMART_ENCODER_H__
26 #define GST_TYPE_SMART_ENCODER \
27 (gst_smart_encoder_get_type())
28 #define GST_SMART_ENCODER(obj) \
29 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_SMART_ENCODER,GstSmartEncoder))
30 #define GST_SMART_ENCODER_CLASS(klass) \
31 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_SMART_ENCODER,GstSmartEncoderClass))
32 #define GST_IS_SMART_ENCODER(obj) \
33 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_SMART_ENCODER))
34 #define GST_IS_SMART_ENCODER_CLASS(klass) \
35 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_SMART_ENCODER))
37 typedef struct _GstSmartEncoder GstSmartEncoder;
38 typedef struct _GstSmartEncoderClass GstSmartEncoderClass;
40 struct _GstSmartEncoder {
43 GstPad *sinkpad, *srcpad;
48 /* Pending GOP to be checked */
50 guint64 gop_start; /* GOP start in running time */
51 guint64 gop_stop; /* GOP end in running time */
53 /* Internal recoding elements */
54 GstPad *internal_sinkpad;
55 GstPad *internal_srcpad;
59 /* Available caps at runtime */
60 GstCaps *available_caps;
63 struct _GstSmartEncoderClass {
64 GstElementClass parent_class;
67 GType gst_smart_encoder_get_type(void);
71 #endif /* __SMART_ENCODER_H__ */