tjLoadImage(): Don't convert RGB to grayscale

Loading RGB image files into a grayscale buffer isn't a particularly
useful feature, given that libjpeg-turbo can perform this conversion
much more optimally (with SIMD acceleration on some platforms) during
the compression process.  Also, the RGB2GRAY() macro was not producing
deterministic cross-platform results because of variations in the
round-off behavior of various floating point implementations, so
`tjunittest -bmp` was failing in i386 builds.
6 files changed
tree: c367b7e7f5d377079d1ca27dafe2f96e6c1f5cbe
  1. ci/
  2. cmakescripts/
  3. doc/
  4. java/
  5. md5/
  6. release/
  7. sharedlib/
  8. simd/
  9. testimages/
  10. win/
  11. .gitattributes
  12. .travis.yml
  13. appveyor.yml
  14. BUILDING.md
  15. cderror.h
  16. cdjpeg.c
  17. cdjpeg.h
  18. change.log
  19. ChangeLog.md
  20. cjpeg.1
  21. cjpeg.c
  22. CMakeLists.txt
  23. cmyk.h
  24. coderules.txt
  25. djpeg.1
  26. djpeg.c
  27. doxygen-extra.css
  28. doxygen.config
  29. example.txt
  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. jcicc.c
  41. jcinit.c
  42. jcmainct.c
  43. jcmarker.c
  44. jcmaster.c
  45. jcomapi.c
  46. jconfig.h.in
  47. jconfig.txt
  48. jconfigint.h.in
  49. jcparam.c
  50. jcphuff.c
  51. jcprepct.c
  52. jcsample.c
  53. jcstest.c
  54. jctrans.c
  55. jdapimin.c
  56. jdapistd.c
  57. jdarith.c
  58. jdatadst-tj.c
  59. jdatadst.c
  60. jdatasrc-tj.c
  61. jdatasrc.c
  62. jdcoefct.c
  63. jdcoefct.h
  64. jdcol565.c
  65. jdcolext.c
  66. jdcolor.c
  67. jdct.h
  68. jddctmgr.c
  69. jdhuff.c
  70. jdhuff.h
  71. jdicc.c
  72. jdinput.c
  73. jdmainct.c
  74. jdmainct.h
  75. jdmarker.c
  76. jdmaster.c
  77. jdmaster.h
  78. jdmerge.c
  79. jdmrg565.c
  80. jdmrgext.c
  81. jdphuff.c
  82. jdpostct.c
  83. jdsample.c
  84. jdsample.h
  85. jdtrans.c
  86. jerror.c
  87. jerror.h
  88. jfdctflt.c
  89. jfdctfst.c
  90. jfdctint.c
  91. jidctflt.c
  92. jidctfst.c
  93. jidctint.c
  94. jidctred.c
  95. jinclude.h
  96. jmemmgr.c
  97. jmemnobs.c
  98. jmemsys.h
  99. jmorecfg.h
  100. jpeg_nbits_table.h
  101. jpegcomp.h
  102. jpegint.h
  103. jpeglib.h
  104. jpegtran.1
  105. jpegtran.c
  106. jquant1.c
  107. jquant2.c
  108. jsimd.h
  109. jsimd_none.c
  110. jsimddct.h
  111. jstdhuff.c
  112. jutils.c
  113. jversion.h
  114. libjpeg.map.in
  115. libjpeg.txt
  116. LICENSE.md
  117. rdbmp.c
  118. rdcolmap.c
  119. rdgif.c
  120. rdjpgcom.1
  121. rdjpgcom.c
  122. rdppm.c
  123. rdrle.c
  124. rdswitch.c
  125. rdtarga.c
  126. README.ijg
  127. README.md
  128. structure.txt
  129. tjbench.c
  130. tjbenchtest.in
  131. tjbenchtest.java.in
  132. tjexample.c
  133. tjexampletest.in
  134. tjexampletest.java.in
  135. tjunittest.c
  136. tjutil.c
  137. tjutil.h
  138. transupp.c
  139. transupp.h
  140. turbojpeg-jni.c
  141. turbojpeg-mapfile
  142. turbojpeg-mapfile.jni
  143. turbojpeg.c
  144. turbojpeg.h
  145. usage.txt
  146. wizard.txt
  147. wrbmp.c
  148. wrgif.c
  149. wrjpgcom.1
  150. wrjpgcom.c
  151. wrppm.c
  152. wrrle.c
  153. wrtarga.c