annotate libvo/vo_zr.h @ 33960:1cd81338af07

Rework fullscreen handling. This should fix all problems the GUI had with fullscreen handling. In interface.c: 1. Remove disabled code. 2. Set background of inactive video window to black (which prevents some flashing when starting the playback in fullscreen mode). 3. Set the state of the fullscreen button according to next playback mode (normal or fullscreen). 4. Make the video window invisible if there is no video, but don't make it visible that early if there is video. 5. Set the global fullscreen variable to get aspect scaling. (Hack) 6. In GUI_SETUP_VIDEO_WINDOW: a. First set the video size, b. then resize and reposition, c. then make the window visible, d. switch to/from fullscreen, if necessary. (This minimizes disturbances and the display stays in fullscreen mode and is smoothly black as often as possible.) 7. When playback ends, either act as in 6. or make video window quickly invisible if requested. In actions.c: 8. Allow calling uiFullScreen() even if not playing. 9. Remove unnecessary (and misplaced) repositioning (but not properly resizing) code from uiFullScreen(). 10. Don't call wsFullScreen() conditionally. 11. Only set global variable vo_fs, not the global fullscreen variable.
author ib
date Thu, 01 Sep 2011 20:15:40 +0000
parents 8fccdda74db0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
30593
8fccdda74db0 Add header for functions exported from vo_zr.c and use it appropriately.
diego
parents:
diff changeset
1 /*
8fccdda74db0 Add header for functions exported from vo_zr.c and use it appropriately.
diego
parents:
diff changeset
2 * playback on Zoran cards
8fccdda74db0 Add header for functions exported from vo_zr.c and use it appropriately.
diego
parents:
diff changeset
3 *
8fccdda74db0 Add header for functions exported from vo_zr.c and use it appropriately.
diego
parents:
diff changeset
4 * This file is part of MPlayer.
8fccdda74db0 Add header for functions exported from vo_zr.c and use it appropriately.
diego
parents:
diff changeset
5 *
8fccdda74db0 Add header for functions exported from vo_zr.c and use it appropriately.
diego
parents:
diff changeset
6 * MPlayer is free software; you can redistribute it and/or modify
8fccdda74db0 Add header for functions exported from vo_zr.c and use it appropriately.
diego
parents:
diff changeset
7 * it under the terms of the GNU General Public License as published by
8fccdda74db0 Add header for functions exported from vo_zr.c and use it appropriately.
diego
parents:
diff changeset
8 * the Free Software Foundation; either version 2 of the License, or
8fccdda74db0 Add header for functions exported from vo_zr.c and use it appropriately.
diego
parents:
diff changeset
9 * (at your option) any later version.
8fccdda74db0 Add header for functions exported from vo_zr.c and use it appropriately.
diego
parents:
diff changeset
10 *
8fccdda74db0 Add header for functions exported from vo_zr.c and use it appropriately.
diego
parents:
diff changeset
11 * MPlayer is distributed in the hope that it will be useful,
8fccdda74db0 Add header for functions exported from vo_zr.c and use it appropriately.
diego
parents:
diff changeset
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
8fccdda74db0 Add header for functions exported from vo_zr.c and use it appropriately.
diego
parents:
diff changeset
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8fccdda74db0 Add header for functions exported from vo_zr.c and use it appropriately.
diego
parents:
diff changeset
14 * GNU General Public License for more details.
8fccdda74db0 Add header for functions exported from vo_zr.c and use it appropriately.
diego
parents:
diff changeset
15 *
8fccdda74db0 Add header for functions exported from vo_zr.c and use it appropriately.
diego
parents:
diff changeset
16 * You should have received a copy of the GNU General Public License along
8fccdda74db0 Add header for functions exported from vo_zr.c and use it appropriately.
diego
parents:
diff changeset
17 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
8fccdda74db0 Add header for functions exported from vo_zr.c and use it appropriately.
diego
parents:
diff changeset
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
8fccdda74db0 Add header for functions exported from vo_zr.c and use it appropriately.
diego
parents:
diff changeset
19 */
8fccdda74db0 Add header for functions exported from vo_zr.c and use it appropriately.
diego
parents:
diff changeset
20
8fccdda74db0 Add header for functions exported from vo_zr.c and use it appropriately.
diego
parents:
diff changeset
21 #ifndef MPLAYER_VO_ZR_H
8fccdda74db0 Add header for functions exported from vo_zr.c and use it appropriately.
diego
parents:
diff changeset
22 #define MPLAYER_VO_ZR_H
8fccdda74db0 Add header for functions exported from vo_zr.c and use it appropriately.
diego
parents:
diff changeset
23
8fccdda74db0 Add header for functions exported from vo_zr.c and use it appropriately.
diego
parents:
diff changeset
24 #include "m_option.h"
8fccdda74db0 Add header for functions exported from vo_zr.c and use it appropriately.
diego
parents:
diff changeset
25
8fccdda74db0 Add header for functions exported from vo_zr.c and use it appropriately.
diego
parents:
diff changeset
26 int vo_zr_parseoption(const m_option_t *conf, const char *opt, const char *param);
8fccdda74db0 Add header for functions exported from vo_zr.c and use it appropriately.
diego
parents:
diff changeset
27 void vo_zr_revertoption(const m_option_t *opt, const char *param);
8fccdda74db0 Add header for functions exported from vo_zr.c and use it appropriately.
diego
parents:
diff changeset
28
8fccdda74db0 Add header for functions exported from vo_zr.c and use it appropriately.
diego
parents:
diff changeset
29 #endif /* MPLAYER_VO_ZR_H */