OSDN Git Service

Updated copyright year.
[x264-launcher/x264-launcher.git] / src / global.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Simple x264 Launcher
3 // Copyright (C) 2004-2019 LoRd_MuldeR <MuldeR2@GMX.de>
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License along
16 // with this program; if not, write to the Free Software Foundation, Inc.,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 //
19 // http://www.gnu.org/licenses/gpl-2.0.txt
20 ///////////////////////////////////////////////////////////////////////////////
21
22 #pragma once
23
24 #define _CRT_RAND_S
25 #include <cstdlib>
26 #include <stdexcept>
27
28 //Forward declarations
29 class QString;
30 class QStringList;
31 class QDate;
32 class QTime;
33 class QIcon;
34 class QWidget;
35 class LockedFile;
36 class QProcess;
37
38 ///////////////////////////////////////////////////////////////////////////////
39 // GLOBAL FUNCTIONS
40 ///////////////////////////////////////////////////////////////////////////////
41
42 //Utility functions
43 const QString &x264_data_path(void);
44 QString x264_path2ansi(const QString &longPath, bool makeLowercase = false);
45 bool x264_set_thread_execution_state(const bool systemRequired);
46
47 //Version getters
48 unsigned int x264_version_major(void);
49 unsigned int x264_version_minor(void);
50 unsigned int x264_version_build(void);
51 bool         x264_is_prerelease(void);
52 bool         x264_is_portable  (void);
53
54 ///////////////////////////////////////////////////////////////////////////////
55 // HELPER MACROS
56 ///////////////////////////////////////////////////////////////////////////////
57
58 //Check for CPU-compatibility options
59 #if !defined(_M_X64) && defined(_MSC_VER) && defined(_M_IX86_FP)
60         #if (_M_IX86_FP != 0)
61                 #error We should not enabled SSE or SSE2 in release builds!
62         #endif
63 #endif