Lines Matching refs:available_in
1466 size_t available_in = input_size; in BrotliEncoderCompress() local
1480 &available_in, &next_in, &available_out, &next_out, &total_out); in BrotliEncoderCompress()
1558 BrotliEncoderState* s, BrotliEncoderOperation op, size_t* available_in, in BrotliEncoderCompressStreamFast() argument
1563 BROTLI_MIN(size_t, *available_in, block_size_limit)); in BrotliEncoderCompressStreamFast()
1603 (*available_in != 0 || op != BROTLI_OPERATION_PROCESS)) { in BrotliEncoderCompressStreamFast()
1604 size_t block_size = BROTLI_MIN(size_t, block_size_limit, *available_in); in BrotliEncoderCompressStreamFast()
1606 (*available_in == block_size) && (op == BROTLI_OPERATION_FINISH); in BrotliEncoderCompressStreamFast()
1608 (*available_in == block_size) && (op == BROTLI_OPERATION_FLUSH); in BrotliEncoderCompressStreamFast()
1644 *available_in -= block_size; in BrotliEncoderCompressStreamFast()
1674 BrotliEncoderState* s, size_t* available_in, const uint8_t** next_in, in ProcessMetadata() argument
1676 if (*available_in > (1u << 24)) return BROTLI_FALSE; in ProcessMetadata()
1679 s->remaining_metadata_bytes_ = (uint32_t)*available_in; in ProcessMetadata()
1720 *available_in -= copy; in ProcessMetadata()
1730 *available_in -= copy; in ProcessMetadata()
1741 static void UpdateSizeHint(BrotliEncoderState* s, size_t available_in) { in UpdateSizeHint() argument
1744 uint64_t tail = available_in; in UpdateSizeHint()
1757 BrotliEncoderState* s, BrotliEncoderOperation op, size_t* available_in, in BrotliEncoderCompressStream() argument
1764 if (*available_in != s->remaining_metadata_bytes_) return BROTLI_FALSE; in BrotliEncoderCompressStream()
1771 s, available_in, next_in, available_out, next_out, total_out); in BrotliEncoderCompressStream()
1779 if (s->stream_state_ != BROTLI_STREAM_PROCESSING && *available_in != 0) { in BrotliEncoderCompressStream()
1784 return BrotliEncoderCompressStreamFast(s, op, available_in, next_in, in BrotliEncoderCompressStream()
1790 if (remaining_block_size != 0 && *available_in != 0) { in BrotliEncoderCompressStream()
1792 BROTLI_MIN(size_t, remaining_block_size, *available_in); in BrotliEncoderCompressStream()
1795 *available_in -= copy_input_size; in BrotliEncoderCompressStream()
1809 (*available_in == 0) && op == BROTLI_OPERATION_FINISH); in BrotliEncoderCompressStream()
1811 (*available_in == 0) && op == BROTLI_OPERATION_FLUSH); in BrotliEncoderCompressStream()
1813 UpdateSizeHint(s, *available_in); in BrotliEncoderCompressStream()