Lines Matching refs:result

376     const HuffmanCode* table, BrotliBitReader* br, uint32_t* result) {
382 *result = BROTLI_HC_FAST_LOAD_VALUE(table);
392 *result = BROTLI_HC_FAST_LOAD_VALUE(table);
411 *result = BROTLI_HC_FAST_LOAD_VALUE(table);
416 const HuffmanCode* table, BrotliBitReader* br, uint32_t* result) {
419 *result = DecodeSymbol(val, table, br);
422 return SafeDecodeSymbol(table, br, result);
446 uint32_t result = *value;
455 result = BROTLI_HC_FAST_LOAD_VALUE(ext);
460 return result;
464 uint32_t result = 0;
467 ++result;
469 return result;
788 BrotliDecoderErrorCode result =
790 if (result != BROTLI_DECODER_SUCCESS) {
791 return result;
819 BrotliDecoderErrorCode result = ReadCodeLengthCodeLengths(s);
820 if (result != BROTLI_DECODER_SUCCESS) {
821 return result;
843 BrotliDecoderErrorCode result = ReadSymbolCodeLengths(
845 if (result == BROTLI_DECODER_NEEDS_MORE_INPUT) {
846 result = SafeReadSymbolCodeLengths(alphabet_size_limit, s);
848 if (result != BROTLI_DECODER_SUCCESS) {
849 return result;
885 BrotliDecoderState* s, uint32_t* result, const HuffmanCode* table,
904 *result = offset + bits;
972 BrotliDecoderErrorCode result = ReadHuffmanCode(group->alphabet_size_max,
974 if (result != BROTLI_DECODER_SUCCESS) return result;
996 BrotliDecoderErrorCode result = BROTLI_DECODER_SUCCESS;
1001 result = DecodeVarLenUint8(s, br, num_htrees);
1002 if (result != BROTLI_DECODER_SUCCESS) {
1003 return result;
1042 result = ReadHuffmanCode(alphabet_size, alphabet_size,
1044 if (result != BROTLI_DECODER_SUCCESS) return result;
1389 BrotliDecoderErrorCode result;
1390 result = WriteRingBuffer(
1392 if (result != BROTLI_DECODER_SUCCESS) {
1393 return result;
1726 result = BROTLI_DECODER_NEEDS_MORE_INPUT; \
1738 BrotliDecoderErrorCode result = BROTLI_DECODER_SUCCESS;
1742 result = BROTLI_DECODER_NEEDS_MORE_INPUT;
1768 result = BROTLI_DECODER_NEEDS_MORE_INPUT;
1796 result = BROTLI_DECODER_NEEDS_MORE_INPUT;
1810 result = BROTLI_DECODER_NEEDS_MORE_INPUT;
1832 result = BROTLI_DECODER_NEEDS_MORE_INPUT;
1848 result = BROTLI_DECODER_NEEDS_MORE_INPUT;
2020 return result;
2039 BrotliDecoderResult result;
2048 result = BrotliDecoderDecompressStream(
2052 if (result != BROTLI_DECODER_RESULT_SUCCESS) {
2053 result = BROTLI_DECODER_RESULT_ERROR;
2055 return result;
2061 - when result is "needs more input", then at least one more byte is REQUIRED
2064 - when result is "needs more output" decoder MUST ensure that it doesn't
2067 - when result is "success" decoder MUST return all unused data back to input
2072 BrotliDecoderErrorCode result = BROTLI_DECODER_SUCCESS;
2094 result = BROTLI_DECODER_NEEDS_MORE_INPUT;
2099 if (result != BROTLI_DECODER_SUCCESS) {
2101 if (result == BROTLI_DECODER_NEEDS_MORE_INPUT) {
2107 result = intermediate_result;
2118 result = BROTLI_DECODER_SUCCESS;
2125 result = BROTLI_DECODER_SUCCESS;
2155 it would result in "needs more input". Reset internal buffer. */
2171 result = BROTLI_DECODER_NEEDS_MORE_INPUT;
2175 result = DecodeWindowBits(s, br); /* Reads 1..8 bits. */
2176 if (result != BROTLI_DECODER_SUCCESS) {
2188 result = BROTLI_DECODER_NEEDS_MORE_INPUT;
2193 result = BROTLI_FAILURE(BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS);
2209 result = BROTLI_FAILURE(BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES);
2225 result = DecodeMetaBlockLength(s, br); /* Reads 2 - 31 bits. */
2226 if (result != BROTLI_DECODER_SUCCESS) {
2235 result = BROTLI_FAILURE(BROTLI_DECODER_ERROR_FORMAT_PADDING_1);
2276 result = DecodeVarLenUint8(s, br, &s->num_block_types[s->loop_counter]);
2277 if (result != BROTLI_DECODER_SUCCESS) {
2292 result = ReadHuffmanCode(alphabet_size, alphabet_size,
2294 if (result != BROTLI_DECODER_SUCCESS) break;
2302 result = ReadHuffmanCode(alphabet_size, alphabet_size,
2304 if (result != BROTLI_DECODER_SUCCESS) break;
2313 result = BROTLI_DECODER_NEEDS_MORE_INPUT;
2323 result = CopyUncompressedBlockToOutput(
2325 if (result != BROTLI_DECODER_SUCCESS) {
2337 result = BROTLI_DECODER_NEEDS_MORE_INPUT;
2341 if (result == BROTLI_DECODER_SUCCESS) {
2349 result = BROTLI_DECODER_NEEDS_MORE_INPUT;
2360 result = BROTLI_FAILURE(BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES);
2369 result = ReadContextModes(s);
2370 if (result != BROTLI_DECODER_SUCCESS) {
2377 result = DecodeContextMap(
2380 if (result != BROTLI_DECODER_SUCCESS) {
2401 result = DecodeContextMap(
2404 if (result != BROTLI_DECODER_SUCCESS) {
2434 result = HuffmanTreeGroupDecode(hgroup, s);
2435 if (result != BROTLI_DECODER_SUCCESS) break;
2449 result = BROTLI_FAILURE(BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2);
2463 result = ProcessCommands(s);
2464 if (result == BROTLI_DECODER_NEEDS_MORE_INPUT) {
2465 result = SafeProcessCommands(s);
2474 result = WriteRingBuffer(
2476 if (result != BROTLI_DECODER_SUCCESS) {
2508 result = BROTLI_FAILURE(BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2);
2517 result = BROTLI_FAILURE(BROTLI_DECODER_ERROR_FORMAT_PADDING_2);
2530 result = WriteRingBuffer(
2532 if (result != BROTLI_DECODER_SUCCESS) {
2536 return SaveErrorCode(s, result);
2539 return SaveErrorCode(s, result);
2552 uint8_t* result = 0;
2561 status = WriteRingBuffer(s, &available_out, &result, 0, BROTLI_TRUE);
2571 result = 0;
2573 return result;