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