3a2de853a9
So we can have 2 kind of builds with the Zip/Deflate codec: - zlib only - zlib + libdeflate Speed improvements in the 35%-50% range can be expected when libdeflate is used. Compression level up to 12 is now supported (capped to 9 when zlib is used). Still requires zlib for situations where libdeflate cannot be used (that is for scanline access, since libdeflate has no streaming mode) Pseudo-tag TIFFTAG_DEFLATE_SUBCODEC=DEFLATE_SUBCODEC_ZLIB/DEFLATE_SUBCODEC_LIBDEFLATE is added to control which subcodec (zlib or libdeflate) should be used (it defaults of course to libdeflate, when it is available). This is mostly aimed at being used on the writing side, to be able to reproduce output of previous libtiff versions at a binary level, in situations where this would be really needed. Or as a safety belt in case there would be unforeseen issues with using libdeflate. It can be used to know when libdeflate is available at runtime (DEFLATE_SUBCODEC_LIBDEFLATE will be the default value in that situation). Of course, deflate codestreams produced by libdeflate can be read by zlib, and vice-versa.
37 lines
746 B
YAML
37 lines
746 B
YAML
image: ubuntu:20.04
|
|
|
|
before_script:
|
|
- apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq autoconf automake build-essential cmake libtool libjpeg8-dev libjbig-dev liblzma-dev ninja-build zlib1g-dev libdeflate-dev zip wget
|
|
|
|
stages:
|
|
- build
|
|
- pages
|
|
|
|
autoconf:
|
|
stage: build
|
|
script:
|
|
- sh build/gitlab-ci autoconf
|
|
after_script:
|
|
- 'cat autoconf-build/test/test-suite.log'
|
|
|
|
cmake-makefiles:
|
|
stage: build
|
|
script:
|
|
- sh build/gitlab-ci cmake "Unix Makefiles" Release
|
|
|
|
cmake-ninja:
|
|
stage: build
|
|
script:
|
|
- sh build/gitlab-ci cmake "Ninja" Debug
|
|
|
|
pages:
|
|
stage: pages
|
|
script:
|
|
- cp -r html public
|
|
artifacts:
|
|
name: $CI_PROJECT_NAME-$CI_JOB_NAME
|
|
paths:
|
|
- public
|
|
only:
|
|
- master
|