1 | /* smplayer, GUI front-end for mplayer.
|
---|
2 | Copyright (C) 2006-2017 Ricardo Villalba <rvm@users.sourceforge.net>
|
---|
3 |
|
---|
4 | This program 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 | This program 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
|
---|
15 | along with this program; if not, write to the Free Software
|
---|
16 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
---|
17 | */
|
---|
18 |
|
---|
19 | #ifndef CONFIG_H
|
---|
20 | #define CONFIG_H
|
---|
21 |
|
---|
22 | #include <Qt>
|
---|
23 |
|
---|
24 | #define NOTIFY_SUB_CHANGES 1
|
---|
25 | #define NOTIFY_AUDIO_CHANGES 1
|
---|
26 | #define NOTIFY_VIDEO_CHANGES 0
|
---|
27 | #define NOTIFY_CHAPTER_CHANGES 1
|
---|
28 |
|
---|
29 |
|
---|
30 | // STYLE_SWITCHING
|
---|
31 | // if 1, the preferences dialog will have an option to switch
|
---|
32 | // the Qt style
|
---|
33 |
|
---|
34 | #define STYLE_SWITCHING 1
|
---|
35 |
|
---|
36 |
|
---|
37 | // EXTERNAL_SLEEP
|
---|
38 | // if 1, it will be used the function usleep() from unistd.h
|
---|
39 | // instead of QThread::msleep()
|
---|
40 | // It can be useful if your Qt doesn't have QThread support.
|
---|
41 | // Note: not much test it
|
---|
42 | // Note 2: not used anymore
|
---|
43 |
|
---|
44 | #define EXTERNAL_SLEEP 0
|
---|
45 |
|
---|
46 |
|
---|
47 | // ENABLE_DELAYED_DRAGGING
|
---|
48 | // if 1, sends the dragging position of the time slider
|
---|
49 | // some ms later
|
---|
50 |
|
---|
51 | #define ENABLE_DELAYED_DRAGGING 1
|
---|
52 |
|
---|
53 |
|
---|
54 | // SEEKBAR_RESOLUTION
|
---|
55 | // if SEEKBAR_RESOLUTION is defined, it specified the
|
---|
56 | // maximum value of the time slider
|
---|
57 |
|
---|
58 | #define SEEKBAR_RESOLUTION 1000
|
---|
59 |
|
---|
60 |
|
---|
61 | // SMART_DVD_CHAPTERS
|
---|
62 | // if set to 1, the slave command "chapter" will use if not using a cache,
|
---|
63 | // otherwise mplayer will be restarted and -chapter will be used.
|
---|
64 |
|
---|
65 | #define SMART_DVD_CHAPTERS 1
|
---|
66 |
|
---|
67 |
|
---|
68 | // ALLOW_TO_HIDE_VIDEO_WINDOW_ON_AUDIO_FILES
|
---|
69 | // if 1, the video window may be hidden when playing audio files
|
---|
70 | // depending on the hide_video_window_on_audio_files option in
|
---|
71 | // the config file
|
---|
72 |
|
---|
73 | #define ALLOW_TO_HIDE_VIDEO_WINDOW_ON_AUDIO_FILES 1
|
---|
74 |
|
---|
75 |
|
---|
76 | // DELAYED_AUDIO_SETUP_ON_STARTUP
|
---|
77 | // if 1, the audio track will be initialized later once the file
|
---|
78 | // has begun to play
|
---|
79 |
|
---|
80 | #define DELAYED_AUDIO_SETUP_ON_STARTUP 0
|
---|
81 |
|
---|
82 |
|
---|
83 | // CHECK_VIDEO_CODEC_FOR_NO_VIDEO
|
---|
84 | // if 1, the video codec will be checked to decide if the file
|
---|
85 | // has video or not. If it's empty it has no video.
|
---|
86 | // If 0, it will check for the line "Video: no video"
|
---|
87 |
|
---|
88 | #define CHECK_VIDEO_CODEC_FOR_NO_VIDEO 1
|
---|
89 |
|
---|
90 |
|
---|
91 | // Just for testing, possibility to disable the use of the colorkey
|
---|
92 |
|
---|
93 | #define USE_COLORKEY 0
|
---|
94 |
|
---|
95 |
|
---|
96 | // USE_MINIMUMSIZE
|
---|
97 | // if 1, the main window will not be smaller than the control widget
|
---|
98 | // size hint or pref->gui_minimum_width.
|
---|
99 |
|
---|
100 | #define USE_MINIMUMSIZE 1
|
---|
101 |
|
---|
102 |
|
---|
103 | // DVDNAV_SUPPORT
|
---|
104 | // if 1, smplayer will be compiled with support for mplayer's dvdnav
|
---|
105 | #ifdef MPLAYER_SUPPORT
|
---|
106 | #define DVDNAV_SUPPORT 1
|
---|
107 | #endif
|
---|
108 |
|
---|
109 |
|
---|
110 | // PROGRAM_SWITCH
|
---|
111 | // support for program switch in ts files
|
---|
112 |
|
---|
113 | #define PROGRAM_SWITCH 0
|
---|
114 |
|
---|
115 |
|
---|
116 | // ALLOW_DEMUXER_CODE_CHANGE
|
---|
117 | // support changing of demuxer and video and audio codecs
|
---|
118 |
|
---|
119 | #define ALLOW_DEMUXER_CODEC_CHANGE 1
|
---|
120 |
|
---|
121 |
|
---|
122 | // Adds or not the "Repaint the background of the video window" option.
|
---|
123 | #ifndef Q_OS_WIN
|
---|
124 | #define REPAINT_BACKGROUND_OPTION 1
|
---|
125 | #endif
|
---|
126 |
|
---|
127 |
|
---|
128 | // Enables/disables the use of -adapter
|
---|
129 | #ifdef Q_OS_WIN
|
---|
130 | #define USE_ADAPTER 0
|
---|
131 | #define OVERLAY_VO "directx"
|
---|
132 | //#define OVERLAY_VO "xv"
|
---|
133 | #endif
|
---|
134 |
|
---|
135 |
|
---|
136 | // If 1, smplayer will check if mplayer is old
|
---|
137 | // and in that case it will report to the user
|
---|
138 | #if !defined(Q_OS_WIN) && !defined(Q_OS_OS2)
|
---|
139 | #define REPORT_OLD_MPLAYER 1
|
---|
140 | #endif
|
---|
141 |
|
---|
142 |
|
---|
143 | // If 1, the background logo will be animated
|
---|
144 | #if QT_VERSION >= 0x040600
|
---|
145 | /* #define LOGO_ANIMATION 1 */
|
---|
146 | #endif
|
---|
147 |
|
---|
148 | #endif
|
---|