Mercurial > mplayer.hg
annotate gui/interface.h @ 33872:d7bc4bcc3523
Support parsing of AAC audio.
Fixes playing of files with AAC audio with native demuxer and
lavc decoder.
author | reimar |
---|---|
date | Tue, 09 Aug 2011 20:14:30 +0000 |
parents | 8b0c78a85a8c |
children | 4789b8eed97e |
rev | line source |
---|---|
26458 | 1 /* |
2 * This file is part of MPlayer. | |
3 * | |
4 * MPlayer is free software; you can redistribute it and/or modify | |
5 * it under the terms of the GNU General Public License as published by | |
6 * the Free Software Foundation; either version 2 of the License, or | |
7 * (at your option) any later version. | |
8 * | |
9 * MPlayer is distributed in the hope that it will be useful, | |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 * GNU General Public License for more details. | |
13 * | |
14 * You should have received a copy of the GNU General Public License along | |
15 * with MPlayer; if not, write to the Free Software Foundation, Inc., | |
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
17 */ | |
18 | |
26029 | 19 #ifndef MPLAYER_GUI_INTERFACE_H |
20 #define MPLAYER_GUI_INTERFACE_H | |
23077 | 21 |
26382
b2f4abcf20ed
Make include paths consistent; do not use ../ in them.
diego
parents:
26029
diff
changeset
|
22 #include "config.h" |
33774
474ffcdcc6e7
Change guiInterface_t void pointer member declarations.
ib
parents:
33773
diff
changeset
|
23 #include "libaf/af.h" |
474ffcdcc6e7
Change guiInterface_t void pointer member declarations.
ib
parents:
33773
diff
changeset
|
24 #include "libmpdemux/stheader.h" |
30533
e3e329bc727a
Avoid forward declarations for import_initial_playtree_into_gui() and
diego
parents:
29263
diff
changeset
|
25 #include "m_config.h" |
33774
474ffcdcc6e7
Change guiInterface_t void pointer member declarations.
ib
parents:
33773
diff
changeset
|
26 #include "mp_core.h" |
30533
e3e329bc727a
Avoid forward declarations for import_initial_playtree_into_gui() and
diego
parents:
29263
diff
changeset
|
27 #include "playtree.h" |
29149 | 28 #include "stream/stream.h" |
23077 | 29 |
33021 | 30 // These are in support of the non-GUI files that interact with |
31 // the GUI and that only need to include interface.h for this. | |
32 // ------------------------------------------------------------ | |
32984 | 33 #include "cfg.h" |
23077 | 34 |
33021 | 35 extern int use_gui; // this is defined in mplayer.c |
36 // ------------------------------------------------------------ | |
37 | |
33466 | 38 #define GMPlayer "gmplayer" |
39 | |
33767 | 40 enum { |
41 GUI_END_FILE, | |
42 GUI_HANDLE_EVENTS, | |
43 GUI_HANDLE_X_EVENT, | |
44 GUI_PREPARE, | |
45 GUI_REDRAW, | |
46 GUI_RUN_COMMAND, | |
47 GUI_SETUP_VIDEO_WINDOW, | |
48 GUI_SET_AFILTER, | |
49 GUI_SET_AUDIO, | |
50 GUI_SET_CONTEXT, | |
51 GUI_SET_FILE, | |
52 GUI_SET_MIXER, | |
53 GUI_SET_STATE, | |
54 GUI_SET_STREAM, | |
55 GUI_SET_VIDEO | |
56 }; | |
23077 | 57 |
33614 | 58 #define GUI_STOP 0 |
59 #define GUI_PLAY 1 | |
60 #define GUI_PAUSE 2 | |
23077 | 61 |
33767 | 62 enum { |
33768 | 63 MPLAYER_EXIT_GUI, |
33767 | 64 MPLAYER_SET_AUTO_QUALITY, |
65 MPLAYER_SET_BRIGHTNESS, | |
66 MPLAYER_SET_CONTRAST, | |
67 MPLAYER_SET_EQUALIZER, | |
68 MPLAYER_SET_EXTRA_STEREO, | |
69 MPLAYER_SET_FONT_AUTOSCALE, | |
70 MPLAYER_SET_FONT_BLUR, | |
71 MPLAYER_SET_FONT_ENCODING, | |
72 MPLAYER_SET_FONT_FACTOR, | |
73 MPLAYER_SET_FONT_OSDSCALE, | |
74 MPLAYER_SET_FONT_OUTLINE, | |
75 MPLAYER_SET_FONT_TEXTSCALE, | |
76 MPLAYER_SET_HUE, | |
77 MPLAYER_SET_PANSCAN, | |
78 MPLAYER_SET_SATURATION, | |
79 MPLAYER_SET_SUB_ENCODING | |
80 }; | |
23077 | 81 |
32984 | 82 typedef struct { |
83 int titles; | |
84 int chapters; | |
85 int angles; | |
86 int current_chapter; | |
87 int current_title; | |
88 int current_angle; | |
89 int nr_of_audio_channels; | |
90 stream_language_t audio_streams[32]; | |
91 int nr_of_subtitles; | |
92 stream_language_t subtitles[32]; | |
93 } guiDVDStruct; | |
94 | |
95 typedef struct { | |
33774
474ffcdcc6e7
Change guiInterface_t void pointer member declarations.
ib
parents:
33773
diff
changeset
|
96 MPContext *mpcontext; |
474ffcdcc6e7
Change guiInterface_t void pointer member declarations.
ib
parents:
33773
diff
changeset
|
97 sh_video_t *sh_video; |
474ffcdcc6e7
Change guiInterface_t void pointer member declarations.
ib
parents:
33773
diff
changeset
|
98 af_stream_t *afilter; |
32984 | 99 |
100 int DiskChanged; | |
101 int NewPlay; | |
102 | |
103 #ifdef CONFIG_DVDREAD | |
104 guiDVDStruct DVD; | |
105 int Title; | |
106 int Angle; | |
107 int Chapter; | |
108 #endif | |
109 | |
110 #ifdef CONFIG_VCD | |
111 int VCDTracks; | |
112 #endif | |
113 | |
114 int Playing; | |
115 float Position; | |
116 | |
117 int MovieWidth; | |
118 int MovieHeight; | |
33655 | 119 int MovieWindow; |
32984 | 120 |
121 float Volume; | |
122 float Balance; | |
123 | |
124 int Track; | |
33646 | 125 int AudioChannels; |
32984 | 126 int StreamType; |
127 int TimeSec; | |
128 int LengthInSec; | |
129 | |
130 char *Filename; | |
131 int FilenameChanged; | |
132 | |
133 char *Subtitlename; | |
134 | |
135 char *AudioFile; | |
136 } guiInterface_t; | |
137 | |
33555 | 138 extern guiInterface_t guiInfo; |
32984 | 139 |
33745 | 140 /* MPlayer -> GUI */ |
141 | |
33791
8b0c78a85a8c
Cosmetic: Change parameter names of gui() and mplayer().
ib
parents:
33790
diff
changeset
|
142 int gui(int what, void *data); |
32984 | 143 void guiDone(void); |
144 void guiInit(void); | |
33764 | 145 int guiPlaylistAdd(play_tree_t *my_playtree, m_config_t *config); |
33752 | 146 int guiPlaylistInitialize(play_tree_t *my_playtree, m_config_t *config, int enqueue); |
23077 | 147 |
33746 | 148 /* GUI -> MPlayer */ |
149 | |
33791
8b0c78a85a8c
Cosmetic: Change parameter names of gui() and mplayer().
ib
parents:
33790
diff
changeset
|
150 void mplayer(int what, float value, void *data); |
33763 | 151 void mplayerLoadFont(void); |
33790
ab6d06f5b98b
Add const to some string pointer arguments that will not be modified.
ib
parents:
33776
diff
changeset
|
152 void mplayerLoadSubtitle(const char *name); |
33764 | 153 void gmp_msg(int mod, int lev, const char *format, ...); |
33745 | 154 |
26029 | 155 #endif /* MPLAYER_GUI_INTERFACE_H */ |