gmyth-stream/gmemcoder/src/gmencoder.h
author morphbr
Thu May 17 14:07:27 2007 +0100 (2007-05-17)
branchtrunk
changeset 682 367d791aeb57
parent 600 7da2a5e32fa6
child 748 bf9dac4bdc5d
permissions -rw-r--r--
[svn r688] * GMyth-Streamer
- Bug in server_status (list more than one transcode)
     1 #ifndef __G_MENCODER_H__
     2 #define __G_MENCODER_H__
     3 
     4 #include <glib-object.h>
     5 
     6 G_BEGIN_DECLS
     7 
     8 typedef struct _GMencoder GMencoder;
     9 typedef struct _GMencoderClass GMencoderClass;
    10 
    11 struct _GMencoderClass {
    12 	GObjectClass parent_class;
    13 };
    14 
    15 struct _GMencoder {
    16 	GObject parent;
    17 };
    18 
    19 /* TYPE MACROS */
    20 #define G_TYPE_MENCODER \
    21   (g_mencoder_get_type())
    22 #define G_MENCODER(obj) \
    23   (G_TYPE_CHECK_INSTANCE_CAST((obj), G_TYPE_MENCODER, GMencoder))
    24 #define G_MENCODER_CLASS(klass) \
    25   (G_TYPE_CHECK_CLASS_CAST((klass), G_TYPE_MENCODER, GMencoderClass))
    26 #define G_IS_MENCODER(obj) \
    27   (G_TYPE_CHECK_INSTANCE_TYPE((obj), G_TYPE_MENCODER))
    28 #define G_IS_MENCODER_CLASS(klass) \
    29   (G_TYPE_CHECK_CLASS_TYPE((klass), G_TYPE_MENCODER))
    30 #define G_MENCODER_GET_CLASS(obj) \
    31   (G_TYPE_INSTANCE_GET_CLASS ((obj), G_TYPE_MENCODER, GMencoderClass))
    32 
    33 
    34 GType 		g_mencoder_get_type 	 	(void);
    35 GMencoder*  g_mencoder_new              (void);
    36 void        g_mencoder_setup_stream     (GMencoder *self, 
    37                                          const gchar* mux_name,
    38                                          const gchar* video_encode,
    39                                          gchar** video_encode_prop,
    40                                          gdouble video_fps,
    41                                          gdouble video_rate,
    42                                          guint video_width, 
    43                                          guint video_height,
    44                                          const gchar* audio_encode,
    45                                          gchar** audio_encode_prop,
    46                                          guint audio_rate,
    47                                          const gchar* output_uri);
    48 gboolean    g_mencoder_append_uri       (GMencoder *self,
    49                                          const gchar* uri);
    50 void        g_mencoder_remove_uri       (GMencoder *self,
    51                                          const gchar* uri);
    52 void     	g_mencoder_play_stream      (GMencoder *self);
    53 void    	g_mencoder_pause_stream 	(GMencoder *self);
    54 void        g_mencoder_close_stream 	(GMencoder *self);
    55 
    56 G_END_DECLS
    57 
    58 #endif