ScummVM logo Forum Index - ScummVM website - Contact us - Buy Supported Games: GOG.com Rules - Search - Register - Login curved edge
Folder Forum Index > Help and Support > 6x Scaler
6x Scaler
  Author    Thread Reply to topic
Tobis87



Joined: 05 Feb 2009
Posts: 24
6x Scaler 

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

 Reply with quote  
Post Thu Jun 30, 2016 8:02 pm 
 View user's profile Send private message
Tobis87



Joined: 05 Feb 2009
Posts: 24
 

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

 Reply with quote  
Post Mon Jul 04, 2016 10:04 am 
 View user's profile Send private message
johnny rico



Joined: 14 Mar 2006
Posts: 6
 

Hi, can we have a tutorial to make it work please ?

 Reply with quote  
Post Tue Oct 25, 2016 4:57 am 
 View user's profile Send private message
rootfather



Joined: 31 Mar 2015
Posts: 26
Location: Germany
 

@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

 Reply with quote  
Post Tue Oct 25, 2016 8:25 pm 
 View user's profile Send private message Send e-mail Visit poster's website
johnny rico



Joined: 14 Mar 2006
Posts: 6
 

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

 Reply with quote  
Post Tue Oct 25, 2016 9:36 pm 
 View user's profile Send private message
  Display posts from previous:      
Reply to topic

Forum Jump:
 



Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Powered by phpBB © 2001, 2006 phpBB Group
Forum design by ScummVM team, icons by raina
curved edge   curved edge