Macro qtTrIdx() replaced by tr() and QT_TRANSLATE_NOOP()
[mafwsubrenderer] / gst-plugins-base-subtitles0.10 / gst / encoding / gstsmartencoder.h
1 /* GStreamer video re-encoder element
2  * Copyright (C) <2010> Edward Hervey <bilboed@bilboed.com>
3  *
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.
8  *
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.
13  *
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., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19 #ifndef __SMART_ENCODER_H__
20 #define __SMART_ENCODER_H__
21
22 #include <gst/gst.h>
23
24 G_BEGIN_DECLS
25
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))
36
37 typedef struct _GstSmartEncoder GstSmartEncoder;
38 typedef struct _GstSmartEncoderClass GstSmartEncoderClass;
39
40 struct _GstSmartEncoder {
41   GstElement element;
42
43   GstPad *sinkpad, *srcpad;
44
45   GstSegment *segment;
46   GstEvent *newsegment;
47
48   /* Pending GOP to be checked */
49   GList *pending_gop;
50   guint64 gop_start;            /* GOP start in running time */
51   guint64 gop_stop;             /* GOP end in running time */
52
53   /* Internal recoding elements */
54   GstPad *internal_sinkpad;
55   GstPad *internal_srcpad;
56   GstElement *decoder;
57   GstElement *encoder;
58
59   /* Available caps at runtime */
60   GstCaps *available_caps;
61 };
62
63 struct _GstSmartEncoderClass {
64   GstElementClass parent_class;
65 };
66
67 GType gst_smart_encoder_get_type(void);
68
69 G_END_DECLS
70
71 #endif /* __SMART_ENCODER_H__ */