Random work from the last mounth...
[dictix.git] / libdictix / dix-transcoder.h
blob45ffc4386c0449f3633901a7351415833e555e5d
1 /**
2 * Dictix / DixTranscoder - dix-transcoder.h
4 * Copyright (C) Martin Blanchard 2011 <tinram@gmx.fr>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
22 #ifndef __DIX_TRANSCODER_H__
23 #define __DIX_TRANSCODER_H__
25 #include <glib.h>
26 #include <glib-object.h>
27 #include <gst/gst.h>
29 G_BEGIN_DECLS
31 #define DIX_TYPE_TRANSCODER (dix_transcoder_get_type ())
32 #define DIX_TRANSCODER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DIX_TYPE_TRANSCODER, DixTranscoder))
33 #define DIX_TRANSCODER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DIX_TYPE_TRANSCODER, DixTranscoderClass))
34 #define DIX_IS_TRANSCODER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DIX_TYPE_TRANSCODER))
35 #define DIX_IS_TRANSCODER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DIX_TYPE_TRANSCODER))
36 #define DIX_TRANSCODER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DIX_TYPE_TRANSCODER, DixTranscoderClass))
38 typedef struct _DixTranscoder DixTranscoder;
39 typedef struct _DixTranscoderClass DixTranscoderClass;
40 typedef struct _DixTranscoderPrivate DixTranscoderPrivate;
42 struct _DixTranscoder
44 GstPipeline parent;
46 /* < private > */
47 DixTranscoderPrivate *priv;
50 struct _DixTranscoderClass
52 GstPipelineClass parent_class;
54 /* < signals > */
57 GType dix_transcoder_get_type (void) G_GNUC_CONST;
58 DixTranscoder* dix_transcoder_new ();
60 void dix_transcoder_pre_load (DixTranscoder *transcoder, gchar *uri);
61 void dix_transcoder_transcode (DixTranscoder *transcoder, gchar *uri);
63 G_END_DECLS
65 #endif /* __DIX_TRANSCODER_H__ */