MAMEWorld >> Programming
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

BartA
MAME Fan
Reged: 07/22/05
Posts: 8
Send PM
Re: Display information vs screen dumps
05/04/08 11:23 AM


This is too much for my small brain

> This explains why your screen shot is 256x224 but the "resolution" is 768x224. The
> screen shot is the actual pixel-by-pixel screen dump, the resolution is including all
> the timing information (we're going by the 18.342 MHz "master clock" (in the info
> case the pixel clock), which is divided by three to provide a 6.144 MHz signal that
> drives the video logic, described as "pixel clock" in the driver. What is 256 times
> 3? 768.

I saw the 256 - 768 relation, but the why is still not clear.

To explain why I want to know:

I made and host http://www.mamescore.net where players can submit their high scores and add a little bit of competition to the fun of playing MAME.
As part of the high score validation, players must submit a screenshot of the high score (done with F12).
To display the screen shots I take the width and height attributes of the display tag. (actually, I inserted all the information in a database).
In the past, this information was like this:

< video screen="raster" orientation="vertical" width="224" height="256" aspectx="3" aspecty="4" refresh="60.606060"/ >

And it was easy to get the width and the height, but now my windows sometimes look weird.

So, although the technical stuff is very interesting, I don't need it for my problem. I need a 'simple' equation to calculate the 'normal' width and height of a screenshot.

Edited by BartA (05/06/08 12:27 PM)







Entire thread
Subject Posted by Posted on
* Display information vs screen dumps BartA 05/03/08 10:33 PM
. * Regarding the highscore site Heihachi_73  05/26/08 11:30 PM
. * Re: Display information vs screen dumps Heihachi_73  05/26/08 08:54 PM
. * Re: Display information vs screen dumps StilettoAdministrator  05/04/08 09:23 AM
. * Re: Display information vs screen dumps BartA  05/04/08 11:23 AM
. * Re: Display information vs screen dumps R. Belmont  05/04/08 07:30 PM
. * Re: Display information vs screen dumps couriersud  05/04/08 03:11 PM
. * Re: Display information vs screen dumps Olivier Galibert  07/25/08 02:26 AM

Extra information Permissions
Moderator:  Pi 
0 registered and 56 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 5942