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