1 /* GStreamer
2  *
3  * jifmux: JPEG interchange format muxer
4  *
5  * Copyright (C) 2010 Stefan Kost <stefan.kost@nokia.com>
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the
19  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20  * Boston, MA 02110-1301, USA.
21  */
22 
23 #ifndef __GST_JFIF_MUX_H__
24 #define __GST_JFIF_MUX_H__
25 
26 #include <gst/gst.h>
27 
28 #include "gstjpegformat.h"
29 
30 G_BEGIN_DECLS
31 
32 #define GST_TYPE_JIF_MUX \
33   (gst_jif_mux_get_type())
34 #define GST_JIF_MUX(obj) \
35   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_JIF_MUX,GstJifMux))
36 #define GST_JIF_MUX_CLASS(klass) \
37   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_JIF_MUX,GstJifMuxClass))
38 #define GST_IS_JIF_MUX(obj) \
39   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_JIF_MUX))
40 #define GST_IS_JIF_MUX_CLASS(klass) \
41   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_JIF_MUX))
42 #define GST_JIF_MUX_CAST(obj) ((GstJifMux *) (obj))
43 
44 typedef struct _GstJifMux           GstJifMux;
45 typedef struct _GstJifMuxClass      GstJifMuxClass;
46 
47 struct _GstJifMux {
48   GstElement element;
49 
50   GstPad *srcpad;
51 
52   /* list of GstJifMuxMarker */
53   GList *markers;
54   guint scan_size;
55   const guint8 *scan_data;
56 };
57 
58 struct _GstJifMuxClass {
59   GstElementClass  parent_class;
60 };
61 
62 GType gst_jif_mux_get_type (void);
63 
64 G_END_DECLS
65 
66 #endif /* __GST_JFIF_MUX_H__ */
67