/external/brotli/csharp/org/brotli/dec/ |
D | Transform.cs | 6 namespace Org.Brotli.Dec 34 …Brotli.Dec.Transform[] Transforms = new Org.Brotli.Dec.Transform[] { new Org.Brotli.Dec.Transform(… 35 …Brotli.Dec.WordTransformType.Identity, " "), new Org.Brotli.Dec.Transform(" ", Org.Brotli.Dec.Word… 36 …Brotli.Dec.WordTransformType.UppercaseFirst, " "), new Org.Brotli.Dec.Transform(string.Empty, Org.… 37 …Brotli.Dec.Transform("s ", Org.Brotli.Dec.WordTransformType.Identity, " "), new Org.Brotli.Dec.Tra… 38 …Brotli.Dec.Transform(string.Empty, Org.Brotli.Dec.WordTransformType.Identity, " and "), new Org.Br… 39 …Brotli.Dec.WordTransformType.OmitLast1, string.Empty), new Org.Brotli.Dec.Transform(", ", Org.Brot… 40 …Brotli.Dec.Transform(" ", Org.Brotli.Dec.WordTransformType.UppercaseFirst, " "), new Org.Brotli.De… 41 …Brotli.Dec.Transform("e ", Org.Brotli.Dec.WordTransformType.Identity, " "), new Org.Brotli.Dec.Tra… 42 …Brotli.Dec.WordTransformType.Identity, "."), new Org.Brotli.Dec.Transform(string.Empty, Org.Brotli… [all …]
|
D | Decode.cs | 6 namespace Org.Brotli.Dec 8 /// <summary>API for Brotli decompression.</summary> 45 private static int DecodeVarLenUnsignedByte(Org.Brotli.Dec.BitReader br) in DecodeVarLenUnsignedByte() 47 if (Org.Brotli.Dec.BitReader.ReadBits(br, 1) != 0) in DecodeVarLenUnsignedByte() 49 int n = Org.Brotli.Dec.BitReader.ReadBits(br, 3); in DecodeVarLenUnsignedByte() 56 return Org.Brotli.Dec.BitReader.ReadBits(br, n) + (1 << n); in DecodeVarLenUnsignedByte() 62 private static void DecodeMetaBlockLength(Org.Brotli.Dec.BitReader br, Org.Brotli.Dec.State state) in DecodeMetaBlockLength() 64 state.inputEnd = Org.Brotli.Dec.BitReader.ReadBits(br, 1) == 1; in DecodeMetaBlockLength() 68 if (state.inputEnd && Org.Brotli.Dec.BitReader.ReadBits(br, 1) != 0) in DecodeMetaBlockLength() 72 int sizeNibbles = Org.Brotli.Dec.BitReader.ReadBits(br, 2) + 4; in DecodeMetaBlockLength() [all …]
|
D | State.cs | 6 namespace Org.Brotli.Dec 10 internal int runningState = Org.Brotli.Dec.RunningState.Uninitialized; 14 internal readonly Org.Brotli.Dec.BitReader br = new Org.Brotli.Dec.BitReader(); 18 internal readonly int[] blockTypeTrees = new int[3 * Org.Brotli.Dec.Huffman.HuffmanMaxTableSize]; 20 internal readonly int[] blockLenTrees = new int[3 * Org.Brotli.Dec.Huffman.HuffmanMaxTableSize]; 30 internal readonly Org.Brotli.Dec.HuffmanTreeGroup hGroup0 = new Org.Brotli.Dec.HuffmanTreeGroup(); 32 internal readonly Org.Brotli.Dec.HuffmanTreeGroup hGroup1 = new Org.Brotli.Dec.HuffmanTreeGroup(); 34 internal readonly Org.Brotli.Dec.HuffmanTreeGroup hGroup2 = new Org.Brotli.Dec.HuffmanTreeGroup(); 116 private static int DecodeWindowBits(Org.Brotli.Dec.BitReader br) in DecodeWindowBits() 118 if (Org.Brotli.Dec.BitReader.ReadBits(br, 1) == 0) in DecodeWindowBits() [all …]
|
D | BitReader.cs | 6 namespace Org.Brotli.Dec 29 private readonly Org.Brotli.Dec.IntReader intReader = new Org.Brotli.Dec.IntReader(); 55 internal static void ReadMoreInput(Org.Brotli.Dec.BitReader br) in ReadMoreInput() 68 throw new Org.Brotli.Dec.BrotliRuntimeException("No more input"); in ReadMoreInput() 92 throw new Org.Brotli.Dec.BrotliRuntimeException("Failed to read input", e); in ReadMoreInput() 94 Org.Brotli.Dec.IntReader.Convert(br.intReader, bytesRead >> 2); in ReadMoreInput() 97 internal static void CheckHealth(Org.Brotli.Dec.BitReader br, bool endOfStream) in CheckHealth() 106 throw new Org.Brotli.Dec.BrotliRuntimeException("Read after end"); in CheckHealth() 110 throw new Org.Brotli.Dec.BrotliRuntimeException("Unused bytes after end"); in CheckHealth() 115 internal static void FillBitWindow(Org.Brotli.Dec.BitReader br) in FillBitWindow() [all …]
|
D | TransformTest.cs | 6 namespace Org.Brotli.Dec 36 …Org.Brotli.Dec.Transform transform = new Org.Brotli.Dec.Transform("[", Org.Brotli.Dec.WordTransfor… in TestTrimAll() 37 Org.Brotli.Dec.Transform.TransformDictionaryWord(output, 0, input, 0, input.Length, transform); in TestTrimAll() 49 …Org.Brotli.Dec.Transform transform = new Org.Brotli.Dec.Transform("[", Org.Brotli.Dec.WordTransfor… in TestCapitalize() 50 Org.Brotli.Dec.Transform.TransformDictionaryWord(output, 0, input, 0, input.Length, transform); in TestCapitalize() 65 for (int i = 0; i < Org.Brotli.Dec.Transform.Transforms.Length; ++i) in TestAllTransforms() 67 …offset += Org.Brotli.Dec.Transform.TransformDictionaryWord(output, offset, testWord, 0, testWord.L… in TestAllTransforms()
|
D | DecodeTest.cs | 6 namespace Org.Brotli.Dec 21 Org.Brotli.Dec.BrotliInputStream brotliInput = new Org.Brotli.Dec.BrotliInputStream(input); in Decompress() 58 …Org.Brotli.Dec.BrotliInputStream brotliInput = new Org.Brotli.Dec.BrotliInputStream(input, Org.Bro… in DecompressWithDictionary() 75 byte[] expectedBytes = Org.Brotli.Dec.Transform.ReadUniBytes(expected); in CheckDecodeResourceWithDictionary() 76 byte[] compressedBytes = Org.Brotli.Dec.Transform.ReadUniBytes(compressed); in CheckDecodeResourceWithDictionary() 77 byte[] dictionaryBytes = Org.Brotli.Dec.Transform.ReadUniBytes(dictionary); in CheckDecodeResourceWithDictionary() 85 byte[] expectedBytes = Org.Brotli.Dec.Transform.ReadUniBytes(expected); in CheckDecodeResource() 86 byte[] compressedBytes = Org.Brotli.Dec.Transform.ReadUniBytes(compressed); in CheckDecodeResource() 164 new Org.Brotli.Dec.Context(); in TestUtils() 165 new Org.Brotli.Dec.Decode(); in TestUtils() [all …]
|
D | BrotliInputStream.cs | 6 namespace Org.Brotli.Dec 10 /// decorator that decompresses brotli data. 27 private readonly Org.Brotli.Dec.State state = new Org.Brotli.Dec.State(); 32 /// wrapper that decompresses brotli data. 50 /// wrapper that decompresses brotli data. 71 /// wrapper that decompresses brotli data. 104 Org.Brotli.Dec.State.SetInput(state, source); in BrotliInputStream() 106 catch (Org.Brotli.Dec.BrotliRuntimeException ex) in BrotliInputStream() 108 throw new System.IO.IOException("Brotli decoder initialization failed", ex); in BrotliInputStream() 112 Org.Brotli.Dec.Decode.SetCustomDictionary(state, customDictionary); in BrotliInputStream() [all …]
|
D | BitReaderTest.cs | 6 namespace Org.Brotli.Dec 18 Org.Brotli.Dec.BitReader reader = new Org.Brotli.Dec.BitReader(); in TestReadAfterEos() 19 Org.Brotli.Dec.BitReader.Init(reader, new System.IO.MemoryStream(new byte[1])); in TestReadAfterEos() 20 Org.Brotli.Dec.BitReader.ReadBits(reader, 9); in TestReadAfterEos() 23 Org.Brotli.Dec.BitReader.CheckHealth(reader, false); in TestReadAfterEos() 25 catch (Org.Brotli.Dec.BrotliRuntimeException) in TestReadAfterEos()
|
D | HuffmanTreeGroup.cs | 6 namespace Org.Brotli.Dec 28 internal static void Init(Org.Brotli.Dec.HuffmanTreeGroup group, int alphabetSize, int n) in Init() 31 group.codes = new int[n * Org.Brotli.Dec.Huffman.HuffmanMaxTableSize]; in Init() 38 internal static void Decode(Org.Brotli.Dec.HuffmanTreeGroup group, Org.Brotli.Dec.BitReader br) in Decode() 45 Org.Brotli.Dec.Decode.ReadHuffmanCode(group.alphabetSize, group.codes, next, br); in Decode() 46 next += Org.Brotli.Dec.Huffman.HuffmanMaxTableSize; in Decode()
|
/external/brotli/ |
D | README.md | 1 <p align="center"><img src="https://brotli.org/brotli.svg" alt="Brotli" width="64"></p> 5 Please consider updating brotli to version 1.0.9 (latest). 11 Brotli is a generic-purpose lossless compression algorithm that compresses data 17 The specification of the Brotli Compressed Data Format is defined in [RFC 7932](https://tools.ietf.… 19 Brotli is open-sourced under the MIT License, see the LICENSE file. 21 Brotli mailing list: 22 https://groups.google.com/forum/#!forum/brotli 24 …I Build Status](https://travis-ci.org/google/brotli.svg?branch=master)](https://travis-ci.org/goog… 25 …om/api/projects/status/github/google/brotli?branch=master&svg=true)](https://ci.appveyor.com/proje… 26 …-logs.storage.googleapis.com/badges/brotli.svg)](https://oss-fuzz-build-logs.storage.googleapis.co… [all …]
|
D | README | 1 BROTLI DATA COMPRESSION LIBRARY 3 Brotli is a generic-purpose lossless compression algorithm that compresses data 9 The specification of the Brotli Compressed Data Format is defined in RFC 7932 12 Brotli is open-sourced under the MIT License, see the LICENSE file. 14 Brotli mailing list: 15 https://groups.google.com/forum/#!forum/brotli
|
/external/skia/third_party/brotli/ |
D | BUILD.gn | 8 third_party("brotli") { 9 public_include_dirs = [ "../externals/brotli/c/include" ] 11 # The only consumer of brotli is freetype and it only needs to decode brotli. 13 "../externals/brotli/c/common/constants.c", 14 "../externals/brotli/c/common/context.c", 15 "../externals/brotli/c/common/dictionary.c", 16 "../externals/brotli/c/common/platform.c", 17 "../externals/brotli/c/common/transform.c", 18 "../externals/brotli/c/dec/bit_reader.c", 19 "../externals/brotli/c/dec/decode.c", [all …]
|
/external/brotli/java/org/brotli/integration/ |
D | BUILD | 2 # Integration test runner + corpus for Java port of Brotli decoder. 8 "//org/brotli/wrapper/common:__pkg__", 9 "//org/brotli/wrapper/dec:__pkg__", 10 "//org/brotli/wrapper/enc:__pkg__", 18 "//org/brotli/wrapper/dec:__pkg__", 19 "//org/brotli/wrapper/enc:__pkg__", 28 "//org/brotli/dec", 34 main_class = "org.brotli.integration.BundleChecker", 40 args = ["org/brotli/integration/test_data.zip"], 42 main_class = "org.brotli.integration.BundleChecker", [all …]
|
/external/brotli/docs/ |
D | brotli.1 | 1 .TH "BROTLI" "1" "February 2018" "brotli 1.0.0" "User commands" 3 \fBbrotli\fR \- brotli, unbrotli \- compress or decompress files 6 \fBbrotli\fP [\fIOPTION|FILE\fR]\.\.\. 8 \fBunbrotli\fP is equivalent to \fBbrotli \-\-decompress\fP 11 \fBbrotli\fP is a generic\-purpose lossless compression algorithm that compresses 17 \fBbrotli\fP command line syntax similar to \fBgzip (1)\fP and \fBzstd (1)\fP\|\. 34 \fBbrotli\fP has 3 operation modes: 48 is "\fB\-\fP", \fBbrotli\fP reads from standard input\. All arguments after "\fB\-\-\fP" are 123 \fBbrotli\fP file format is defined in 126 \fBbrotli\fP is open\-sourced under the [all …]
|
D | constants.h.3 | 1 .TH "constants.h" 3 "Wed May 13 2020" "Brotli" \" -*- nroff -*- 16 .RI "\fIThe theoretical maximum number of distance bits specified for large window brotli, for 64-b… 20 .RI "\fIThe maximum supported large brotli window bits by the encoder and decoder\&. \fP" 36 …brotli, for 64-bit encoders and decoders\&. Even when in practice 32-bit encoders and decoders onl… 40 The maximum supported large brotli window bits by the encoder and decoder\&. Large window brotli al… 47 Generated automatically by Doxygen for Brotli from the source code\&.
|
/external/brotli/c/tools/ |
D | brotli.md | 1 brotli(1) -- brotli, unbrotli - compress or decompress files 7 `brotli` [*OPTION|FILE*]... 9 `unbrotli` is equivalent to `brotli --decompress` 13 `brotli` is a generic-purpose lossless compression algorithm that compresses 19 `brotli` command line syntax similar to `gzip (1)` and `zstd (1)`. 31 `brotli` has 3 operation modes: 40 is "`-`", `brotli` reads from standard input. All arguments after "`--`" are 97 `brotli` file format is defined in 100 `brotli` is open-sourced under the 103 Mailing list: https://groups.google.com/forum/#!forum/brotli [all …]
|
/external/brotli/tests/ |
D | roundtrip_test.sh | 3 # Roundtrip test for the brotli command-line tool. 5 # The first argument may be a wrapper for brotli, such as 'qemu-arm'. 10 BROTLI="${BROTLI_WRAPPER} bin/brotli" 28 $BROTLI -fq $quality $file -o $compressed 29 $BROTLI $compressed -fdo $uncompressed 32 cat $file | $BROTLI -cq $quality | $BROTLI -cd >$uncompressed
|
D | compatibility_test.sh | 3 # Test that the brotli command-line tool can decompress old brotli-compressed 6 # The first argument may be a wrapper for brotli, such as 'qemu-arm'. 11 BROTLI="${BROTLI_WRAPPER} bin/brotli" 19 $BROTLI $file -fdo $uncompressed 22 cat $file | $BROTLI -dc > $uncompressed
|
D | Makefile | 1 #brotli/tests 3 BROTLI = .. macro 12 $(MAKE) -C $(BROTLI) brotli 16 rm -f $(BROTLI)/{enc,dec,tools}/*.{un,}br 17 $(MAKE) -C $(BROTLI)/tools clean
|
/external/brotli/c/fuzz/ |
D | test_fuzzer.sh | 6 BROTLI="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../.." && pwd )" 7 SRC=$BROTLI/c 9 cd $BROTLI 15 cmake $BROTLI -DCMAKE_C_COMPILER="$CC" \ 24 unzip $BROTLI/java/org/brotli/integration/fuzz_data.zip -d decode_corpora 32 cd $BROTLI
|
/external/brotli/python/tests/ |
D | decompressor_test.py | 1 # Copyright 2016 The Brotli Authors. All rights reserved. 10 import brotli 22 self.decompressor = brotli.Decompressor() 47 with self.assertRaises(brotli.error): 48 self.decompressor.process(brotli.compress(b'a') + b'a') 51 self.decompressor.process(brotli.compress(b'a')) 52 with self.assertRaises(brotli.error):
|
D | decompress_test.py | 1 # Copyright 2016 The Brotli Authors. All rights reserved. 9 import brotli 28 out_file.write(brotli.decompress(in_file.read())) 35 with self.assertRaises(brotli.error): 36 brotli.decompress(brotli.compress(b'a') + b'a')
|
D | compressor_test.py | 1 # Copyright 2016 The Brotli Authors. All rights reserved. 10 import brotli 30 out_file.write(brotli.decompress(in_file.read())) 72 self.compressor = brotli.Compressor(quality=1) 78 self.compressor = brotli.Compressor(quality=6) 84 self.compressor = brotli.Compressor(quality=9) 90 self.compressor = brotli.Compressor(quality=11)
|
/external/brotli/scripts/ |
D | appveyor.yml | 74 sh -c "make brotli" && 75 cd bin && 7z a -tzip -mx9 brotli-win-%ARCH%-%RELEASE_DATE%.zip brotli.exe && 76 appveyor PushArtifact brotli-win-%ARCH%-%RELEASE_DATE%.zip && cd .. 80 %ROOT%\bazel.exe --batch build -c opt org/brotli/wrapper/...:all && 83 7z a -tzip -mx9 brotli-win-bazel-jni-%RELEASE_DATE%.zip brotli_jni.dll && 84 appveyor PushArtifact brotli-win-bazel-jni-%RELEASE_DATE%.zip && 95 %ROOT%\bazel.exe --batch test -c opt --test_output streamed org/brotli/wrapper/...:all && 107 repo: brotli
|
/external/brotli/java/org/brotli/wrapper/enc/ |
D | BUILD | 30 "//org/brotli/integration:brotli_jni_test_base", 31 "//org/brotli/integration:bundle_helper", 32 "//org/brotli/wrapper/dec", 39 srcs = ["//org/brotli/integration:test_corpus"], 54 test_class = "org.brotli.wrapper.enc.BrotliEncoderChannelTest", 70 test_class = "org.brotli.wrapper.enc.BrotliOutputStreamTest", 86 test_class = "org.brotli.wrapper.enc.EncoderTest",
|