gmyth-stream/gmemcoder/src/gmemcoder.h
author melunko
Mon Apr 23 19:16:24 2007 +0100 (2007-04-23)
branchtrunk
changeset 587 747b409e4f01
permissions -rw-r--r--
[svn r593] Fixed internal reference to gmyth.h. We can not include this header in src/gmyth_* files. Also fixed gmyth_debug link error. In the current implementation we need to include gmyth_debug.h in all files using gmyth_debug(), otherwise we will get library linking error
renatofilho@586
     1
#ifndef __G_MENCODER_H__
renatofilho@586
     2
#define __G_MENCODER_H__
renatofilho@586
     3
renatofilho@586
     4
#include <glib-object.h>
renatofilho@586
     5
renatofilho@586
     6
G_BEGIN_DECLS
renatofilho@586
     7
renatofilho@586
     8
typedef struct _GMencoder GMencoder;
renatofilho@586
     9
typedef struct _GMencoderClass GMencoderClass;
renatofilho@586
    10
renatofilho@586
    11
struct _GMencoderClass {
renatofilho@586
    12
	GObjectClass parent_class;
renatofilho@586
    13
};
renatofilho@586
    14
renatofilho@586
    15
struct _GMencoder {
renatofilho@586
    16
	GObject parent;
renatofilho@586
    17
};
renatofilho@586
    18
renatofilho@586
    19
/* TYPE MACROS */
renatofilho@586
    20
#define G_TYPE_MENCODER \
renatofilho@586
    21
  (g_mencoder_get_type())
renatofilho@586
    22
#define G_MENCODER(obj) \
renatofilho@586
    23
  (G_TYPE_CHECK_INSTANCE_CAST((obj), G_TYPE_MENCODER, GMencoder))
renatofilho@586
    24
#define G_MENCODER_CLASS(klass) \
renatofilho@586
    25
  (G_TYPE_CHECK_CLASS_CAST((klass), G_TYPE_MENCODER, GMencoderClass))
renatofilho@586
    26
#define G_IS_MENCODER(obj) \
renatofilho@586
    27
  (G_TYPE_CHECK_INSTANCE_TYPE((obj), G_TYPE_MENCODER))
renatofilho@586
    28
#define G_IS_MENCODER_CLASS(klass) \
renatofilho@586
    29
  (G_TYPE_CHECK_CLASS_TYPE((klass), G_TYPE_MENCODER))
renatofilho@586
    30
#define G_MENCODER_GET_CLASS(obj) \
renatofilho@586
    31
  (G_TYPE_INSTANCE_GET_CLASS ((obj), G_TYPE_MENCODER, GMencoderClass))
renatofilho@586
    32
renatofilho@586
    33
renatofilho@586
    34
GType 		g_mencoder_get_type 	 	(void);
renatofilho@586
    35
GMencoder*  g_mencoder_new             (void);
renatofilho@586
    36
gboolean	g_mencoder_setup_stream    (GMencoder *self, 
renatofilho@586
    37
                                         const gchar* uri, 
renatofilho@586
    38
                                         guint width, guint height,
renatofilho@586
    39
                                         gint out_fd);
renatofilho@586
    40
gboolean 	g_mencoder_play_stream     (GMencoder *self);
renatofilho@586
    41
gboolean	g_mencoder_pause_stream 	(GMencoder *self);
renatofilho@586
    42
void        g_mencoder_close_stream 	(GMencoder *self);
renatofilho@586
    43
renatofilho@586
    44
G_END_DECLS
renatofilho@586
    45
renatofilho@586
    46
#endif