diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2015-12-28 14:22:28 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2015-12-28 14:22:28 +0000 |
commit | 954d7e9021f276f3bc0a0b8d9d0c7f7d77647642 (patch) | |
tree | 8f76c54921a49b877dfefb4f209753868f83524c /Build/source/texk/dvipdfm-x/bmpimage.c | |
parent | 813b4d405bc2fa02cb6a1fa04ec8cb1aff22dd86 (diff) |
texk/dvipdfm-x: patches from S. Hirata
git-svn-id: svn://tug.org/texlive/trunk@39216 c570f23f-e606-0410-a88d-b1316a301751
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; |