1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/gmyth-stream/gmemcoder/src/gmencoder.h Wed Apr 25 15:53:19 2007 +0100
1.3 @@ -0,0 +1,55 @@
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 + const gchar* video_encode,
1.42 + gchar** video_encode_prop,
1.43 + gdouble video_fps,
1.44 + gdouble video_rate,
1.45 + guint video_width,
1.46 + guint video_height,
1.47 + const gchar* audio_encode,
1.48 + gchar** audio_encode_prop,
1.49 + guint audio_rate,
1.50 + const gchar* output_element,
1.51 + gchar** output_prop);
1.52 +gboolean g_mencoder_play_stream (GMencoder *self);
1.53 +gboolean g_mencoder_pause_stream (GMencoder *self);
1.54 +void g_mencoder_close_stream (GMencoder *self);
1.55 +
1.56 +G_END_DECLS
1.57 +
1.58 +#endif