2 * arch-tag: Header for gmencoder engine
4 * Copyright (C) 2007 INdT - Renato Filho <renato.filho@indt.org.br>
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
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef __G_MENCODER_H__
23 #define __G_MENCODER_H__
25 #include <glib-object.h>
27 G_BEGIN_DECLS typedef struct _GMencoder GMencoder;
28 typedef struct _GMencoderClass GMencoderClass;
30 struct _GMencoderClass {
31 GObjectClass parent_class;
41 #define G_TYPE_MENCODER \
42 (g_mencoder_get_type())
43 #define G_MENCODER(obj) \
44 (G_TYPE_CHECK_INSTANCE_CAST((obj), G_TYPE_MENCODER, GMencoder))
45 #define G_MENCODER_CLASS(klass) \
46 (G_TYPE_CHECK_CLASS_CAST((klass), G_TYPE_MENCODER, GMencoderClass))
47 #define G_IS_MENCODER(obj) \
48 (G_TYPE_CHECK_INSTANCE_TYPE((obj), G_TYPE_MENCODER))
49 #define G_IS_MENCODER_CLASS(klass) \
50 (G_TYPE_CHECK_CLASS_TYPE((klass), G_TYPE_MENCODER))
51 #define G_MENCODER_GET_CLASS(obj) \
52 (G_TYPE_INSTANCE_GET_CLASS ((obj), G_TYPE_MENCODER, GMencoderClass))
55 GType g_mencoder_get_type(void);
56 GMencoder *g_mencoder_new(void);
58 gboolean g_mencoder_setup_stream(GMencoder * self,
61 const gchar * mux_name,
62 const gchar * video_encode,
63 gchar ** video_encode_prop,
68 const gchar * audio_encode,
69 gchar ** audio_encode_prop,
71 const gchar * output_uri);
73 gboolean g_mencoder_append_uri(GMencoder * self, const gchar * uri);
75 void g_mencoder_remove_uri(GMencoder * self, const gchar * uri);
77 void g_mencoder_play_stream(GMencoder * self);
78 void g_mencoder_pause_stream(GMencoder * self);
79 void g_mencoder_close_stream(GMencoder * self);