summaryrefslogtreecommitdiff
path: root/tjbench.c
AgeCommit message (Collapse)Author
2020-08-07Update libjpeg-turbo to v2.0.5Jonathan Wright
Update Chromium's copy of libjpeg-turbo to the latest stable upstream release (v2.0.5) and reapply our local changes documented in README.chromium. This update addresses three CVEs - CVE-2018-19664, CVE-2018-20330, CVE-2018-20330 - that do not affect Chromium. The fixes do, however, satisfy UBSan - allowing Chromium's libjpeg-turbo to be used in AOSP. Cherry-pick one additional change[1] from upstream to prevent AArch64 Windows builds from failing. [1] https://github.com/libjpeg-turbo/libjpeg-turbo/commit/6ee5d5f568fda1a7c6a49dd8995f2d89866ee42d Bug: 922430 Bug: https://issuetracker.google.com/135180511 Change-Id: I146fe82f7a016ce393eb0d37aebe0b7c2492a9da
2020-06-19Move tbench logs from stdout to stderrJonathan Wright
gtest output prints to stdout. Printing unit test logs to stderr allows the two to be easily separated using stream redirection. Bug: 993876 Change-Id: I52d9d04ce7d6d883e9de09595fbe5a6de262c2ca
2020-06-16Refactor tjbench.c to provide test interfaceJonathan Wright
tjbench.c contains a program to benchmark encoding and decoding of JPEG images. As such, the code in tjbench.c was designed to run as a stanalone binary. As well as benchmarking code, tjbench is used to produce image data for unit test input. This commit refactors tjbench.c to provide an interface to run the tjbench code programmatically. A gtest wrapper containing unit tests will be introduced in a subsequent commit. All other global symbols in tjbench.c are marked as 'static' to prevent symbol collision. Bug: 993876 Change-Id: Ib8469d4ee8adee466f0b9d8a9dd696bd5ef7c205
2019-03-01Update libjpeg-turbo to v2.0.1Chris Blume
In order to apply some performance updates from ARM, we need to update libjpeg-turbo. These performance updates have yielded a 50% speedup on some devices. This CL updates our copy of libjpeg-turbo to v2.0.1 and re-applies our local patches. This patch also deletes some extra files which were not being used locally. Update our local patch that was applied to fix http://crbug.com/398235 (https://codereview.appspot.com/229430043/). The original patch incorrectly removed "& 0xFF" which limited an array index to within that array's bounds (effectively reverting https://github.com/libjpeg-turbo/libjpeg-turbo/commit/fa1d18385d904d530b4aec83ab7757a33397de6e). Restore the mask, making the array access safe and fixing a graphical glitch which would otherwise be introduced by this change. Bug:922430 Change-Id: I3860fdb424deecf7a17818ed09a640e632e71f8d
2016-05-04Update to libjpeg_turbo 1.4.90Tom Hudson
(Duplicate of https://codereview.chromium.org/1939823002/ for landing.) TBR=noel@chromium.org,thakis@chromium.org BUG=608347, 398235, 591927 Review URL: https://codereview.chromium.org/1953443002 .
2014-04-14Upgrade libjpeg_turbo to 1.3.1 (r1219)noel@chromium.org
Remove google.jdmarker.patch, since the fixes for CVE-2013-6629 and CVE-2013-6630 are upstream most everywhere now [1]. Version number to 1.3.1 (config.h, jconfig.h). README.chromium: "Fixed valgrind error" patch was upstreamed in r839 http://sourceforge.net/p/libjpeg-turbo/code/839. The r1188 cherry-pick was put in config.h, say that. [1] http://seclists.org/fulldisclosure/2013/Nov/83 TBR=darin@chromium.org BUG=258723, 299835 Review URL: https://codereview.appspot.com/87110044 git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/libjpeg_turbo@263594 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-19Update libjpeg-turbo to r856.hbono@chromium.org
BUG=132952 TEST=none Review URL: https://chromiumcodereview.appspot.com/10700197 git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/libjpeg_turbo@147403 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-05-11Update libjpeg-turbo.hbono@chromium.org
This change updates our copy of libjpeg-turbo to r829. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10386084 git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/libjpeg_turbo@136524 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-11-29Update libjpeg-turbo to r722.hbono@chromium.org
This change just updates our copy of libjpeg-turbo to r722. BUG=none TEST=none Review URL: http://codereview.chromium.org/8720003 git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/libjpeg_turbo@111873 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-08-03Updates libjpeg-turbo to 1.1.90hbono@chromium.org
This change updates our copy of libjpeg-turbo to 1.1.90 (r677), which supports ARM NEON. BUG=none TEST=none Review URL: http://codereview.chromium.org/7554002 git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/libjpeg_turbo@95196 4ff67af0-8c30-449e-8e8b-ad334ec8d88c