1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/gmyth-stream/gmemcoder/src/gmemcoder.h Mon Apr 23 19:16:24 2007 +0100
1.3 @@ -0,0 +1,46 @@
1.4 +#ifndef __G_MENCODER_H__
1.5 +#define __G_MENCODER_H__
1.6 +
1.7 +#include <glib-object.h>
1.8 +
1.9 +G_BEGIN_DECLS
1.10 +
1.11 +typedef struct _GMencoder GMencoder;
1.12 +typedef struct _GMencoderClass GMencoderClass;
1.13 +
1.14 +struct _GMencoderClass {
1.15 + GObjectClass parent_class;
1.16 +};
1.17 +
1.18 +struct _GMencoder {
1.19 + GObject parent;
1.20 +};
1.21 +
1.22 +/* TYPE MACROS */
1.23 +#define G_TYPE_MENCODER \
1.24 + (g_mencoder_get_type())
1.25 +#define G_MENCODER(obj) \
1.26 + (G_TYPE_CHECK_INSTANCE_CAST((obj), G_TYPE_MENCODER, GMencoder))
1.27 +#define G_MENCODER_CLASS(klass) \
1.28 + (G_TYPE_CHECK_CLASS_CAST((klass), G_TYPE_MENCODER, GMencoderClass))
1.29 +#define G_IS_MENCODER(obj) \
1.30 + (G_TYPE_CHECK_INSTANCE_TYPE((obj), G_TYPE_MENCODER))
1.31 +#define G_IS_MENCODER_CLASS(klass) \
1.32 + (G_TYPE_CHECK_CLASS_TYPE((klass), G_TYPE_MENCODER))
1.33 +#define G_MENCODER_GET_CLASS(obj) \
1.34 + (G_TYPE_INSTANCE_GET_CLASS ((obj), G_TYPE_MENCODER, GMencoderClass))
1.35 +
1.36 +
1.37 +GType g_mencoder_get_type (void);
1.38 +GMencoder* g_mencoder_new (void);
1.39 +gboolean g_mencoder_setup_stream (GMencoder *self,
1.40 + const gchar* uri,
1.41 + guint width, guint height,
1.42 + gint out_fd);
1.43 +gboolean g_mencoder_play_stream (GMencoder *self);
1.44 +gboolean g_mencoder_pause_stream (GMencoder *self);
1.45 +void g_mencoder_close_stream (GMencoder *self);
1.46 +
1.47 +G_END_DECLS
1.48 +
1.49 +#endif