The Battle for Wesnoth
1.13.4+dev
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
xBRZ
config.hpp
Go to the documentation of this file.
1
/*
2
Copyright (C) 2014 - 2016 by Chris Beck <
[email protected]
>
3
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
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
This program is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY.
10
See the COPYING file for more details.
11
12
This is a derivative work of the xBRZ component of the HqMAME project
13
by Zenju. The original Licensing statment follows, indented with //
14
The primary changes are, syntactic to make it compile with C99+Boost,
15
and to make it handle an alpha channel in the image in a manner proper
16
for SDL.
17
18
It is not possible to extend the MAME 'special exception' to all of
19
the Battle for Wesnoth project, however, the special exception is
20
granted for my derivative forms of this work.
21
*/
22
23
// ****************************************************************************
24
// * This file is part of the HqMAME project. It is distributed under *
25
// * GNU General Public License: http://www.gnu.org/licenses/gpl.html *
26
// * Copyright (C) Zenju (zenju AT gmx DOT de) - All Rights Reserved *
27
// * *
28
// * Additionally and as a special exception, the author gives permission *
29
// * to link the code of this program with the MAME library (or with modified *
30
// * versions of MAME that use the same license as MAME), and distribute *
31
// * linked combinations including the two. You must obey the GNU General *
32
// * Public License in all respects for all of the code used other than MAME. *
33
// * If you modify this file, you may extend this exception to your version *
34
// * of the file, but you are not obligated to do so. If you do not wish to *
35
// * do so, delete this exception statement from your version. *
36
// ****************************************************************************
37
38
#ifndef XBRZ_CONFIG_HEADER_284578425345
39
#define XBRZ_CONFIG_HEADER_284578425345
40
41
//do NOT include any headers here! used by xBRZ_dll!!!
42
43
namespace
xbrz
44
{
45
struct
ScalerCfg
46
{
47
ScalerCfg
() :
48
luminanceWeight_
(1),
49
equalColorTolerance_
(30),
50
dominantDirectionThreshold
(3.6),
51
steepDirectionThreshold
(2.2),
52
newTestAttribute_
(0) {}
53
54
double
luminanceWeight_
;
55
double
equalColorTolerance_
;
56
double
dominantDirectionThreshold
;
57
double
steepDirectionThreshold
;
58
double
newTestAttribute_
;
//unused; test new parameters
59
};
60
}
61
62
#endif
xbrz
Definition:
config.hpp:43
xbrz::ScalerCfg::luminanceWeight_
double luminanceWeight_
Definition:
config.hpp:54
xbrz::ScalerCfg::dominantDirectionThreshold
double dominantDirectionThreshold
Definition:
config.hpp:56
xbrz::ScalerCfg::newTestAttribute_
double newTestAttribute_
Definition:
config.hpp:58
xbrz::ScalerCfg::ScalerCfg
ScalerCfg()
Definition:
config.hpp:47
xbrz::ScalerCfg
Definition:
config.hpp:45
xbrz::ScalerCfg::steepDirectionThreshold
double steepDirectionThreshold
Definition:
config.hpp:57
xbrz::ScalerCfg::equalColorTolerance_
double equalColorTolerance_
Definition:
config.hpp:55
Generated by
1.8.8