Files
roytam1 c22898df9e update 3rd party libraries:
- kiss_fft: update kiss_fft to MCP forked version
- libjpeg: update to https://github.com/libjpeg-turbo/libjpeg-turbo/commit/0dd9a2c1fd6c232021f66750d2b2846d5a646faf
- zlib: update to 1.2.11
- libogg: updated to upstream rev ea2b95940
- libtremor: updated to upstream rev 7c30a6634
- libvorbis: updated to upstream rev 4d6177c8a
- libtheora: cherry-picked some fixes from upstream:
* Sanity improvements to oc_dec_headerin() error returns. (50fd339b4)
* Fix mismatched oc_mb_fill_cmapping11 signature. (12f20c7a5)
* Correct an operator precedence error in the visualization code.  (6b94bf905)
* Remove some redundant NULL checks (de386d3ea)
2018-05-29 16:25:19 +08:00

29 lines
747 B
C

/*
* jcsample.h
*
* This file was part of the Independent JPEG Group's software:
* Copyright (C) 1991-1996, Thomas G. Lane.
* For conditions of distribution and use, see the accompanying README.ijg
* file.
*/
LOCAL(void)
expand_right_edge (JSAMPARRAY image_data, int num_rows,
JDIMENSION input_cols, JDIMENSION output_cols)
{
register JSAMPROW ptr;
register JSAMPLE pixval;
register int count;
int row;
int numcols = (int) (output_cols - input_cols);
if (numcols > 0) {
for (row = 0; row < num_rows; row++) {
ptr = image_data[row] + input_cols;
pixval = ptr[-1]; /* don't need GETJSAMPLE() here */
for (count = numcols; count > 0; count--)
*ptr++ = pixval;
}
}
}