Mercurial > mplayer.hg
annotate gui/interface.h @ 37064:85499766333b
Add decoding support for On2 AVC audio codec.
author | cehoyos |
---|---|
date | Thu, 24 Apr 2014 06:42:02 +0000 |
parents | ef9dea4785bc |
children | e8559b9913ff |
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 | |
36966 | 111 int AudioPassthrough; |
112 | |
33902 | 113 int AudioStreams; |
114 stream_language_t AudioStream[32]; | |
115 | |
116 int Subtitles; | |
117 stream_language_t Subtitle[32]; | |
118 | |
33900 | 119 char *Filename; // public, read access by MPlayer |
120 char *AudioFilename; | |
121 char *SubtitleFilename; | |
32984 | 122 |
33876
4789b8eed97e
Get rid of a bunch of needless or redundant guiInfo members.
ib
parents:
33791
diff
changeset
|
123 int Tracks; |
33900 | 124 int Track; // public, read access by MPlayer |
125 int Chapters; | |
126 int Chapter; // public, write access by MPlayer | |
127 int Angles; | |
128 int Angle; | |
129 | |
130 int Playing; // public, read access by MPlayer | |
131 | |
132 int RunningTime; // public, write access by MPlayer | |
133 int ElapsedTime; // public, write access by MPlayer | |
134 float Position; // public, write access by MPlayer | |
32984 | 135 |
136 float Volume; | |
137 float Balance; | |
138 | |
36937
ad939f49bb28
Cosmetic: Rename guiInfo member NewPlay MediumChanged.
ib
parents:
36936
diff
changeset
|
139 int MediumChanged; // public, read access by MPlayer |
35430
2d55540614a9
Move uiProcessNextInPlaylist to the guiInfo structure.
ib
parents:
35391
diff
changeset
|
140 int PlaylistNext; |
32984 | 141 } guiInterface_t; |
142 | |
33555 | 143 extern guiInterface_t guiInfo; |
32984 | 144 |
33980 | 145 /// @name MPlayer -> GUI |
146 //@{ | |
33791
8b0c78a85a8c
Cosmetic: Change parameter names of gui() and mplayer().
ib
parents:
33790
diff
changeset
|
147 int gui(int what, void *data); |
32984 | 148 void guiDone(void); |
149 void guiInit(void); | |
35512 | 150 int guiPlaylist(int what, play_tree_t *playtree, m_config_t *config, int enqueue); |
33980 | 151 //@} |
23077 | 152 |
33980 | 153 /// @name GUI -> MPlayer |
154 //@{ | |
33791
8b0c78a85a8c
Cosmetic: Change parameter names of gui() and mplayer().
ib
parents:
33790
diff
changeset
|
155 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
|
156 void mplayerLoadSubtitle(const char *name); |
33764 | 157 void gmp_msg(int mod, int lev, const char *format, ...); |
33980 | 158 //@} |
33745 | 159 |
26029 | 160 #endif /* MPLAYER_GUI_INTERFACE_H */ |