source: code/trunk/vendor/github.com/andybalholm/brotli/params.go@ 145

Last change on this file since 145 was 145, checked in by Izuru Yakumo, 22 months ago

Updated the Makefile and vendored depedencies

Signed-off-by: Izuru Yakumo <yakumo.izuru@…>

File size: 1.1 KB
RevLine 
[145]1package brotli
2
3/* Copyright 2017 Google Inc. All Rights Reserved.
4
5 Distributed under MIT license.
6 See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
7*/
8
9/* Parameters for the Brotli encoder with chosen quality levels. */
10type hasherParams struct {
11 type_ int
12 bucket_bits int
13 block_bits int
14 hash_len int
15 num_last_distances_to_check int
16}
17
18type distanceParams struct {
19 distance_postfix_bits uint32
20 num_direct_distance_codes uint32
21 alphabet_size uint32
22 max_distance uint
23}
24
25/* Encoding parameters */
26type encoderParams struct {
27 mode int
28 quality int
29 lgwin uint
30 lgblock int
31 size_hint uint
32 disable_literal_context_modeling bool
33 large_window bool
34 hasher hasherParams
35 dist distanceParams
36 dictionary encoderDictionary
37}
Note: See TracBrowser for help on using the repository browser.