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

Side by Side Diff: jcparam.c

Issue 9232002: Update libjpeg-turbo to 1.2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libjpeg_turbo/
Patch Set: '' Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « jconfig.h ('k') | jdcolor.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * jcparam.c 2 * jcparam.c
3 * 3 *
4 * Copyright (C) 1991-1998, Thomas G. Lane. 4 * Copyright (C) 1991-1998, Thomas G. Lane.
5 * Modified 2003-2008 by Guido Vollbeding. 5 * Modified 2003-2008 by Guido Vollbeding.
6 * Copyright (C) 2009-2010, D. R. Commander. 6 * Copyright (C) 2009-2011, D. R. Commander.
7 * This file is part of the Independent JPEG Group's software. 7 * This file is part of the Independent JPEG Group's software.
8 * For conditions of distribution and use, see the accompanying README file. 8 * For conditions of distribution and use, see the accompanying README file.
9 * 9 *
10 * This file contains optional default-setting code for the JPEG compressor. 10 * This file contains optional default-setting code for the JPEG compressor.
11 * Applications do not have to use this file, but those that don't use it 11 * Applications do not have to use this file, but those that don't use it
12 * must know a lot more about the innards of the JPEG code. 12 * must know a lot more about the innards of the JPEG code.
13 */ 13 */
14 14
15 #define JPEG_INTERNALS 15 #define JPEG_INTERNALS
16 #include "jinclude.h" 16 #include "jinclude.h"
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 case JCS_GRAYSCALE: 391 case JCS_GRAYSCALE:
392 jpeg_set_colorspace(cinfo, JCS_GRAYSCALE); 392 jpeg_set_colorspace(cinfo, JCS_GRAYSCALE);
393 break; 393 break;
394 case JCS_RGB: 394 case JCS_RGB:
395 case JCS_EXT_RGB: 395 case JCS_EXT_RGB:
396 case JCS_EXT_RGBX: 396 case JCS_EXT_RGBX:
397 case JCS_EXT_BGR: 397 case JCS_EXT_BGR:
398 case JCS_EXT_BGRX: 398 case JCS_EXT_BGRX:
399 case JCS_EXT_XBGR: 399 case JCS_EXT_XBGR:
400 case JCS_EXT_XRGB: 400 case JCS_EXT_XRGB:
401 case JCS_EXT_RGBA:
402 case JCS_EXT_BGRA:
403 case JCS_EXT_ABGR:
404 case JCS_EXT_ARGB:
401 jpeg_set_colorspace(cinfo, JCS_YCbCr); 405 jpeg_set_colorspace(cinfo, JCS_YCbCr);
402 break; 406 break;
403 case JCS_YCbCr: 407 case JCS_YCbCr:
404 jpeg_set_colorspace(cinfo, JCS_YCbCr); 408 jpeg_set_colorspace(cinfo, JCS_YCbCr);
405 break; 409 break;
406 case JCS_CMYK: 410 case JCS_CMYK:
407 jpeg_set_colorspace(cinfo, JCS_CMYK); /* By default, no translation */ 411 jpeg_set_colorspace(cinfo, JCS_CMYK); /* By default, no translation */
408 break; 412 break;
409 case JCS_YCCK: 413 case JCS_YCCK:
410 jpeg_set_colorspace(cinfo, JCS_YCCK); 414 jpeg_set_colorspace(cinfo, JCS_YCCK);
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 scanptr = fill_scans(scanptr, ncomps, 6, 63, 0, 2); 640 scanptr = fill_scans(scanptr, ncomps, 6, 63, 0, 2);
637 /* Successive approximation second pass */ 641 /* Successive approximation second pass */
638 scanptr = fill_scans(scanptr, ncomps, 1, 63, 2, 1); 642 scanptr = fill_scans(scanptr, ncomps, 1, 63, 2, 1);
639 /* Successive approximation final pass */ 643 /* Successive approximation final pass */
640 scanptr = fill_dc_scans(scanptr, ncomps, 1, 0); 644 scanptr = fill_dc_scans(scanptr, ncomps, 1, 0);
641 scanptr = fill_scans(scanptr, ncomps, 1, 63, 1, 0); 645 scanptr = fill_scans(scanptr, ncomps, 1, 63, 1, 0);
642 } 646 }
643 } 647 }
644 648
645 #endif /* C_PROGRESSIVE_SUPPORTED */ 649 #endif /* C_PROGRESSIVE_SUPPORTED */
OLDNEW
« no previous file with comments | « jconfig.h ('k') | jdcolor.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698