• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

contrib/H03-May-2022-2,9552,159

doc/H03-May-2022-174147

example/H03-May-2022-

test/H03-May-2022-167166

AUTHORSH A D05-Mar-2014260 1811

COPYINGH A D22-Jun-200217.6 KiB340281

HISTORYH A D06-Mar-20142.3 KiB8871

Makefile.amH A D06-Mar-20148.3 KiB195176

Makefile.inH A D06-Mar-201434.2 KiB1,011899

READMEH A D05-Mar-20142.1 KiB7451

acinclude.m4H A D27-Feb-2011402 2117

aclocal.m4H A D05-Mar-201429.7 KiB836754

autogen.shH A D24-Apr-2003404 178

compileH A D29-Oct-20137.2 KiB348258

config.guessH A D29-Oct-201344.2 KiB1,5591,352

config.h.inH A D05-Mar-20144 KiB138102

config.subH A D29-Oct-201334.7 KiB1,7891,651

configureH A D05-Mar-2014176.8 KiB6,3045,242

configure.acH A D05-Mar-20141.1 KiB4736

configure.windows-x64H A D29-Apr-201168 41

configure.windows-x86H A D19-Mar-201164 31

file.cH A D03-May-20225.5 KiB236164

file.hH A D03-May-20221.2 KiB316

getopt.cH A D03-May-20222.6 KiB11476

install-shH A D29-Oct-201313.7 KiB528351

missingH A D29-Oct-20136.7 KiB216143

pixel.cH A D03-May-20221.6 KiB7444

pixel.hH A D03-May-20221.1 KiB316

portable.hH A D03-May-20221.2 KiB4717

scale2x.cH A D03-May-202241 KiB1,4631,021

scale2x.hH A D03-May-20224.5 KiB6932

scale3x.cH A D03-May-202223.5 KiB705542

scale3x.hH A D03-May-20221.5 KiB349

scalebit.cH A D03-May-202219 KiB512265

scalebit.hH A D03-May-20221.6 KiB445

scalerx.cH A D03-May-202236.3 KiB1,3771,107

scalex.cH A D03-May-20224.5 KiB190137

README

1Scale2x
2=======
3
4Scale2x, Scale3x and Scale4x are real-time graphics effects
5able to increase the size of small bitmaps guessing the
6missing pixels without blurring the images.
7
8They were originally developed for the AdvanceMAME project
9in the year 2001 to improve the quality of old games running
10at low video resolutions.
11
12The specification of the algorithm and more details are at :
13
14    http://scale2x.sourceforge.net
15
16This package contains some implementations of the effects
17in C and MMX Pentium assembler, and command line tools to
18convert manually .PNG images.
19
20
21Implementation
22==============
23
24The files scale2x.c and scale3x.c are the fast C and MMX
25implementations of the effects.
26
27The files scalebit.c and scalebit.h are the fast C implementations
28of the effects ready to be applied to a generic bitmap.
29Note that the implementation of the Scale4x effect is not
30obvious without using a big intermediate buffer.
31
32The files scalerx.c is a simple command line processors,
33which uses the reference implementation of the effects.
34
35The files scalex.c is another simple command line processors,
36which uses the fast implementation of the effects.
37
38
39Tools
40=====
41
42The command line tools "scalerx" and "scalex" read a .PNG file
43and write another .PNG file with the effect applied.
44The syntax of the programs is :
45
46    scalerx [-k N] [-w] FROM.png TO.png
47    scalex [-k N] FROM.png TO.png
48
49The option -k can be used to select the scale factor.
50The option -w can be used to scale textures with a wraparound effect.
51
52To compile the command line tool you need the libz and libpng
53libraries.
54
55
56Examples
57========
58
59The directory example/ contains some examples of the effects applyed
60to a generic image and to a test image.
61
62The suffix of the images means :
63    1 - Original image.
64    2 - Scale2x effect.
65    3 - Scale3x effect.
66    4 - Scale4x effect.
67    1x - Scaled normally 12 times.
68    2x - Scale2x effect and scaled normally up to 12 times.
69    3x - Scale3x effect and scaled normally up to 12 times.
70    4x - Scale4x effect and scaled normally up to 12 times.
71
72The `x' images have the same final size and can be used to compare
73pixel by pixel the result of the effects.
74