Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/thirdparty/brotli/README.md @ 2:b50eed0cc0ef upstream
ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4.
The directory name has changed: no version number in the expanded directory now.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 15 Sep 2025 11:43:07 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1:1d09e1dec1d9 | 2:b50eed0cc0ef |
|---|---|
| 1 <p align="center"> | |
| 2 <img src="https://github.com/google/brotli/actions/workflows/build_test.yml/badge.svg" alt="GitHub Actions Build Status" href="https://github.com/google/brotli/actions?query=branch%3Amaster"> | |
| 3 <img src="https://oss-fuzz-build-logs.storage.googleapis.com/badges/brotli.svg" alt="Fuzzing Status" href="https://oss-fuzz-build-logs.storage.googleapis.com/index.html#brotli"> | |
| 4 </p> | |
| 5 <p align="center"><img src="https://brotli.org/brotli.svg" alt="Brotli" width="64"></p> | |
| 6 | |
| 7 ### Introduction | |
| 8 | |
| 9 Brotli is a generic-purpose lossless compression algorithm that compresses data | |
| 10 using a combination of a modern variant of the LZ77 algorithm, Huffman coding | |
| 11 and 2nd order context modeling, with a compression ratio comparable to the best | |
| 12 currently available general-purpose compression methods. It is similar in speed | |
| 13 with deflate but offers more dense compression. | |
| 14 | |
| 15 The specification of the Brotli Compressed Data Format is defined in [RFC 7932](https://tools.ietf.org/html/rfc7932). | |
| 16 | |
| 17 Brotli is open-sourced under the MIT License, see the LICENSE file. | |
| 18 | |
| 19 > **Please note:** brotli is a "stream" format; it does not contain | |
| 20 > meta-information, like checksums or uncompresssed data length. It is possible | |
| 21 > to modify "raw" ranges of the compressed stream and the decoder will not | |
| 22 > notice that. | |
| 23 | |
| 24 ### Build instructions | |
| 25 | |
| 26 #### Vcpkg | |
| 27 | |
| 28 You can download and install brotli using the [vcpkg](https://github.com/Microsoft/vcpkg/) dependency manager: | |
| 29 | |
| 30 git clone https://github.com/Microsoft/vcpkg.git | |
| 31 cd vcpkg | |
| 32 ./bootstrap-vcpkg.sh | |
| 33 ./vcpkg integrate install | |
| 34 ./vcpkg install brotli | |
| 35 | |
| 36 The brotli port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository. | |
| 37 | |
| 38 #### Bazel | |
| 39 | |
| 40 See [Bazel](http://www.bazel.build/) | |
| 41 | |
| 42 #### CMake | |
| 43 | |
| 44 The basic commands to build and install brotli are: | |
| 45 | |
| 46 $ mkdir out && cd out | |
| 47 $ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./installed .. | |
| 48 $ cmake --build . --config Release --target install | |
| 49 | |
| 50 You can use other [CMake](https://cmake.org/) configuration. | |
| 51 | |
| 52 #### Python | |
| 53 | |
| 54 To install the latest release of the Python module, run the following: | |
| 55 | |
| 56 $ pip install brotli | |
| 57 | |
| 58 To install the tip-of-the-tree version, run: | |
| 59 | |
| 60 $ pip install --upgrade git+https://github.com/google/brotli | |
| 61 | |
| 62 See the [Python readme](python/README.md) for more details on installing | |
| 63 from source, development, and testing. | |
| 64 | |
| 65 ### Contributing | |
| 66 | |
| 67 We glad to answer/library related questions in | |
| 68 [brotli mailing list](https://groups.google.com/forum/#!forum/brotli). | |
| 69 | |
| 70 Regular issues / feature requests should be reported in | |
| 71 [issue tracker](https://github.com/google/brotli/issues). | |
| 72 | |
| 73 For reporting vulnerability please read [SECURITY](SECURITY.md). | |
| 74 | |
| 75 For contributing changes please read [CONTRIBUTING](CONTRIBUTING.md). | |
| 76 | |
| 77 ### Benchmarks | |
| 78 * [Squash Compression Benchmark](https://quixdb.github.io/squash-benchmark/) / [Unstable Squash Compression Benchmark](https://quixdb.github.io/squash-benchmark/unstable/) | |
| 79 * [Large Text Compression Benchmark](http://mattmahoney.net/dc/text.html) | |
| 80 * [Lzturbo Benchmark](https://sites.google.com/site/powturbo/home/benchmark) | |
| 81 | |
| 82 ### Related projects | |
| 83 > **Disclaimer:** Brotli authors take no responsibility for the third party projects mentioned in this section. | |
| 84 | |
| 85 Independent [decoder](https://github.com/madler/brotli) implementation by Mark Adler, based entirely on format specification. | |
| 86 | |
| 87 JavaScript port of brotli [decoder](https://github.com/devongovett/brotli.js). Could be used directly via `npm install brotli` | |
| 88 | |
| 89 Hand ported [decoder / encoder](https://github.com/dominikhlbg/BrotliHaxe) in haxe by Dominik Homberger. Output source code: JavaScript, PHP, Python, Java and C# | |
| 90 | |
| 91 7Zip [plugin](https://github.com/mcmilk/7-Zip-Zstd) | |
| 92 | |
| 93 Dart [native bindings](https://github.com/thosakwe/brotli) | |
| 94 | |
| 95 Dart compression framework with [fast FFI-based Brotli implementation](https://pub.dev/documentation/es_compression/latest/brotli/brotli-library.html) with ready-to-use prebuilt binaries for Win/Linux/Mac |
