MAMEWorld >> News
View all threads Index   Threaded Mode Threaded  

Pages: 1

Zenju
MAME Fan
Reged: 09/18/12
Posts: 14
Send PM


HqxMAME - standard MAME plus support for hqx scaler
#296061 - 09/18/12 08:15 PM


Hi,

I've been searching for a version of recent MAME with support for HQX scalers. But all MAME variants I could find were pretty much outdated. So I created a new one:

http://sourceforge.net/projects/hqmame/

It's a very lean implementation on top of current MAME 0.147, essentially can be shrinked-down to a single "diff" file with support for hq2x, hq3x and hq4x. (So it should be trivial to catch up MAME development in the future.)

By default the GDI version with hq3x scalers is active, but this can be changed via command line:

Usage:
hqxmame -hqx

scale:
1 = no scaling
2 = hq2x
3 = hq3x (default)
4 = hq4x

Best, Zenju



http://www.freefilesync.org/
http://sf.net/projects/hqmame/



xibic
Reged: 05/12/05
Posts: 237
Send PM


Re: HqxMAME - standard MAME plus support for hqx scaler new [Re: Zenju]
#296063 - 09/18/12 09:30 PM


hqnx+xbr would be ideal



Sorry for my poor english^^
エツ



B2K24
MAME @ 15 kHz Sony Trinitron CRT user
Reged: 10/25/10
Posts: 2549
Send PM


Re: HqxMAME - standard MAME plus support for hqx scaler new [Re: xibic]
#296070 - 09/18/12 10:46 PM


> hqnx+xbr would be ideal

so would posting in the proper forum and naming the current version of MAME correctly






kevenz
Reged: 04/25/11
Posts: 197
Send PM


Re: HqxMAME - standard MAME plus support for hqx scaler new [Re: Zenju]
#296077 - 09/19/12 12:43 AM


hqnx+xbr would be ideal

it would require a cpu that doesn't even exist to achieve 100% speed.

I'm happy with HLSL anyway.



Anonymous
Unregistered
Send PM


Re: HqxMAME - standard MAME plus support for hqx scaler new [Re: Zenju]
#296082 - 09/19/12 02:10 AM


> Hi,
>
> I've been searching for a version of recent MAME with support for HQX scalers. But
> all MAME variants I could find were pretty much outdated. So I created a new one:
>
> http://sourceforge.net/projects/hqxmame/

There appears to be a license issue, on the main page it says the project is GPL and it not possible to link MAME with GPL code. I'm not sure that sourceforge will allow you to host source that is licensed under the MAME license.



krick
Get Fuzzy
Reged: 02/09/04
Posts: 4186
Send PM


Re: HqxMAME - standard MAME plus support for hqx scaler new [Re: ]
#296084 - 09/19/12 02:38 AM


He might want to look into hosting on the Google code site.
There's several MAME related projects there...

http://code.google.com/hosting/search?q=mame&btn=Search+Projects



GroovyMAME support forum on BYOAC



wild eyed
Corcreeghagh
Reged: 09/23/03
Posts: 80
Send PM


Re: HqxMAME - standard MAME plus support for hqx scaler new [Re: Zenju]
#296086 - 09/19/12 02:44 AM


What does this version exactly. Please forgive my ignorance.



krick
Get Fuzzy
Reged: 02/09/04
Posts: 4186
Send PM


Re: HqxMAME - standard MAME plus support for hqx scaler new [Re: wild eyed]
#296087 - 09/19/12 02:50 AM


Just click on the link in the first post. It's pretty obvious.



GroovyMAME support forum on BYOAC



R. Belmont
Cuckoo for Konami
Reged: 09/21/03
Posts: 9606
Loc: ECV-197 The Orville
Send PM


Re: HqxMAME - standard MAME plus support for hqx scaler new [Re: wild eyed]
#296089 - 09/19/12 02:57 AM


> What does this version exactly. Please forgive my ignorance.

It gives MAME one of those appalling edge detection filters that some people like.



Anonymous
Unregistered
Send PM


Re: HqxMAME - standard MAME plus support for hqx scaler new [Re: krick]
#296118 - 09/19/12 11:25 AM


> He might want to look into hosting on the Google code site.
> There's several MAME related projects there...
>
> http://code.google.com/hosting/search?q=mame&btn=Search+Projects

I've not looked closely yet, but the sdl mame for wii in that list doesn't claim to be GPL. So thats a good start.



Zenju
MAME Fan
Reged: 09/18/12
Posts: 14
Send PM


