Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Unified Diff: third_party/libjpeg_turbo/rdppm.c

Issue 7554002: Updates libjpeg-turbo to 1.1.90 (r677) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/libjpeg_turbo/rdjpgcom.c ('k') | third_party/libjpeg_turbo/rdswitch.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libjpeg_turbo/rdppm.c
===================================================================
--- third_party/libjpeg_turbo/rdppm.c (revision 95020)
+++ third_party/libjpeg_turbo/rdppm.c (working copy)
@@ -2,6 +2,7 @@
* rdppm.c
*
* Copyright (C) 1991-1997, Thomas G. Lane.
+ * Modified 2009 by Bill Allombert, Guido Vollbeding.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
@@ -250,8 +251,8 @@
bufferptr = source->iobuffer;
for (col = cinfo->image_width; col > 0; col--) {
register int temp;
- temp = UCH(*bufferptr++);
- temp |= UCH(*bufferptr++) << 8;
+ temp = UCH(*bufferptr++) << 8;
+ temp |= UCH(*bufferptr++);
*ptr++ = rescale[temp];
}
return 1;
@@ -274,14 +275,14 @@
bufferptr = source->iobuffer;
for (col = cinfo->image_width; col > 0; col--) {
register int temp;
- temp = UCH(*bufferptr++);
- temp |= UCH(*bufferptr++) << 8;
+ temp = UCH(*bufferptr++) << 8;
+ temp |= UCH(*bufferptr++);
*ptr++ = rescale[temp];
- temp = UCH(*bufferptr++);
- temp |= UCH(*bufferptr++) << 8;
+ temp = UCH(*bufferptr++) << 8;
+ temp |= UCH(*bufferptr++);
*ptr++ = rescale[temp];
- temp = UCH(*bufferptr++);
- temp |= UCH(*bufferptr++) << 8;
+ temp = UCH(*bufferptr++) << 8;
+ temp |= UCH(*bufferptr++);
*ptr++ = rescale[temp];
}
return 1;
« no previous file with comments | « third_party/libjpeg_turbo/rdjpgcom.c ('k') | third_party/libjpeg_turbo/rdswitch.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698