2012-01-28 16:40:14 +01:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Simple x264 Launcher
|
2015-01-31 19:56:04 +01:00
|
|
|
// Copyright (C) 2004-2015 LoRd_MuldeR <MuldeR2@GMX.de>
|
2012-01-28 16:40:14 +01:00
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation; either version 2 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License along
|
|
|
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
//
|
|
|
|
// http://www.gnu.org/licenses/gpl-2.0.txt
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2012-02-07 21:48:25 +01:00
|
|
|
#pragma once
|
|
|
|
|
2013-11-06 00:30:27 +01:00
|
|
|
#define _CRT_RAND_S
|
2013-11-03 18:34:20 +01:00
|
|
|
#include <cstdlib>
|
2014-04-16 14:57:32 +02:00
|
|
|
#include <stdexcept>
|
2012-04-30 16:56:01 +02:00
|
|
|
|
2013-11-06 00:30:27 +01:00
|
|
|
//Forward declarations
|
2012-01-28 16:40:14 +01:00
|
|
|
class QString;
|
|
|
|
class QStringList;
|
|
|
|
class QDate;
|
|
|
|
class QTime;
|
|
|
|
class QIcon;
|
|
|
|
class QWidget;
|
|
|
|
class LockedFile;
|
2013-11-03 18:34:20 +01:00
|
|
|
class QProcess;
|
2014-04-16 14:57:32 +02:00
|
|
|
|
2013-11-06 00:30:27 +01:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// GLOBAL FUNCTIONS
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2012-02-10 18:40:28 +01:00
|
|
|
const QString &x264_data_path(void);
|
2013-11-06 00:30:27 +01:00
|
|
|
bool x264_is_prerelease(void);
|
2013-11-08 14:15:40 +01:00
|
|
|
QString x264_path2ansi(const QString &longPath, bool makeLowercase = false);
|
2013-11-06 00:30:27 +01:00
|
|
|
bool x264_portable(void);
|
2013-11-03 18:34:20 +01:00
|
|
|
QString x264_query_reg_string(const bool bUser, const QString &path, const QString &name);
|
2013-11-10 23:20:24 +01:00
|
|
|
bool x264_set_thread_execution_state(const bool systemRequired);
|
2013-11-06 00:30:27 +01:00
|
|
|
bool x264_suspendProcess(const QProcess *proc, const bool suspend);
|
|
|
|
const char *x264_version_arch(void);
|
|
|
|
unsigned int x264_version_build(void);
|
|
|
|
const char *x264_version_compiler(void);
|
|
|
|
const QDate &x264_version_date(void);
|
|
|
|
unsigned int x264_version_major(void);
|
|
|
|
unsigned int x264_version_minor(void);
|
|
|
|
const char *x264_version_time(void);
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// HELPER MACROS
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
//Check for CPU-compatibility options
|
|
|
|
#if !defined(_M_X64) && defined(_MSC_VER) && defined(_M_IX86_FP)
|
|
|
|
#if (_M_IX86_FP != 0)
|
|
|
|
#error We should not enabled SSE or SSE2 in release builds!
|
|
|
|
#endif
|
|
|
|
#endif
|