]> git.sesse.net Git - vlc/blob - modules/gui/wxwidgets/streamdata.h
* Protect input item's meta through setters and getters. That allows tracking of...
[vlc] / modules / gui / wxwidgets / streamdata.h
1 /*****************************************************************************
2  * streamdata.h: streaming/transcoding data
3  *****************************************************************************
4  * Copyright (C) 2000-2005 the VideoLAN team
5  * $Id$
6  *
7  * Authors: ClĂ©ment Stenac <zorglub@videolan.org>
8  *
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.
13  *
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.
18  *
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  *****************************************************************************/
23
24
25 #define MUXERS_NUMBER 9
26
27 // Do not count dummy here !
28 #ifdef WIN32
29 #define VCODECS_NUMBER 13
30 #else
31 #define VCODECS_NUMBER 12
32 #endif
33
34 #define ACODECS_NUMBER 9
35
36 #define MUX_PS          0
37 #define MUX_TS          1
38 #define MUX_MPEG        2
39 #define MUX_OGG         3
40 #define MUX_RAW         4
41 #define MUX_ASF         5
42 #define MUX_AVI         6
43 #define MUX_MP4         7
44 #define MUX_MOV         8
45 #define MUX_WAV         9
46
47 /* Muxer / Codecs / Access_out compatibility tables */
48
49
50 struct codec {
51     char *psz_display;
52     char *psz_codec;
53     char *psz_descr;
54     int muxers[MUXERS_NUMBER];
55 };
56
57 extern const struct codec vcodecs_array[];
58 extern const struct codec acodecs_array[];
59
60
61 struct method {
62     char *psz_access;
63     char *psz_method;
64     char *psz_descr;
65     char *psz_address;
66     int   muxers[MUXERS_NUMBER];
67 };
68
69 extern const struct method methods_array[];
70
71
72 struct encap {
73     int   id;
74     char *psz_mux;
75     char *psz_encap;
76     char *psz_descr;
77 };
78
79 extern const struct encap encaps_array[];
80
81
82 /* Bitrates arrays */
83 static const wxString vbitrates_array[] =
84 {
85     wxT("3072"),
86     wxT("2048"),
87     wxT("1024"),
88     wxT("768"),
89     wxT("512"),
90     wxT("384"),
91     wxT("256"),
92     wxT("192"),
93     wxT("128"),
94     wxT("96"),
95     wxT("64"),
96     wxT("32"),
97     wxT("16")
98 };
99
100 static const wxString abitrates_array[] =
101 {
102     wxT("512"),
103     wxT("256"),
104     wxT("192"),
105     wxT("128"),
106     wxT("96"),
107     wxT("64"),
108     wxT("32"),
109     wxT("16")
110 };