gmyth-stream/gmencoder/src/gmencoder.h
author melunko
Mon Mar 03 13:12:42 2008 +0000 (2008-03-03)
branchtrunk
changeset 937 f3eab6b20112
parent 898 4fbbacbbca34
permissions -rw-r--r--
[svn r946] gmyth debian package version incremented to 0.8
     1 /* 
     2  *  arch-tag: Header for gmencoder engine
     3  *
     4  *  Copyright (C) 2007 INdT - Renato Filho <renato.filho@indt.org.br>
     5  *
     6  *  This program is free software; you can redistribute it and/or modify
     7  *  it under the terms of the GNU General Public License as published by
     8  *  the Free Software Foundation; either version 2 of the License, or
     9  *  (at your option) any later version.
    10  *
    11  *  This program is distributed in the hope that it will be useful,
    12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    14  *  GNU General Public License for more details.
    15  *
    16  *  You should have received a copy of the GNU General Public License
    17  *  along with this program; if not, write to the Free Software
    18  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA.
    19  *
    20  */
    21 
    22 #ifndef __G_MENCODER_H__
    23 #define __G_MENCODER_H__
    24 
    25 #include <glib-object.h>
    26 
    27 G_BEGIN_DECLS typedef struct _GMencoder GMencoder;
    28 typedef struct _GMencoderClass GMencoderClass;
    29 
    30 struct _GMencoderClass {
    31     GObjectClass    parent_class;
    32 };
    33 
    34 struct _GMencoder {
    35     GObject         parent;
    36 };
    37 
    38 /*
    39  * TYPE MACROS 
    40  */
    41 #define G_TYPE_MENCODER \
    42   (g_mencoder_get_type())
    43 #define G_MENCODER(obj) \
    44   (G_TYPE_CHECK_INSTANCE_CAST((obj), G_TYPE_MENCODER, GMencoder))
    45 #define G_MENCODER_CLASS(klass) \
    46   (G_TYPE_CHECK_CLASS_CAST((klass), G_TYPE_MENCODER, GMencoderClass))
    47 #define G_IS_MENCODER(obj) \
    48   (G_TYPE_CHECK_INSTANCE_TYPE((obj), G_TYPE_MENCODER))
    49 #define G_IS_MENCODER_CLASS(klass) \
    50   (G_TYPE_CHECK_CLASS_TYPE((klass), G_TYPE_MENCODER))
    51 #define G_MENCODER_GET_CLASS(obj) \
    52   (G_TYPE_INSTANCE_GET_CLASS ((obj), G_TYPE_MENCODER, GMencoderClass))
    53 
    54 
    55 GType           g_mencoder_get_type(void);
    56 GMencoder      *g_mencoder_new(void);
    57 
    58 gboolean        g_mencoder_setup_stream(GMencoder * self,
    59 					gboolean chunked,
    60 					gboolean deinterlace,
    61                                         const gchar * mux_name,
    62                                         const gchar * video_encode,
    63                                         gchar ** video_encode_prop,
    64                                         gdouble video_fps,
    65                                         gdouble video_rate,
    66                                         guint video_width,
    67                                         guint video_height,
    68                                         const gchar * audio_encode,
    69                                         gchar ** audio_encode_prop,
    70                                         guint audio_rate,
    71                                         const gchar * output_uri);
    72 
    73 gboolean        g_mencoder_append_uri(GMencoder * self, const gchar * uri);
    74 
    75 void            g_mencoder_remove_uri(GMencoder * self, const gchar * uri);
    76 
    77 void            g_mencoder_play_stream(GMencoder * self);
    78 void            g_mencoder_pause_stream(GMencoder * self);
    79 void            g_mencoder_close_stream(GMencoder * self);
    80 
    81 G_END_DECLS
    82 #endif