Lines Matching defs:data
51 /* Flushing compressed block and writing meta-data block header. */
84 block to unwire literal context from previous data. Despite being int8_t,
424 /* Try the more complex static context map only for long data. */
444 /* To make the analysis of the data faster we only examine 64 byte long
492 /* Gather bi-gram data of the UTF8 byte prefixes. To make the analysis of
493 UTF8 data faster we only examine 64 byte long strides at every 4kB
514 const uint8_t* data, const size_t mask, const uint64_t last_flush_pos,
529 ++literal_histo[data[pos & mask]];
542 const uint8_t* data, const size_t pos, const size_t mask,
547 !BrotliIsMostlyUTF8(data, pos, mask, length, kMinUTF8Ratio)) {
554 const uint8_t* data,
583 if (!ShouldCompress(data, mask, last_flush_pos, bytes,
588 BrotliStoreUncompressedMetaBlock(is_last, data,
598 BrotliStoreMetaBlockFast(m, data, wrapped_last_flush_pos,
604 BrotliStoreMetaBlockTrivial(m, data, wrapped_last_flush_pos,
617 data, wrapped_last_flush_pos, bytes, mask, params->quality,
621 BrotliBuildMetaBlockGreedy(m, data, wrapped_last_flush_pos, mask,
626 BrotliBuildMetaBlock(m, data, wrapped_last_flush_pos, mask, &block_params,
639 BrotliStoreMetaBlock(m, data, wrapped_last_flush_pos, bytes, mask,
656 BrotliStoreUncompressedMetaBlock(is_last, data,
844 Copies the given input data to the internal ring buffer of the compressor.
845 No processing of the data occurs at this time and this function can be
847 accumulated input. At most input_block_size() bytes of input data can be
860 hashing not depend on uninitialized data. This makes compression
878 data.
887 subsequent rounds data in the ring-buffer would be affected. */
898 memory. Due to performance reasons, hashing reads data using a
917 const uint8_t* data = s->ringbuffer_.buffer_;
931 while (*bytes != 0 && data[*wrapped_last_processed_pos & mask] ==
932 data[(*wrapped_last_processed_pos - cmd_dist) & mask]) {
949 Processes the accumulated input data and sets |*out_size| to the length of
951 created (in this case the processed input data is buffered internally).
953 data. If |is_last| or |force_flush| is BROTLI_TRUE, an output meta-block is
956 bits use WriteMetadata() to append an empty meta-data block.
957 Returns BROTLI_FALSE if the size of the input data is larger than
966 uint8_t* data;
972 data = s->ringbuffer_.buffer_;
1002 /* We have no new input data and we don't have to finish the stream, so
1015 m, &data[wrapped_last_processed_pos & mask],
1024 m, &data[wrapped_last_processed_pos & mask],
1058 InitOrStitchToPreviousBlock(m, &s->hasher_, data, mask, &s->params,
1062 &s->params, data, WrapPosition(s->last_flush_pos_),
1075 data, mask, literal_context_lut, &s->params,
1083 data, mask, literal_context_lut, &s->params,
1090 data, mask, literal_context_lut, &s->params,
1131 /* We have no new input data and we don't have to finish the stream, so
1148 m, data, mask, s->last_flush_pos_, metablock_size, is_last,
1160 s->prev_byte_ = data[((uint32_t)s->last_flush_pos_ - 1) & mask];
1163 s->prev_byte2_ = data[(uint32_t)(s->last_flush_pos_ - 2) & mask];
1435 /* Wraps data to uncompressed brotli stream with minimal window size.
1563 /* Injects padding bits or pushes compressed data to output.
1817 UpdateSizeHint(s, 0); /* First data metablock might be emitted here. */
1863 /* Compress data only when internal output buffer is empty, stream is not