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

Side by Side Diff: simd/jcsample.h

Issue 1953443002: Update to libjpeg_turbo 1.4.90 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libjpeg_turbo.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « simd/jcsammmx.asm ('k') | simd/jcsample-altivec.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * jcsample.h
3 *
4 * This file was part of the Independent JPEG Group's software:
5 * Copyright (C) 1991-1996, Thomas G. Lane.
6 * For conditions of distribution and use, see the accompanying README.ijg
7 * file.
8 */
9
10 LOCAL(void)
11 expand_right_edge (JSAMPARRAY image_data, int num_rows,
12 JDIMENSION input_cols, JDIMENSION output_cols)
13 {
14 register JSAMPROW ptr;
15 register JSAMPLE pixval;
16 register int count;
17 int row;
18 int numcols = (int) (output_cols - input_cols);
19
20 if (numcols > 0) {
21 for (row = 0; row < num_rows; row++) {
22 ptr = image_data[row] + input_cols;
23 pixval = ptr[-1]; /* don't need GETJSAMPLE() here */
24 for (count = numcols; count > 0; count--)
25 *ptr++ = pixval;
26 }
27 }
28 }
OLDNEW
« no previous file with comments | « simd/jcsammmx.asm ('k') | simd/jcsample-altivec.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698