6x Scaler

Ask for help with ScummVM problems

Moderator: ScummVM Team

Post Reply
Tobis87
Posts: 23
Joined: Thu Feb 05, 2009 9:41 pm

6x Scaler

Post by Tobis87 »

Hello

I would like to implement a 6x scaler based on the advmame3x and advmame2x combined.

Why? Because I would like to use the native resolution of my new lcd 1920x1200 (which would be for 320x200 games applied with 6x scaler).

I already backported the old advmame4x patch from sourceforge to 1.8.1 and implemented normal5x and normal6x.

AdvMame4x
http://pastebin.com/raw/LiSiGiGr

Normal5x, Normal6x
http://pastebin.com/raw/U9z2j1mu

Can someone please explain to me following functions from scummvm-1.8.1/graphics/scaler/scalebit.cpp?

static inline void stage_scale4x
static void scale4x_buf
static void scale4x

I think instead of applying scale2x two times, I would need to apply scale3x once and after that scale2x to get 6x.
But I don't know how to use the buffer pointers for that.

ScummVM is great. I just don't like it so pixelated.

For Dosbox I have simply expanded the result of the 3x algorithm:

E0 E1 E2
E3 E4 E5
E6 E7 E8

to

E0 E0 E1 E1 E2 E2
E0 E4 E4 E4 E4 E2
E3 E4 E4 E4 E4 E5
E3 E4 E4 E4 E4 E5
E6 E4 E4 E4 E4 E8
E6 E6 E7 E7 E8 E8
Tobis87
Posts: 23
Joined: Thu Feb 05, 2009 9:41 pm

Post by Tobis87 »

As nobody seems to know I hacked together the same solution I used to patch dosbox.

Normal4-6x + Advmame4x, Advmame6x (expanded 3x)
http://pastebin.com/raw/T0rKXZC9

Two screenshots
http://imgur.com/a/ZcUW6
johnny rico
Posts: 12
Joined: Tue Mar 14, 2006 2:25 am

Post by johnny rico »

Hi, can we have a tutorial to make it work please ?
User avatar
rootfather
ScummVM Lead
Posts: 182
Joined: Tue Mar 31, 2015 11:59 am
Location: Germany
Contact:

Post by rootfather »

@johnny rico, I think there is no "tutorial", you have to apply the patch Tobis87 provides and patch the current ScummVM code.

Maybe sometimes in the future we will have such a feature implemented. Tobis87, have you considered discussing your change with the team (IRC channel #scummvm on freenode.net) or considered opening a pull request on Github?

All the best
rootfather
johnny rico
Posts: 12
Joined: Tue Mar 14, 2006 2:25 am

Post by johnny rico »

Thanks, but I finally chose the easiest way : using Seven magnifier, il works nice with 320x240 games :)
Post Reply