-
-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get files from here `https://sourceforge.net/projects/xbrz/files/xBRZ/`. Then, update the src to handle pitch params. For our case, the pitch is necessary because we deal with borders (top and right) of our source image. Normally, we would want to scale without it, and therefore we need to adjust the pointers to skip the borders. If we have a `width + 1 pixel border` per line, the we need to scale a image with `width` line size, but advancing the pointer for each new line processed including the border on the count. Also, since our output pointer also allocates for the border, we need to adjust the output moving pointer for each line in a custom way. (output border in this case) - Fix #164.
- Loading branch information
Showing
7 changed files
with
643 additions
and
300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// **************************************************************************** | ||
// * This file is part of the xBRZ project. It is distributed under * | ||
// * GNU General Public License: https://www.gnu.org/licenses/gpl-3.0 * | ||
// * Copyright (C) Zenju (zenju AT gmx DOT de) - All Rights Reserved * | ||
// * * | ||
// * Additionally and as a special exception, the author gives permission * | ||
// * to link the code of this program with the following libraries * | ||
// * (or with modified versions that use the same licenses), and distribute * | ||
// * linked combinations including the two: MAME, FreeFileSync, Snes9x, ePSXe * | ||
// * You must obey the GNU General Public License in all respects for all of * | ||
// * the code used other than MAME, FreeFileSync, Snes9x, ePSXe. * | ||
// * If you modify this file, you may extend this exception to your version * | ||
// * of the file, but you are not obligated to do so. If you do not wish to * | ||
// * do so, delete this exception statement from your version. * | ||
// **************************************************************************** | ||
|
||
#ifndef XBRZ_CONFIG_HEADER_284578425345 | ||
#define XBRZ_CONFIG_HEADER_284578425345 | ||
|
||
//do NOT include any headers here! used by xBRZ_dll!!! | ||
|
||
namespace xbrz | ||
{ | ||
struct ScalerCfg | ||
{ | ||
double luminanceWeight = 1; | ||
double equalColorTolerance = 30; | ||
double centerDirectionBias = 4; | ||
double dominantDirectionThreshold = 3.6; | ||
double steepDirectionThreshold = 2.2; | ||
double newTestAttribute = 0; //unused; test new parameters | ||
}; | ||
} | ||
|
||
#endif |
Oops, something went wrong.