The Independent JPEG Group's JPEG software v2

This commit is contained in:
Thomas G. Lane
1991-12-13 00:00:00 +00:00
committed by Kornel Lesiński
parent 7a9a82bf06
commit 98f16a9b4d
59 changed files with 4585 additions and 1143 deletions

View File

@@ -63,10 +63,10 @@ subsample (compress_info_ptr cinfo, int which_component,
for (v = 0; v < v_expand; v++) {
inptr = input_data[inrow+v] + (outcol*h_expand);
for (h = 0; h < h_expand; h++) {
outvalue += GETJSAMPLE(*inptr++);
outvalue += (INT32) GETJSAMPLE(*inptr++);
}
}
*outptr++ = (outvalue + numpix2) / numpix;
*outptr++ = (JSAMPLE) ((outvalue + numpix2) / numpix);
}
inrow += v_expand;
}