Mercurial > mplayer.hg
annotate gui/interface.h @ 36965:5fb43d5efdca
configure: add CONFIG_CABAC
fix ffmpeg linking
author | michael |
---|---|
date | Tue, 25 Mar 2014 00:15:02 +0000 |
parents | cbaa08dbc9aa |
children | ef9dea4785bc |
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 |
30533
e3e329bc727a
Avoid forward declarations for import_initial_playtree_into_gui() and
diego
parents:
29263
diff
changeset
|
22 #include "m_config.h" |
33774
474ffcdcc6e7
Change guiInterface_t void pointer member declarations.
ib
parents:
33773
diff
changeset
|
23 #include "mp_core.h" |
30533
e3e329bc727a
Avoid forward declarations for import_initial_playtree_into_gui() and
diego
parents:
29263
diff
changeset
|
24 #include "playtree.h" |
36032 | 25 #include "libaf/af.h" |
26 #include "libmpdemux/stheader.h" | |
29149 | 27 #include "stream/stream.h" |
23077 | 28 |
33021 | 29 // These are in support of the non-GUI files that interact with |
30 // the GUI and that only need to include interface.h for this. | |
31 // ------------------------------------------------------------ | |
35525 | 32 #include "app/cfg.h" |
23077 | 33 |
33021 | 34 extern int use_gui; // this is defined in mplayer.c |
35 // ------------------------------------------------------------ | |
36 | |
36054 | 37 /// Name of the GUI binary |
38 #define gmplayer "gmplayer" | |
33466 | 39 |
33980 | 40 /// gui() instructions |
33767 | 41 enum { |
36940
6410fe917eac
Cosmetic: Rename symbolic constant GUI_END_FILE GUI_END_PLAY.
ib
parents:
36937
diff
changeset
|
42 GUI_END_PLAY, |
33767 | 43 GUI_HANDLE_X_EVENT, |
44 GUI_PREPARE, | |
45 GUI_REDRAW, | |
46 GUI_RUN_COMMAND, | |
34339 | 47 GUI_RUN_MESSAGE, |
33767 | 48 GUI_SETUP_VIDEO_WINDOW, |
49 GUI_SET_AUDIO, | |
50 GUI_SET_CONTEXT, | |
51 GUI_SET_STATE, | |
52 GUI_SET_STREAM, | |
36946
cbaa08dbc9aa
Cosmetic: Rename GUI_SET_MIXER GUI_SET_VOLUME_BALANCE.
ib
parents:
36940
diff
changeset
|
53 GUI_SET_VOLUME_BALANCE, |
33767 | 54 GUI_SET_VIDEO |
55 }; | |
23077 | 56 |
35510 | 57 /// guiPlaylist() instructions |
58 enum { | |
59 GUI_PLAYLIST_INIT, | |
60 GUI_PLAYLIST_ADD | |
61 }; | |
62 | |
33980 | 63 //@{ |
64 /// Playing state | |
33614 | 65 #define GUI_STOP 0 |
66 #define GUI_PLAY 1 | |
67 #define GUI_PAUSE 2 | |
33980 | 68 //@} |
23077 | 69 |
33980 | 70 //@{ |
36937
ad939f49bb28
Cosmetic: Rename guiInfo member NewPlay MediumChanged.
ib
parents:
36936
diff
changeset
|
71 /// MediumChanged reason |
36936
9afababf229e
Cosmetic: Rename symbolic constants GUI_FILE_SAME and GUI_FILE_NEW.
ib
parents:
36658
diff
changeset
|
72 #define GUI_MEDIUM_SAME 1 |
9afababf229e
Cosmetic: Rename symbolic constants GUI_FILE_SAME and GUI_FILE_NEW.
ib
parents:
36658
diff
changeset
|
73 #define GUI_MEDIUM_NEW 2 |
33980 | 74 //@} |
33890 | 75 |
33980 | 76 /// mplayer() instructions |
33767 | 77 enum { |
33768 | 78 MPLAYER_EXIT_GUI, |
36658 | 79 MPLAYER_LOAD_FONT, |
33767 | 80 MPLAYER_SET_AUTO_QUALITY, |
81 MPLAYER_SET_BRIGHTNESS, | |
82 MPLAYER_SET_CONTRAST, | |
83 MPLAYER_SET_EQUALIZER, | |
84 MPLAYER_SET_EXTRA_STEREO, | |
85 MPLAYER_SET_FONT_AUTOSCALE, | |
86 MPLAYER_SET_FONT_BLUR, | |
87 MPLAYER_SET_FONT_ENCODING, | |
88 MPLAYER_SET_FONT_FACTOR, | |
89 MPLAYER_SET_FONT_OSDSCALE, | |
90 MPLAYER_SET_FONT_OUTLINE, | |
91 MPLAYER_SET_FONT_TEXTSCALE, | |
92 MPLAYER_SET_HUE, | |
93 MPLAYER_SET_PANSCAN, | |
94 MPLAYER_SET_SATURATION, | |
95 MPLAYER_SET_SUB_ENCODING | |
96 }; | |
23077 | 97 |
32984 | 98 typedef struct { |
33774
474ffcdcc6e7
Change guiInterface_t void pointer member declarations.
ib
parents:
33773
diff
changeset
|
99 MPContext *mpcontext; |
474ffcdcc6e7
Change guiInterface_t void pointer member declarations.
ib
parents:
33773
diff
changeset
|
100 sh_video_t *sh_video; |
32984 | 101 |
33944 | 102 int VideoWindow; |
33901 | 103 int VideoWidth; |
104 int VideoHeight; | |
32984 | 105 |
35468
047fc4746236
Cosmetic: Adjust indent and move guiInfo member CodecName in structure.
ib
parents:
35462
diff
changeset
|
106 char *CodecName; |
047fc4746236
Cosmetic: Adjust indent and move guiInfo member CodecName in structure.
ib
parents:
35462
diff
changeset
|
107 |
34076 | 108 int StreamType; |
33900 | 109 int AudioChannels; |
110 | |
33902 | 111 int AudioStreams; |
112 stream_language_t AudioStream[32]; | |
113 | |
114 int Subtitles; | |
115 stream_language_t Subtitle[32]; | |
116 | |
33900 | 117 char *Filename; // public, read access by MPlayer |
118 char *AudioFilename; | |
119 char *SubtitleFilename; | |
32984 | 120 |
33876
4789b8eed97e
Get rid of a bunch of needless or redundant guiInfo members.
ib
parents:
33791
diff
changeset
|
121 int Tracks; |
33900 | 122 int Track; // public, read access by MPlayer |
123 int Chapters; | |
124 int Chapter; // public, write access by MPlayer | |
125 int Angles; | |
126 int Angle; | |
127 | |
128 int Playing; // public, read access by MPlayer | |
129 | |
130 int RunningTime; // public, write access by MPlayer | |
131 int ElapsedTime; // public, write access by MPlayer | |
132 float Position; // public, write access by MPlayer | |
32984 | 133 |
134 float Volume; | |
135 float Balance; | |
136 | |
36937
ad939f49bb28
Cosmetic: Rename guiInfo member NewPlay MediumChanged.
ib
parents:
36936
diff
changeset
|
137 int MediumChanged; // public, read access by MPlayer |
35430
2d55540614a9
Move uiProcessNextInPlaylist to the guiInfo structure.
ib
parents:
35391
diff
changeset
|
138 int PlaylistNext; |
32984 | 139 } guiInterface_t; |
140 | |
33555 | 141 extern guiInterface_t guiInfo; |
32984 | 142 |
33980 | 143 /// @name MPlayer -> GUI |
144 //@{ | |
33791
8b0c78a85a8c
Cosmetic: Change parameter names of gui() and mplayer().
ib
parents:
33790
diff
changeset
|
145 int gui(int what, void *data); |
32984 | 146 void guiDone(void); |
147 void guiInit(void); | |
35512 | 148 int guiPlaylist(int what, play_tree_t *playtree, m_config_t *config, int enqueue); |
33980 | 149 //@} |
23077 | 150 |
33980 | 151 /// @name GUI -> MPlayer |
152 //@{ | |
33791
8b0c78a85a8c
Cosmetic: Change parameter names of gui() and mplayer().
ib
parents:
33790
diff
changeset
|
153 void mplayer(int what, float value, void *data); |
33790
ab6d06f5b98b
Add const to some string pointer arguments that will not be modified.
ib
parents:
33776
diff
changeset
|
154 void mplayerLoadSubtitle(const char *name); |
33764 | 155 void gmp_msg(int mod, int lev, const char *format, ...); |
33980 | 156 //@} |
33745 | 157 |
26029 | 158 #endif /* MPLAYER_GUI_INTERFACE_H */ |