|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 03-May-2022 | - |
| contrib/ | H | 03-May-2022 | - | 2,955 | 2,159 |
| doc/ | H | 03-May-2022 | - | 174 | 147 |
| example/ | H | 03-May-2022 | - | | |
| test/ | H | 03-May-2022 | - | 167 | 166 |
| AUTHORS | H A D | 05-Mar-2014 | 260 | 18 | 11 |
| COPYING | H A D | 22-Jun-2002 | 17.6 KiB | 340 | 281 |
| HISTORY | H A D | 06-Mar-2014 | 2.3 KiB | 88 | 71 |
| Makefile.am | H A D | 06-Mar-2014 | 8.3 KiB | 195 | 176 |
| Makefile.in | H A D | 06-Mar-2014 | 34.2 KiB | 1,011 | 899 |
| README | H A D | 05-Mar-2014 | 2.1 KiB | 74 | 51 |
| acinclude.m4 | H A D | 27-Feb-2011 | 402 | 21 | 17 |
| aclocal.m4 | H A D | 05-Mar-2014 | 29.7 KiB | 836 | 754 |
| autogen.sh | H A D | 24-Apr-2003 | 404 | 17 | 8 |
| compile | H A D | 29-Oct-2013 | 7.2 KiB | 348 | 258 |
| config.guess | H A D | 29-Oct-2013 | 44.2 KiB | 1,559 | 1,352 |
| config.h.in | H A D | 05-Mar-2014 | 4 KiB | 138 | 102 |
| config.sub | H A D | 29-Oct-2013 | 34.7 KiB | 1,789 | 1,651 |
| configure | H A D | 05-Mar-2014 | 176.8 KiB | 6,304 | 5,242 |
| configure.ac | H A D | 05-Mar-2014 | 1.1 KiB | 47 | 36 |
| configure.windows-x64 | H A D | 29-Apr-2011 | 68 | 4 | 1 |
| configure.windows-x86 | H A D | 19-Mar-2011 | 64 | 3 | 1 |
| file.c | H A D | 03-May-2022 | 5.5 KiB | 236 | 164 |
| file.h | H A D | 03-May-2022 | 1.2 KiB | 31 | 6 |
| getopt.c | H A D | 03-May-2022 | 2.6 KiB | 114 | 76 |
| install-sh | H A D | 29-Oct-2013 | 13.7 KiB | 528 | 351 |
| missing | H A D | 29-Oct-2013 | 6.7 KiB | 216 | 143 |
| pixel.c | H A D | 03-May-2022 | 1.6 KiB | 74 | 44 |
| pixel.h | H A D | 03-May-2022 | 1.1 KiB | 31 | 6 |
| portable.h | H A D | 03-May-2022 | 1.2 KiB | 47 | 17 |
| scale2x.c | H A D | 03-May-2022 | 41 KiB | 1,463 | 1,021 |
| scale2x.h | H A D | 03-May-2022 | 4.5 KiB | 69 | 32 |
| scale3x.c | H A D | 03-May-2022 | 23.5 KiB | 705 | 542 |
| scale3x.h | H A D | 03-May-2022 | 1.5 KiB | 34 | 9 |
| scalebit.c | H A D | 03-May-2022 | 19 KiB | 512 | 265 |
| scalebit.h | H A D | 03-May-2022 | 1.6 KiB | 44 | 5 |
| scalerx.c | H A D | 03-May-2022 | 36.3 KiB | 1,377 | 1,107 |
| scalex.c | H A D | 03-May-2022 | 4.5 KiB | 190 | 137 |
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