turbojpeg.h: Parenthesize TJSCALED() dimension arg

This ensures that, for example,
TJSCALED(dim0 + dim1, sf)

will evaluate to
(((dim0 + dim1) * sf.num + sf.denom - 1) / sf.denom)

rather than
((dim0 + (dim1 * sf.num) + sf.denom - 1) / sf.denom)
1 file changed
tree: 91295e9c9833b55d244323153a7c5bcec4e54ccc
  1. cmakescripts/
  2. doc/
  3. java/
  4. md5/
  5. release/
  6. sharedlib/
  7. simd/
  8. testimages/
  9. win/
  10. .gitignore
  11. acinclude.m4
  12. bmp.c
  13. bmp.h
  14. BUILDING.txt
  15. cderror.h
  16. cdjpeg.c
  17. cdjpeg.h
  18. change.log
  19. ChangeLog.txt
  20. cjpeg.1
  21. cjpeg.c
  22. CMakeLists.txt
  23. coderules.txt
  24. configure.ac
  25. djpeg.1
  26. djpeg.c
  27. doxygen-extra.css
  28. doxygen.config
  29. example.c
  30. jaricom.c
  31. jcapimin.c
  32. jcapistd.c
  33. jcarith.c
  34. jccoefct.c
  35. jccolext.c
  36. jccolor.c
  37. jcdctmgr.c
  38. jchuff.c
  39. jchuff.h
  40. jcinit.c
  41. jcmainct.c
  42. jcmarker.c
  43. jcmaster.c
  44. jcomapi.c
  45. jconfig.h.in
  46. jconfig.txt
  47. jconfigint.h.in
  48. jcparam.c
  49. jcphuff.c
  50. jcprepct.c
  51. jcsample.c
  52. jcstest.c
  53. jctrans.c
  54. jdapimin.c
  55. jdapistd.c
  56. jdarith.c
  57. jdatadst-tj.c
  58. jdatadst.c
  59. jdatasrc-tj.c
  60. jdatasrc.c
  61. jdcoefct.c
  62. jdcolext.c
  63. jdcolor.c
  64. jdct.h
  65. jddctmgr.c
  66. jdhuff.c
  67. jdhuff.h
  68. jdinput.c
  69. jdmainct.c
  70. jdmarker.c
  71. jdmaster.c
  72. jdmerge.c
  73. jdmrgext.c
  74. jdphuff.c
  75. jdpostct.c
  76. jdsample.c
  77. jdtrans.c
  78. jerror.c
  79. jerror.h
  80. jfdctflt.c
  81. jfdctfst.c
  82. jfdctint.c
  83. jidctflt.c
  84. jidctfst.c
  85. jidctint.c
  86. jidctred.c
  87. jinclude.h
  88. jmemmgr.c
  89. jmemnobs.c
  90. jmemsys.h
  91. jmorecfg.h
  92. jpegcomp.h
  93. jpegint.h
  94. jpeglib.h
  95. jpegtran.1
  96. jpegtran.c
  97. jquant1.c
  98. jquant2.c
  99. jsimd.h
  100. jsimd_none.c
  101. jsimddct.h
  102. jutils.c
  103. jversion.h
  104. libjpeg.map.in
  105. libjpeg.txt
  106. Makefile.am
  107. rdbmp.c
  108. rdcolmap.c
  109. rdgif.c
  110. rdjpgcom.1
  111. rdjpgcom.c
  112. rdppm.c
  113. rdrle.c
  114. rdswitch.c
  115. rdtarga.c
  116. README
  117. README-turbo.txt
  118. structure.txt
  119. tjbench.c
  120. tjbenchtest.in
  121. tjbenchtest.java.in
  122. tjexampletest.in
  123. tjunittest.c
  124. tjutil.c
  125. tjutil.h
  126. transupp.c
  127. transupp.h
  128. turbojpeg-jni.c
  129. turbojpeg-mapfile
  130. turbojpeg-mapfile.jni
  131. turbojpeg.c
  132. turbojpeg.h
  133. usage.txt
  134. wizard.txt
  135. wrbmp.c
  136. wrgif.c
  137. wrjpgcom.1
  138. wrjpgcom.c
  139. wrppm.c
  140. wrrle.c
  141. wrtarga.c