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

Side by Side Diff: third_party/libjpeg/fpdfapi_jidctred.c

Issue 1433803002: Get rid of _FX_JPEG_TURBO_ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « third_party/libjpeg/fpdfapi_jidctint.c ('k') | third_party/libjpeg/fpdfapi_jmemmgr.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 #if !defined(_FX_JPEG_TURBO_)
2 /* 1 /*
3 * jidctred.c 2 * jidctred.c
4 * 3 *
5 * Copyright (C) 1994-1998, Thomas G. Lane. 4 * Copyright (C) 1994-1998, Thomas G. Lane.
6 * This file is part of the Independent JPEG Group's software. 5 * This file is part of the Independent JPEG Group's software.
7 * For conditions of distribution and use, see the accompanying README file. 6 * For conditions of distribution and use, see the accompanying README file.
8 * 7 *
9 * This file contains inverse-DCT routines that produce reduced-size output: 8 * This file contains inverse-DCT routines that produce reduced-size output:
10 * either 4x4, 2x2, or 1x1 pixels from an 8x8 DCT block. 9 * either 4x4, 2x2, or 1x1 pixels from an 8x8 DCT block.
11 * 10 *
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 * average pixel value, which is one-eighth of the DC coefficient. 389 * average pixel value, which is one-eighth of the DC coefficient.
391 */ 390 */
392 quantptr = (ISLOW_MULT_TYPE *) compptr->dct_table; 391 quantptr = (ISLOW_MULT_TYPE *) compptr->dct_table;
393 dcval = DEQUANTIZE(coef_block[0], quantptr[0]); 392 dcval = DEQUANTIZE(coef_block[0], quantptr[0]);
394 dcval = (int) DESCALE((INT32) dcval, 3); 393 dcval = (int) DESCALE((INT32) dcval, 3);
395 394
396 output_buf[0][output_col] = range_limit[dcval & RANGE_MASK]; 395 output_buf[0][output_col] = range_limit[dcval & RANGE_MASK];
397 } 396 }
398 397
399 #endif /* IDCT_SCALING_SUPPORTED */ 398 #endif /* IDCT_SCALING_SUPPORTED */
400
401 #endif //_FX_JPEG_TURBO_
OLDNEW
« no previous file with comments | « third_party/libjpeg/fpdfapi_jidctint.c ('k') | third_party/libjpeg/fpdfapi_jmemmgr.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698