/external/brotli/c/enc/ |
D | quality.h | 46 int lgwin; member 80 if (params->lgwin < BROTLI_MIN_WINDOW_BITS) { in SanitizeParams() 81 params->lgwin = BROTLI_MIN_WINDOW_BITS; in SanitizeParams() 82 } else if (params->lgwin > BROTLI_MAX_WINDOW_BITS) { in SanitizeParams() 83 params->lgwin = BROTLI_MAX_WINDOW_BITS; in SanitizeParams() 92 lgblock = params->lgwin; in ComputeLgBlock() 97 if (params->quality >= 9 && params->lgwin > lgblock) { in ComputeLgBlock() 98 lgblock = BROTLI_MIN(int, 18, params->lgwin); in ComputeLgBlock() 113 return 1 + BROTLI_MAX(int, params->lgwin, params->lgblock); in ComputeRbBits() 142 } else if (params->lgwin <= 16) { in ChooseHasher() [all …]
|
D | encode.c | 148 state->params.lgwin = (int)value; in BrotliEncoderSetParameter() 254 static void EncodeWindowBits(int lgwin, uint8_t* last_byte, in EncodeWindowBits() argument 256 if (lgwin == 16) { in EncodeWindowBits() 259 } else if (lgwin == 17) { in EncodeWindowBits() 262 } else if (lgwin > 17) { in EncodeWindowBits() 263 *last_byte = (uint8_t)(((lgwin - 17) << 1) | 1); in EncodeWindowBits() 266 *last_byte = (uint8_t)(((lgwin - 8) << 4) | 1); in EncodeWindowBits() 655 int lgwin = s->params.lgwin; in EnsureInitialized() local 658 lgwin = BROTLI_MAX(int, lgwin, 18); in EnsureInitialized() 660 EncodeWindowBits(lgwin, &s->last_byte_, &s->last_byte_bits_); in EnsureInitialized() [all …]
|
D | hash_to_binary_tree_inc.h | 68 self->window_mask_ = (1u << params->lgwin) - 1u; in FN() 88 size_t num_nodes = (size_t)1 << params->lgwin; in FN()
|
D | backward_references_inc.h | 18 const size_t max_backward_limit = BROTLI_MAX_BACKWARD_LIMIT(params->lgwin); in EXPORT_FN()
|
D | backward_references_hq.c | 696 const size_t max_backward_limit = BROTLI_MAX_BACKWARD_LIMIT(params->lgwin); in BrotliCreateZopfliBackwardReferences() 716 const size_t max_backward_limit = BROTLI_MAX_BACKWARD_LIMIT(params->lgwin); in BrotliCreateHqZopfliBackwardReferences()
|
/external/brotli/java/org/brotli/wrapper/enc/ |
D | Encoder.java | 29 private int lgwin = -1; field in Encoder.Parameters 35 this.lgwin = other.lgwin; in Parameters() 52 public Parameters setWindow(int lgwin) { in setWindow() argument 53 if ((lgwin != -1) && ((lgwin < 10) || (lgwin > 24))) { in setWindow() 56 this.lgwin = lgwin; in setWindow() 77 this.encoder = new EncoderJNI.Wrapper(inputBufferSize, params.quality, params.lgwin); in Encoder() 159 EncoderJNI.Wrapper encoder = new EncoderJNI.Wrapper(data.length, params.quality, params.lgwin); in compress()
|
D | encoder_jni.cc | 78 int lgwin = context[3]; in Java_org_brotli_wrapper_enc_EncoderJNI_nativeCreate() local 79 if (lgwin >= 0) { in Java_org_brotli_wrapper_enc_EncoderJNI_nativeCreate() 80 BrotliEncoderSetParameter(handle->state, BROTLI_PARAM_LGWIN, lgwin); in Java_org_brotli_wrapper_enc_EncoderJNI_nativeCreate()
|
D | EncoderJNI.java | 31 Wrapper(int inputBufferSize, int quality, int lgwin) in Wrapper() argument 35 this.context[3] = lgwin; in Wrapper()
|
/external/brotli/python/ |
D | brotli.py | 26 def compress(string, mode=MODE_GENERIC, quality=11, lgwin=22, lgblock=0): argument 48 compressor = Compressor(mode=mode, quality=quality, lgwin=lgwin,
|
D | _brotli.cc | 62 static int lgwin_convertor(PyObject *o, int *lgwin) { in lgwin_convertor() argument 68 if (!as_bounded_int(o, lgwin, 10, 24)) { in lgwin_convertor() 174 int lgwin = -1; in brotli_Compressor_init() local 184 &lgwin_convertor, &lgwin, in brotli_Compressor_init() 195 if (lgwin != -1) in brotli_Compressor_init() 196 BrotliEncoderSetParameter(self->enc, BROTLI_PARAM_LGWIN, (uint32_t)lgwin); in brotli_Compressor_init()
|
D | bro.py | 149 lgwin=options.lgwin,
|
/external/brotli/c/tools/ |
D | brotli.c | 88 int lgwin; member 283 BROTLI_MAX_WINDOW_BITS, ¶ms->lgwin); in ParseParams() 285 if (params->lgwin != 0 && params->lgwin < BROTLI_MIN_WINDOW_BITS) { in ParseParams() 345 BROTLI_MAX_WINDOW_BITS, ¶ms->lgwin); in ParseParams() 347 if (params->lgwin != 0 && params->lgwin < BROTLI_MIN_WINDOW_BITS) { in ParseParams() 760 BROTLI_PARAM_LGWIN, (uint32_t)context->lgwin); in CompressFiles() 782 context.lgwin = DEFAULT_LGWIN; in main()
|
D | brotli.md | 82 * `-w NUM`, `--lgwin=NUM`:
|
/external/brotli/c/include/brotli/ |
D | encode.h | 267 int quality, int lgwin, BrotliEncoderMode mode, size_t input_size,
|