1 /*****************************************************************************
2 * vlc_streaming.h: Methods and descriptions for Streaming profiles
3 *****************************************************************************
4 * Copyright (C) 2002-2005 the VideoLAN team
5 * $Id: stream_output.h 14151 2006-02-04 00:08:50Z zorglub $
7 * Authors: Clément Stenac <zorglub@videolan.org>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 #ifndef _VLC_STREAMING_H_
25 #define _VLC_STREAMING_H_
30 #define VCODECS_NUMBER 13
32 #define VCODECS_NUMBER 12
35 #define ACODECS_NUMBER 9
37 /// Keep this up to date !
38 #define MUXERS_NUMBER 10
66 int muxers[MUXERS_NUMBER];
68 //extern const struct codec vcodecs_array[];
69 //extern const struct codec acodecs_array[];
71 struct method_desc_t {
76 int muxers[MUXERS_NUMBER];
78 //xtern const struct method methods_array[];
86 //extern const struct mux_desc_t muxers_array[];
89 /* Standard bitrates arrays */
90 //static const char * vbitrates_array[] =
91 //{ "3072", "2048", "1024", "768", "512", "384", "256", "192", "128", "96",
94 //static const char *abitrates_array[] =
95 //{ "512", "256", "192", "128", "96", "64", "32", "16" } ;
97 struct sout_transcode_t
99 int i_vb, i_ab, i_channels;
101 vlc_bool_t b_soverlay;
102 char *psz_vcodec, *psz_acodec, *psz_scodec, *psz_venc, *psz_aenc;
103 char *psz_additional;
108 char *psz_mux, *psz_access;
109 char *psz_url, *psz_name, *psz_group;
112 struct sout_display_t
116 struct sout_duplicate_t
118 int i_children, i_conditions;
119 sout_chain_t **pp_children;
120 char **ppsz_conditions;
125 sout_transcode_t *p_transcode;
127 sout_duplicate_t *p_duplicate;
128 sout_display_t *p_display;
129 } sout_module_type_t;
135 sout_module_type_t typed;
136 sout_module_t *p_parent;
151 sout_module_t **pp_modules;
157 struct sout_gui_descr_t
160 vlc_bool_t b_local, b_file, b_http, b_mms, b_rtp, b_udp, b_dump;
161 char *psz_file, *psz_http, *psz_mms, *psz_rtp, *psz_udp;
162 int i_http, i_mms, i_rtp, i_udp;
168 vlc_bool_t b_soverlay;
169 char *psz_vcodec, *psz_acodec, *psz_scodec;
170 int i_vb, i_ab, i_channels;
174 vlc_bool_t b_sap, b_all_es;
175 char *psz_group, *psz_name;
179 struct streaming_profile_t
181 i18n_string_t *p_title;
182 i18n_string_t *p_description;
183 sout_chain_t *p_chain;
186 static inline sout_chain_t *streaming_ChainNew()
188 DECMALLOC_NULL( p_chain, sout_chain_t );
189 memset( p_chain, 0, sizeof( sout_chain_t ) );
190 p_chain->i_options = 0;
195 struct profile_parser_t
198 streaming_profile_t *p_profile;
203 //VLC_XEXPORT( char *, streaming_ChainToPsz, (sout_chain_t * ) );