Fix 3118622, where tile-base jpeg decode does not handle the region
width correctly in Progressive JPEG when the h_samp_factor is different from one color
component to anothor.

To decode a region in a progressive JPEG, each time we decode
one iMCU row, the width of which equals to the region width.
However, for each color component the region width in DCT blocks depends on its h_samp_factor.
The change ensures we get a correct region width from our recorded MCU_column number.

Bug: 3118622
Change-Id: I6d3e30f946e0395c0719aee0c8e694824ab3d27f
1 file changed
tree: 2d75e5cf30feb823dc3efaba45b73abfd77ed307
  1. Android.mk
  2. ansi2knr.1
  3. ansi2knr.c
  4. cderror.h
  5. cdjpeg.c
  6. cdjpeg.h
  7. change.log
  8. cjpeg.1
  9. cjpeg.c
  10. ckconfig.c
  11. CleanSpec.mk
  12. coderules.doc
  13. config.guess
  14. config.sub
  15. configure
  16. djpeg.1
  17. djpeg.c
  18. example.c
  19. filelist.doc
  20. install-sh
  21. install.doc
  22. jcapimin.c
  23. jcapistd.c
  24. jccoefct.c
  25. jccolor.c
  26. jcdctmgr.c
  27. jchuff.c
  28. jchuff.h
  29. jcinit.c
  30. jcmainct.c
  31. jcmarker.c
  32. jcmaster.c
  33. jcomapi.c
  34. jconfig.bcc
  35. jconfig.cfg
  36. jconfig.dj
  37. jconfig.doc
  38. jconfig.h
  39. jconfig.mac
  40. jconfig.manx
  41. jconfig.mc6
  42. jconfig.sas
  43. jconfig.st
  44. jconfig.vc
  45. jconfig.vms
  46. jconfig.wat
  47. jcparam.c
  48. jcphuff.c
  49. jcprepct.c
  50. jcsample.c
  51. jctrans.c
  52. jdapimin.c
  53. jdapistd.c
  54. jdatadst.c
  55. jdatasrc.c
  56. jdcoefct.c
  57. jdcolor.c
  58. jdct.h
  59. jddctmgr.c
  60. jdhuff.c
  61. jdhuff.h
  62. jdinput.c
  63. jdmainct.c
  64. jdmarker.c
  65. jdmaster.c
  66. jdmerge.c
  67. jdphuff.c
  68. jdpostct.c
  69. jdsample.c
  70. jdtrans.c
  71. jerror.c
  72. jerror.h
  73. jfdctflt.c
  74. jfdctfst.c
  75. jfdctint.c
  76. jidctflt.c
  77. jidctfst.c
  78. jidctfst.S
  79. jidctint.c
  80. jidctred.c
  81. jinclude.h
  82. jmem-android.c
  83. jmem-ashmem.c
  84. jmemansi.c
  85. jmemdos.c
  86. jmemdosa.asm
  87. jmemmac.c
  88. jmemmgr.c
  89. jmemname.c
  90. jmemnobs.c
  91. jmemsys.h
  92. jmorecfg.h
  93. jpegint.h
  94. jpeglib.h
  95. jpegtran.1
  96. jpegtran.c
  97. jquant1.c
  98. jquant2.c
  99. jutils.c
  100. jversion.h
  101. libjpeg.doc
  102. ltconfig
  103. ltmain.sh
  104. makcjpeg.st
  105. makdjpeg.st
  106. makeapps.ds
  107. makefile.ansi
  108. makefile.bcc
  109. makefile.cfg
  110. makefile.dj
  111. makefile.manx
  112. makefile.mc6
  113. makefile.mms
  114. makefile.sas
  115. makefile.unix
  116. makefile.vc
  117. makefile.vms
  118. makefile.wat
  119. makelib.ds
  120. makeproj.mac
  121. makljpeg.st
  122. maktjpeg.st
  123. makvms.opt
  124. MODULE_LICENSE_BSD_LIKE
  125. NOTICE
  126. rdbmp.c
  127. rdcolmap.c
  128. rdgif.c
  129. rdjpgcom.1
  130. rdjpgcom.c
  131. rdppm.c
  132. rdrle.c
  133. rdswitch.c
  134. rdtarga.c
  135. README
  136. structure.doc
  137. testimg.bmp
  138. testimg.jpg
  139. testimg.ppm
  140. testimgp.jpg
  141. testorig.jpg
  142. testprog.jpg
  143. ThirdPartyProject.prop
  144. transupp.c
  145. transupp.h
  146. usage.doc
  147. wizard.doc
  148. wrbmp.c
  149. wrgif.c
  150. wrjpgcom.1
  151. wrjpgcom.c
  152. wrppm.c
  153. wrrle.c
  154. wrtarga.c