Re: HqxMAME - standard MAME plus support for hqx scaler new [Re: ]
#296120 - 09/19/12 11:25 AM



Quote:


license issue



I'm not a lawyer, but I've only placed the "diff" under GPL, which is the source code for download on that site.



http://www.freefilesync.org/
http://sf.net/projects/hqmame/



Zenju
MAME Fan
Reged: 09/18/12
Posts: 14
Send PM


Re: HqxMAME - standard MAME plus support for hqx scaler new [Re: xibic]
#296121 - 09/19/12 11:33 AM


I will make a test with xBR. Unlike HQx however I couldn't find a standard repository of the source code. After some search I found
http://paintown.svn.sourceforge.net/viewvc/paintown/trunk/src/util/sdl/xbr.cpp
wich is marked as "Hyllian's 2xBR v3.3b".
If somebody knows a better source for xBR let me know!
Complicating the implementation, this source code deals with 16 bit 565 RGB, while I need 32 bit ARGB.



http://www.freefilesync.org/
http://sf.net/projects/hqmame/



xibic
Reged: 05/12/05
Posts: 237
Send PM


Re: HqxMAME - standard MAME plus support for hqx scaler new [Re: Zenju]
#296124 - 09/19/12 12:24 PM


https://github.com/libretro/common-shaders/tree/master/xBR

+

http://board.byuu.org/viewtopic.php?f=10&t=2248 --> contact hyllian here.

others source+infos:
http://neosource.1emu.net/forums/index.php?topic=1835.msg13204#msg13204


++



Sorry for my poor english^^
エツ



ReadOnly
MESSfan
Reged: 10/24/10
Posts: 106
Loc: Paris La Défense
Send PM


Re: HqxMAME - standard MAME plus support for hqx scaler new [Re: R. Belmont]
#296130 - 09/19/12 04:03 PM


>that some people like.

you mean those digital kids who have never seen an actual arcade cabinet and who want to play free old games with leet graphics?



Zenju
MAME Fan
Reged: 09/18/12
Posts: 14
Send PM


Re: HqxMAME - standard MAME plus support for hqx scaler new [Re: xibic]
#296143 - 09/19/12 07:50 PM Attachment: cmp.PNG 484 KB (2 downloads)


Good news: I am currently converting the v3.3b code to C++ and with support for 32-bit ARGB. And I have a working prototype:

[ATTACHED IMAGE - CLICK FOR FULL SIZE]

Attachment



Zenju
MAME Fan
Reged: 09/18/12
Posts: 14
Send PM


Re: HqxMAME - standard MAME plus support for hqx scaler new [Re: kevenz]
#296146 - 09/19/12 08:03 PM


Not sure about that:

First timings comparing a test suite with HQx, xBR:

2000 iterations, scaling factor 4

hq4x 6075ms
xbr4 1989ms

It's looking good...



Zenju
MAME Fan
Reged: 09/18/12
Posts: 14
Send PM


Re: HqxMAME - standard MAME plus support for hqx scaler new [Re: Zenju]
#296149 - 09/19/12 08:40 PM Attachment: hqx.png 443 KB (2 downloads)


Damn, I love this filter... The first time I heard about it half a year ago, there were apparent issues with distorting the image, but these seem to be resolved in v3.3:

HQ4x:

[ATTACHED IMAGE - CLICK FOR FULL SIZE]

Attachment



Zenju
MAME Fan
Reged: 09/18/12
Posts: 14
Send PM


Re: HqxMAME - standard MAME plus support for hqx scaler new [Re: Zenju]
#296151 - 09/19/12 08:41 PM Attachment: xbr.png 372 KB (1 downloads)


xBR4:

[ATTACHED IMAGE - CLICK FOR FULL SIZE]

Attachment



xibic
Reged: 05/12/05
Posts: 237
Send PM


Re: HqxMAME - standard MAME plus support for hqx scaler new [Re: kevenz]
#296183 - 09/20/12 10:21 AM


> it would require a cpu that doesn't even exist to achieve 100% speed.
>
> I'm happy with HLSL anyway.

it is sufficient to adapt the XBR code (cg shader) in HLSL to see lower resource consumption. I guess...^^



Zenju
MAME Fan
Reged: 09/18/12
Posts: 14
Send PM


Re: HqxMAME - standard MAME plus support for hqx scaler new [Re: xibic]
#296539 - 09/25/12 10:42 PM


Good news: Just released version 2 of HqMame (not HQxMame anymore) with support for multithreading and the xBR-z scaler as new default:

