/third_party/node/deps/brotli/c/enc/ |
H A D | quality.h | 65 if (params->lgwin < BROTLI_MIN_WINDOW_BITS) { in SanitizeParams() 66 params->lgwin = BROTLI_MIN_WINDOW_BITS; in SanitizeParams() 70 if (params->lgwin > max_lgwin) params->lgwin = max_lgwin; in SanitizeParams() 79 lgblock = params->lgwin; in ComputeLgBlock() 84 if (params->quality >= 9 && params->lgwin > lgblock) { in ComputeLgBlock() 85 lgblock = BROTLI_MIN(int, 18, params->lgwin); in ComputeLgBlock() 95 Allocate at least lgwin + 1 bits for the ring buffer so that the newly 96 added block fits there completely and we still get lgwin bits and at least 100 return 1 + BROTLI_MAX(int, params->lgwin, param in ComputeRbBits() [all...] |
H A D | encode.c | 161 state->params.lgwin = (int)value; in BrotliEncoderSetParameter() 264 static void EncodeWindowBits(int lgwin, BROTLI_BOOL large_window, in EncodeWindowBits() argument 267 *last_bytes = (uint16_t)(((lgwin & 0x3F) << 8) | 0x11); in EncodeWindowBits() 270 if (lgwin == 16) { in EncodeWindowBits() 273 } else if (lgwin == 17) { in EncodeWindowBits() 276 } else if (lgwin > 17) { in EncodeWindowBits() 277 *last_bytes = (uint16_t)(((lgwin - 17) << 1) | 0x01); in EncodeWindowBits() 280 *last_bytes = (uint16_t)(((lgwin - 8) << 4) | 0x01); in EncodeWindowBits() 715 int lgwin = s->params.lgwin; in EnsureInitialized() local 1204 BrotliCompressBufferQuality10( int lgwin, size_t input_size, const uint8_t* input_buffer, size_t* encoded_size, uint8_t* encoded_buffer) BrotliCompressBufferQuality10() argument 1471 BrotliEncoderCompress( int quality, int lgwin, BrotliEncoderMode mode, size_t input_size, const uint8_t* input_buffer, size_t* encoded_size, uint8_t* encoded_buffer) BrotliEncoderCompress() argument [all...] |
H A D | params.h | 35 int lgwin; member
|
H A D | hash_to_binary_tree_inc.h | 63 self->window_mask_ = (1u << params->lgwin) - 1u; in Initialize() 84 size_t num_nodes = (size_t)1 << params->lgwin; in HashMemAllocInBytes()
|
H A D | backward_references_hq.c | 576 const size_t max_backward_limit = BROTLI_MAX_BACKWARD_LIMIT(params->lgwin); in BrotliZopfliCreateCommands() 622 const size_t max_backward_limit = BROTLI_MAX_BACKWARD_LIMIT(params->lgwin); in ZopfliIterate() 662 const size_t max_backward_limit = BROTLI_MAX_BACKWARD_LIMIT(params->lgwin); in BrotliZopfliComputeShortestPath() 745 const size_t max_backward_limit = BROTLI_MAX_BACKWARD_LIMIT(params->lgwin); in BrotliCreateHqZopfliBackwardReferences()
|
H A D | backward_references_inc.h | 18 const size_t max_backward_limit = BROTLI_MAX_BACKWARD_LIMIT(params->lgwin); in CreateBackwardReferences()
|
/third_party/skia/third_party/externals/brotli/c/enc/ |
H A D | quality.h | 65 if (params->lgwin < BROTLI_MIN_WINDOW_BITS) { in SanitizeParams() 66 params->lgwin = BROTLI_MIN_WINDOW_BITS; in SanitizeParams() 70 if (params->lgwin > max_lgwin) params->lgwin = max_lgwin; in SanitizeParams() 79 lgblock = params->lgwin; in ComputeLgBlock() 84 if (params->quality >= 9 && params->lgwin > lgblock) { in ComputeLgBlock() 85 lgblock = BROTLI_MIN(int, 18, params->lgwin); in ComputeLgBlock() 95 Allocate at least lgwin + 1 bits for the ring buffer so that the newly 96 added block fits there completely and we still get lgwin bits and at least 100 return 1 + BROTLI_MAX(int, params->lgwin, param in ComputeRbBits() [all...] |
H A D | encode.c | 161 state->params.lgwin = (int)value; in BrotliEncoderSetParameter() 264 static void EncodeWindowBits(int lgwin, BROTLI_BOOL large_window, in EncodeWindowBits() argument 267 *last_bytes = (uint16_t)(((lgwin & 0x3F) << 8) | 0x11); in EncodeWindowBits() 270 if (lgwin == 16) { in EncodeWindowBits() 273 } else if (lgwin == 17) { in EncodeWindowBits() 276 } else if (lgwin > 17) { in EncodeWindowBits() 277 *last_bytes = (uint16_t)(((lgwin - 17) << 1) | 0x01); in EncodeWindowBits() 280 *last_bytes = (uint16_t)(((lgwin - 8) << 4) | 0x01); in EncodeWindowBits() 715 int lgwin = s->params.lgwin; in EnsureInitialized() local 1204 BrotliCompressBufferQuality10( int lgwin, size_t input_size, const uint8_t* input_buffer, size_t* encoded_size, uint8_t* encoded_buffer) BrotliCompressBufferQuality10() argument 1471 BrotliEncoderCompress( int quality, int lgwin, BrotliEncoderMode mode, size_t input_size, const uint8_t* input_buffer, size_t* encoded_size, uint8_t* encoded_buffer) BrotliEncoderCompress() argument [all...] |
H A D | params.h | 35 int lgwin; member
|
H A D | hash_to_binary_tree_inc.h | 63 self->window_mask_ = (1u << params->lgwin) - 1u; in Initialize() 84 size_t num_nodes = (size_t)1 << params->lgwin; in HashMemAllocInBytes()
|
H A D | backward_references_hq.c | 576 const size_t max_backward_limit = BROTLI_MAX_BACKWARD_LIMIT(params->lgwin); in BrotliZopfliCreateCommands() 622 const size_t max_backward_limit = BROTLI_MAX_BACKWARD_LIMIT(params->lgwin); in ZopfliIterate() 662 const size_t max_backward_limit = BROTLI_MAX_BACKWARD_LIMIT(params->lgwin); in BrotliZopfliComputeShortestPath() 745 const size_t max_backward_limit = BROTLI_MAX_BACKWARD_LIMIT(params->lgwin); in BrotliCreateHqZopfliBackwardReferences()
|
H A D | backward_references_inc.h | 18 const size_t max_backward_limit = BROTLI_MAX_BACKWARD_LIMIT(params->lgwin); in CreateBackwardReferences()
|
/third_party/skia/third_party/externals/brotli/java/org/brotli/wrapper/enc/ |
H A D | Encoder.java | 30 private int lgwin = -1; field in Encoder.Parameters 36 this.lgwin = other.lgwin; in Parameters() 51 * @param lgwin log2(LZ window size), or -1 for default 53 public Parameters setWindow(int lgwin) { in setWindow() argument 54 if ((lgwin != -1) && ((lgwin < 10) || (lgwin > 24))) { in setWindow() 55 throw new IllegalArgumentException("lgwin should be in range [10, 24], or -1"); in setWindow() 57 this.lgwin in setWindow() [all...] |
H A D | EncoderJNI.java | 32 Wrapper(int inputBufferSize, int quality, int lgwin) in Wrapper() argument 39 this.context[3] = lgwin; in Wrapper()
|
H A 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()
|
/third_party/skia/third_party/externals/brotli/python/ |
H A D | brotli.py | 26 def compress(string, mode=MODE_GENERIC, quality=11, lgwin=22, lgblock=0): 36 lgwin (int, optional): Base 2 logarithm of the sliding window size. Range 48 compressor = Compressor(mode=mode, quality=quality, lgwin=lgwin,
|
H A D | _brotli.cc | 62 static int lgwin_convertor(PyObject *o, int *lgwin) { in lgwin_convertor() argument 64 PyErr_SetString(BrotliError, "Invalid lgwin"); in lgwin_convertor() 68 if (!as_bounded_int(o, lgwin, 10, 24)) { in lgwin_convertor() 69 PyErr_SetString(BrotliError, "Invalid lgwin. Range is 10 to 24."); in lgwin_convertor() 129 " Compressor(mode=MODE_GENERIC, quality=11, lgwin=22, lgblock=0)\n" 137 " lgwin (int, optional): Base 2 logarithm of the sliding window size. Range\n" 174 int lgwin = -1; in brotli_Compressor_init() local 178 static const char *kwlist[] = {"mode", "quality", "lgwin", "lgblock", NULL}; in brotli_Compressor_init() 184 &lgwin_convertor, &lgwin, in brotli_Compressor_init() 195 if (lgwin ! in brotli_Compressor_init() [all...] |
H A D | bro.py | 16 'lgwin': 22, 103 '--lgwin', 149 lgwin=options.lgwin,
|
/third_party/skia/third_party/externals/brotli/c/tools/ |
H A D | brotli.c | 93 int lgwin; member 345 fprintf(stderr, "lgwin parameter already set\n"); in ParseParams() 349 BROTLI_MAX_WINDOW_BITS, ¶ms->lgwin); in ParseParams() 351 fprintf(stderr, "error parsing lgwin value [%s]\n", argv[i]); in ParseParams() 354 if (params->lgwin != 0 && params->lgwin < BROTLI_MIN_WINDOW_BITS) { in ParseParams() 356 "lgwin parameter (%d) smaller than the minimum (%d)\n", in ParseParams() 357 params->lgwin, BROTLI_MIN_WINDOW_BITS); in ParseParams() 447 if (strncmp("lgwin", arg, key_len) == 0) { in ParseParams() 449 fprintf(stderr, "lgwin paramete in ParseParams() 998 uint32_t lgwin = DEFAULT_LGWIN; CompressFiles() local [all...] |
/third_party/node/deps/brotli/c/include/brotli/ |
H A D | encode.h | 293 * @note If @p lgwin is greater than ::BROTLI_MAX_WINDOW_BITS then resulting 299 * @param lgwin lgwin parameter value, e.g. ::BROTLI_DEFAULT_WINDOW 313 int quality, int lgwin, BrotliEncoderMode mode, size_t input_size,
|
/third_party/skia/third_party/externals/brotli/c/include/brotli/ |
H A D | encode.h | 293 * @note If @p lgwin is greater than ::BROTLI_MAX_WINDOW_BITS then resulting 299 * @param lgwin lgwin parameter value, e.g. ::BROTLI_DEFAULT_WINDOW 313 int quality, int lgwin, BrotliEncoderMode mode, size_t input_size,
|