home *** CD-ROM | disk | FTP | other *** search
/ PC Shareware 1997 June / PC_Shareware-1997-06.iso / manga / mp2win95 / _setup.1 / SCALFACT.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-27  |  3.4 KB  |  107 lines

  1. /*
  2.  *  @(#) scalefactors.cc 1.5, last edit: 6/15/94 16:51:48
  3.  *  @(#) Copyright (C) 1993, 1994 Tobias Bading (bading@cs.tu-berlin.de)
  4.  *  @(#) Berlin University of Technology
  5.  *
  6.  *  This program is free software; you can redistribute it and/or modify
  7.  *  it under the terms of the GNU General Public License as published by
  8.  *  the Free Software Foundation; either version 2 of the License, or
  9.  *  (at your option) any later version.
  10.  *
  11.  *  This program is distributed in the hope that it will be useful,
  12.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  *  GNU General Public License for more details.
  15.  *
  16.  *  You should have received a copy of the GNU General Public License
  17.  *  along with this program; if not, write to the Free Software
  18.  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  */
  20.  
  21. /*
  22.  *  Changes from version 1.1 to 1.2:
  23.  *    - array size increased by one, although a scalefactor with index 63
  24.  *      is illegal (to prevent segmentation faults)
  25.  */
  26.  
  27. #define STRICT
  28. #define WIN32_LEAN_AND_MEAN
  29. #define NOMCX
  30. #define NOIME
  31. #define NOGDI
  32. #define NOUSER
  33. #define NOSOUND
  34. #define NOCOMM
  35. #define NODRIVERS
  36. #define OEMRESOURCE
  37. #define NONLS
  38. #define NOSERVICE
  39. #define NOKANJI
  40. #define NOMINMAX
  41. #define NOLOGERROR
  42. #define NOPROFILER
  43. #define NOMEMMGR
  44. #define NOLFILEIO
  45. #define NOOPENFILE
  46. #define NORESOURCE
  47. #define NOATOM
  48. #define NOLANGUAGE
  49. #define NOLSTRING
  50. #define NODBCS
  51. #define NOKEYBOARDINFO
  52. #define NOGDICAPMASKS
  53. #define NOCOLOR
  54. #define NOGDIOBJ
  55. #define NODRAWTEXT
  56. #define NOTEXTMETRIC
  57. #define NOSCALABLEFONT
  58. #define NOBITMAP
  59. #define NORASTEROPS
  60. #define NOMETAFILE
  61. #define NOSYSMETRICS
  62. #define NOSYSTEMPARAMSINFO
  63. #define NOMSG
  64. #define NOWINSTYLES
  65. #define NOWINOFFSETS
  66. #define NOSHOWWINDOW
  67. #define NODEFERWINDOWPOS
  68. #define NOVIRTUALKEYCODES
  69. #define NOKEYSTATES
  70. #define NOWH
  71. #define NOMENUS
  72. #define NOSCROLL
  73. #define NOCLIPBOARD
  74. #define NOICONS
  75. #define NOMB
  76. #define NOSYSCOMMANDS
  77. #define NOMDI
  78. #define NOCTLMGR
  79. #define NOWINMESSAGES
  80. #define NOHELP
  81. #define _WINUSER_
  82.  
  83. #include "scalfact.h"
  84.  
  85. // Scalefactors for layer I and II, Annex 3-B.1 in ISO/IEC DIS 11172:
  86. const real scalefactors[64] =
  87. {
  88.   2.00000000000000, 1.58740105196820, 1.25992104989487, 1.00000000000000,
  89.   0.79370052598410, 0.62996052494744, 0.50000000000000, 0.39685026299205,
  90.   0.31498026247372, 0.25000000000000, 0.19842513149602, 0.15749013123686,
  91.   0.12500000000000, 0.09921256574801, 0.07874506561843, 0.06250000000000,
  92.   0.04960628287401, 0.03937253280921, 0.03125000000000, 0.02480314143700,
  93.   0.01968626640461, 0.01562500000000, 0.01240157071850, 0.00984313320230,
  94.   0.00781250000000, 0.00620078535925, 0.00492156660115, 0.00390625000000,
  95.   0.00310039267963, 0.00246078330058, 0.00195312500000, 0.00155019633981,
  96.   0.00123039165029, 0.00097656250000, 0.00077509816991, 0.00061519582514,
  97.   0.00048828125000, 0.00038754908495, 0.00030759791257, 0.00024414062500,
  98.   0.00019377454248, 0.00015379895629, 0.00012207031250, 0.00009688727124,
  99.   0.00007689947814, 0.00006103515625, 0.00004844363562, 0.00003844973907,
  100.   0.00003051757813, 0.00002422181781, 0.00001922486954, 0.00001525878906,
  101.   0.00001211090890, 0.00000961243477, 0.00000762939453, 0.00000605545445,
  102.   0.00000480621738, 0.00000381469727, 0.00000302772723, 0.00000240310869,
  103.   0.00000190734863, 0.00000151386361, 0.00000120155435, 0.00000000000000 /* illegal scalefactor */
  104. };
  105.  
  106.  
  107.