--------
|HqMAME|
--------

Usage:
hqmame -scaler

name:
2xbrz = Scale by Rules, Zenju mod, factor 2
3xbrz = Scale by Rules, Zenju mod, factor 3
4xbrz = Scale by Rules, Zenju mod, factor 4 (default)

hq2x = High quality scaler, factor 2
hq3x = High quality scaler, factor 3
hq4x = High quality scaler, factor 4

none = no scaling

-----------
|Changelog|
-----------

Version 2.0 - mame0147
----------------------
Added support for xBR-z scalers
4xBR-z new default scaler
Take advantage of multi-core CPUs for both emulation and scaling
Set "multithreading" active by default



xibic
Reged: 05/12/05
Posts: 237
Send PM


Re: HqxMAME - standard MAME plus support for hqx scaler new [Re: Zenju]
#296555 - 09/26/12 10:59 AM


Great, but you do not think it could be even better if you convert the Cg-shaders version in HLSL, resource level that might be better? (except if impossible)



Zenju
MAME Fan
Reged: 09/18/12
Posts: 14
Send PM


Re: HqxMAME - standard MAME plus support for hqx scaler new [Re: xibic]
#296565 - 09/26/12 02:41 PM


I'm not sure if it's worthwile. I don't think there is much of a performance problem left, and (for me) the hlsl code wouldn't be as convenient to maintain as C++.



Zenju
MAME Fan
Reged: 09/18/12
Posts: 14
Send PM


Re: HqxMAME - standard MAME plus support for hqx scaler new [Re: Zenju]
#296566 - 09/26/12 02:46 PM


BTW does someone think it makes sense to propose to include scaler support like this into standard MAME? I'm new to the MAME-dev scene, but from what I see in forum posts it seems, there are some ideologic debates about whether it is heresy to scale pixels or not. Given that it has taken me only about a week to include scaling support makes me wonder why standard MAME doesn't offer it as an option at least.



R. Belmont
Cuckoo for Konami
Reged: 09/21/03
Posts: 9606
Loc: ECV-197 The Orville
Send PM


Re: HqxMAME - standard MAME plus support for hqx scaler new [Re: Zenju]
#296567 - 09/26/12 03:01 PM


> BTW does someone think it makes sense to propose to include scaler support like this
> into standard MAME? I'm new to the MAME-dev scene, but from what I see in forum posts
> it seems, there are some ideologic debates about whether it is heresy to scale pixels
> or not. Given that it has taken me only about a week to include scaling support makes
> me wonder why standard MAME doesn't offer it as an option at least.

These scaling methods do not attempt to simulate the appearance of real arcade machines in any way (as e.g. MAME's HLSL framework does with the scanlines, phosphor triads, CRT curvature, etc, etc) so we are not interested. If you want to pretend arcade games looked like something they didn't that's your prerogative but MAMEdev is not in that business.



Anonymous
Unregistered
Send PM


Re: HqxMAME - standard MAME plus support for hqx scaler new [Re: Zenju]
#296583 - 09/26/12 06:55 PM


> license issue
> I'm not a lawyer, but I've only placed the "diff" under GPL, which is the source code
> for download on that site.

The GPL doesn't allow linking to mame source.



Zenju
MAME Fan
Reged: 09/18/12
Posts: 14
Send PM


Re: HqxMAME - standard MAME plus support for hqx scaler new [Re: ]
#296584 - 09/26/12 07:21 PM



Quote:


The GPL doesn't allow linking to mame source.



Okay, so I guess I'll have to add an exception to the GPL license.



Dullaron
Diablo III - Dunard #1884
Reged: 07/22/05
Posts: 5732
Loc: Fort Worth, Tx
Send PM


xbr look much better than the other one. new [Re: Zenju]
#296622 - 09/27/12 07:38 AM


Just letting you know.



xibic
Reged: 05/12/05
Posts: 237
Send PM


Re: HqxMAME - standard MAME plus support for hqx scaler new [Re: Zenju]
#296623 - 09/27/12 10:12 AM


it strikes me than the hyllian name should appear in the code



Zenju
MAME Fan
Reged: 09/18/12
Posts: 14
Send PM


Re: HqxMAME - standard MAME plus support for hqx scaler new [Re: xibic]
#296627 - 09/27/12 11:18 AM



Quote:


it strikes me than the hyllian name should appear in the code



It does.

Edited by Zenju (09/27/12 11:19 AM)


Pages: 1

MAMEWorld >> News
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  John IV, Tafoid 
1 registered and 29 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 4593