Android 2.3 CTS release 10
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEABECAAYFAk7zphMACgkQ6K0/gZqxDnilsQCfU2uaNXb7AY0P7phNJ9oLdnr5
CtkAnjTVWe04/RJ44wHZhE+9A7xgSPwM
=9GO6
-----END PGP SIGNATURE-----
Do not merge.

Backport changes/fixes related to Jpeg tile-based decoder from Honeycomb
to Gingerbread.

Bug: 3309014

//////////////////////////////////////////////////////////////////////////
This is a combination of 5 commits.

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

libjpeg: Remove the old assembly code for ARM.

A much better one is coming.

Change-Id: I60d8c227d573fcbff10af363d69405e9fbd0c147

libjpeg: Use the new fast-and-accurate IDCT method for ARMv6+ devices.

As another AA&N implementation, it runs 9-10% faster than jidctfst.S
and 11-15% faster than jidctfst.c. As another IDCT method, it runs
17-20% faster than JDCT_ISLOW method and provides the same accuracy
or even better.

Change-Id: I81783c310d6dac5aaf84c03a4cf20662f466564c

libjpeg: Make both JDCT_IFAST and JDCT_ISLOW use armv6_idct.

Change-Id: Iae9c402ec7e1c6b078f404fec995162c8091f383

Fix the JPEG tile decode issue in the case of JPEGs having restart
markers.

The fix stores the restart information on each index point and restores
the restart information when we do the tile decode.

Bug: 3312406
////////////////////////////////////////////////////////////////////////////
8 files changed
tree: e366f62f3f33e52ae8a4bcc728b510dd64cbc5c1
  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. armv6_idct.S
  10. cderror.h
  11. cdjpeg.c
  12. cdjpeg.h
  13. change.log
  14. cjpeg.1
  15. cjpeg.c
  16. ckconfig.c
  17. coderules.doc
  18. config.guess
  19. config.sub
  20. configure
  21. djpeg.1
  22. djpeg.c
  23. example.c
  24. filelist.doc
  25. install-sh
  26. install.doc
  27. jcapimin.c
  28. jcapistd.c
  29. jccoefct.c
  30. jccolor.c
  31. jcdctmgr.c
  32. jchuff.c
  33. jchuff.h
  34. jcinit.c
  35. jcmainct.c
  36. jcmarker.c
  37. jcmaster.c
  38. jcomapi.c
  39. jconfig.bcc
  40. jconfig.cfg
  41. jconfig.dj
  42. jconfig.doc
  43. jconfig.h
  44. jconfig.mac
  45. jconfig.manx
  46. jconfig.mc6
  47. jconfig.sas
  48. jconfig.st
  49. jconfig.vc
  50. jconfig.vms
  51. jconfig.wat
  52. jcparam.c
  53. jcphuff.c
  54. jcprepct.c
  55. jcsample.c
  56. jctrans.c
  57. jdapimin.c
  58. jdapistd.c
  59. jdatadst.c
  60. jdatasrc.c
  61. jdcoefct.c
  62. jdcolor.c
  63. jdct.h
  64. jddctmgr.c
  65. jdhuff.c
  66. jdhuff.h
  67. jdinput.c
  68. jdmainct.c
  69. jdmarker.c
  70. jdmaster.c
  71. jdmerge.c
  72. jdphuff.c
  73. jdpostct.c
  74. jdsample.c
  75. jdtrans.c
  76. jerror.c
  77. jerror.h
  78. jfdctflt.c
  79. jfdctfst.c
  80. jfdctint.c
  81. jidctflt.c
  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