diff options
Diffstat (limited to 'Build/source/texk/dvipdfm-x/bmpimage.c')
-rw-r--r-- | Build/source/texk/dvipdfm-x/bmpimage.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Build/source/texk/dvipdfm-x/bmpimage.c b/Build/source/texk/dvipdfm-x/bmpimage.c index 01b1993d520..d2c9428d5f1 100644 --- a/Build/source/texk/dvipdfm-x/bmpimage.c +++ b/Build/source/texk/dvipdfm-x/bmpimage.c @@ -269,6 +269,12 @@ bmp_include_image (pdf_ximage *ximage, FILE *fp) RELEASE(stream_data_ptr); } + /* Predictor is usually not so efficient for indexed images. */ + if (hdr.bit_count >= 24 && info.bits_per_component >= 8 && + info.height > 64) { + pdf_stream_set_predictor(stream, 15, info.width, + info.bits_per_component, info.num_components); + } pdf_ximage_set_image(ximage, &info, stream); return 0; |