gmyth-stream/gmencoder/src/gmencoder.h
author renatofilho
Tue Jan 29 18:40:18 2008 +0000 (2008-01-29)
branchtrunk
changeset 895 4bdd0f922b68
parent 777 4127375c2a03
child 898 4fbbacbbca34
permissions -rw-r--r--
[svn r901] fixed var names
     1 #ifndef __G_MENCODER_H__
     2 #define __G_MENCODER_H__
     3 
     4 #include <glib-object.h>
     5 
     6 G_BEGIN_DECLS typedef struct _GMencoder GMencoder;
     7 typedef struct _GMencoderClass GMencoderClass;
     8 
     9 struct _GMencoderClass {
    10     GObjectClass    parent_class;
    11 };
    12 
    13 struct _GMencoder {
    14     GObject         parent;
    15 };
    16 
    17 /*
    18  * TYPE MACROS 
    19  */
    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 
    37 gboolean        g_mencoder_setup_stream(GMencoder * self,
    38 					gboolean chunked,
    39 					gboolean deinterlace,
    40                                         const gchar * mux_name,
    41                                         const gchar * video_encode,
    42                                         gchar ** video_encode_prop,
    43                                         gdouble video_fps,
    44                                         gdouble video_rate,
    45                                         guint video_width,
    46                                         guint video_height,
    47                                         const gchar * audio_encode,
    48                                         gchar ** audio_encode_prop,
    49                                         guint audio_rate,
    50                                         const gchar * output_uri);
    51 
    52 gboolean        g_mencoder_append_uri(GMencoder * self, const gchar * uri);
    53 
    54 void            g_mencoder_remove_uri(GMencoder * self, const gchar * uri);
    55 
    56 void            g_mencoder_play_stream(GMencoder * self);
    57 void            g_mencoder_pause_stream(GMencoder * self);
    58 void            g_mencoder_close_stream(GMencoder * self);
    59 
    60 G_END_DECLS
    61 #endif