mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-15 02:32:29 +03:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
32590baeec
commit
45fb0626b3
|
@ -625,7 +625,7 @@ class TestFileJpeg:
|
||||||
qtable_from_quality = self.roundtrip(im, quality=quality).quantization
|
qtable_from_quality = self.roundtrip(im, quality=quality).quantization
|
||||||
|
|
||||||
assert qtable_from_qtable_quality == qtable_from_quality
|
assert qtable_from_qtable_quality == qtable_from_quality
|
||||||
|
|
||||||
# list of qtable lists
|
# list of qtable lists
|
||||||
assert_image_similar(
|
assert_image_similar(
|
||||||
im,
|
im,
|
||||||
|
|
|
@ -196,7 +196,11 @@ ImagingJpegEncode(Imaging im, ImagingCodecState state, UINT8 *buf, int bytes) {
|
||||||
// jpeg_set_defaults created two qtables internally, but we only
|
// jpeg_set_defaults created two qtables internally, but we only
|
||||||
// wanted one.
|
// wanted one.
|
||||||
jpeg_add_quant_table(
|
jpeg_add_quant_table(
|
||||||
&context->cinfo, 1, &context->qtables[0], scale_factor, force_baseline
|
&context->cinfo,
|
||||||
|
1,
|
||||||
|
&context->qtables[0],
|
||||||
|
scale_factor,
|
||||||
|
force_baseline
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
for (i = last_q; i < context->cinfo.num_components; i++) {
|
for (i = last_q; i < context->cinfo.num_components; i++) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user