1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/gmyth-stream/gmencoder/src/gmencoder.h Wed Sep 26 19:04:24 2007 +0100
1.3 @@ -0,0 +1,61 @@
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 typedef struct _GMencoder GMencoder;
1.10 +typedef struct _GMencoderClass GMencoderClass;
1.11 +
1.12 +struct _GMencoderClass {
1.13 + GObjectClass parent_class;
1.14 +};
1.15 +
1.16 +struct _GMencoder {
1.17 + GObject parent;
1.18 +};
1.19 +
1.20 +/*
1.21 + * TYPE MACROS
1.22 + */
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 +
1.40 +gboolean g_mencoder_setup_stream(GMencoder * self,
1.41 + gboolean chunked,
1.42 + gboolean deinterlace,
1.43 + const gchar * mux_name,
1.44 + const gchar * video_encode,
1.45 + gchar ** video_encode_prop,
1.46 + gdouble video_fps,
1.47 + gdouble video_rate,
1.48 + guint video_width,
1.49 + guint video_height,
1.50 + const gchar * audio_encode,
1.51 + gchar ** audio_encode_prop,
1.52 + guint audio_rate,
1.53 + const gchar * output_uri);
1.54 +
1.55 +gboolean g_mencoder_append_uri(GMencoder * self, const gchar * uri);
1.56 +
1.57 +void g_mencoder_remove_uri(GMencoder * self, const gchar * uri);
1.58 +
1.59 +void g_mencoder_play_stream(GMencoder * self);
1.60 +void g_mencoder_pause_stream(GMencoder * self);
1.61 +void g_mencoder_close_stream(GMencoder * self);
1.62 +
1.63 +G_END_DECLS
1.64 +#endif