mirror of
https://github.com/webmproject/libwebp.git
synced 2025-02-21 11:22:52 +01:00
normalize label indent
1 space is most common in the source; this fixes some mixed cases within lossless files, likely from clang-format Change-Id: I504206d5bf418781d4131ee73570ecee4e0a69a1
This commit is contained in:
parent
0957fd69ee
commit
10c5084842
@ -675,7 +675,7 @@ static int BackwardReferencesHashChainDistanceOnly(
|
|||||||
}
|
}
|
||||||
|
|
||||||
ok = !refs->error_;
|
ok = !refs->error_;
|
||||||
Error:
|
Error:
|
||||||
if (cc_init) VP8LColorCacheClear(&hashers);
|
if (cc_init) VP8LColorCacheClear(&hashers);
|
||||||
CostManagerClear(cost_manager);
|
CostManagerClear(cost_manager);
|
||||||
WebPSafeFree(cost_model);
|
WebPSafeFree(cost_model);
|
||||||
|
@ -851,7 +851,7 @@ static int CalculateBestCacheSize(const uint32_t* argb, int quality,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
ok = 1;
|
ok = 1;
|
||||||
Error:
|
Error:
|
||||||
for (i = 0; i <= cache_bits_max; ++i) {
|
for (i = 0; i <= cache_bits_max; ++i) {
|
||||||
if (cc_init[i]) VP8LColorCacheClear(&hashers[i]);
|
if (cc_init[i]) VP8LColorCacheClear(&hashers[i]);
|
||||||
VP8LFreeHistogram(histos[i]);
|
VP8LFreeHistogram(histos[i]);
|
||||||
@ -1031,7 +1031,7 @@ static int GetBackwardReferences(int width, int height,
|
|||||||
}
|
}
|
||||||
status = 1;
|
status = 1;
|
||||||
|
|
||||||
Error:
|
Error:
|
||||||
VP8LHashChainClear(&hash_chain_box);
|
VP8LHashChainClear(&hash_chain_box);
|
||||||
VP8LFreeHistogram(histo);
|
VP8LFreeHistogram(histo);
|
||||||
return status;
|
return status;
|
||||||
|
@ -1035,7 +1035,7 @@ static int HistogramCombineStochastic(VP8LHistogramSet* const image_histo,
|
|||||||
*do_greedy = (*num_used <= min_cluster_size);
|
*do_greedy = (*num_used <= min_cluster_size);
|
||||||
ok = 1;
|
ok = 1;
|
||||||
|
|
||||||
End:
|
End:
|
||||||
HistoQueueClear(&histo_queue);
|
HistoQueueClear(&histo_queue);
|
||||||
WebPSafeFree(mappings);
|
WebPSafeFree(mappings);
|
||||||
return ok;
|
return ok;
|
||||||
@ -1252,7 +1252,7 @@ int VP8LGetHistoImageSymbols(int xsize, int ysize,
|
|||||||
goto Error;
|
goto Error;
|
||||||
}
|
}
|
||||||
|
|
||||||
Error:
|
Error:
|
||||||
VP8LFreeHistogramSet(orig_histo);
|
VP8LFreeHistogramSet(orig_histo);
|
||||||
WebPSafeFree(map_tmp);
|
WebPSafeFree(map_tmp);
|
||||||
return (pic->error_code == VP8_ENC_OK);
|
return (pic->error_code == VP8_ENC_OK);
|
||||||
|
@ -1101,7 +1101,7 @@ static int EncodeImageNoHuffman(VP8LBitWriter* const bw,
|
|||||||
goto Error;
|
goto Error;
|
||||||
}
|
}
|
||||||
|
|
||||||
Error:
|
Error:
|
||||||
WebPSafeFree(tokens);
|
WebPSafeFree(tokens);
|
||||||
WebPSafeFree(huff_tree);
|
WebPSafeFree(huff_tree);
|
||||||
VP8LFreeHistogramSet(histogram_image);
|
VP8LFreeHistogramSet(histogram_image);
|
||||||
@ -1333,7 +1333,7 @@ static int EncodeImageInternal(
|
|||||||
goto Error;
|
goto Error;
|
||||||
}
|
}
|
||||||
|
|
||||||
Error:
|
Error:
|
||||||
WebPSafeFree(tokens);
|
WebPSafeFree(tokens);
|
||||||
WebPSafeFree(huff_tree);
|
WebPSafeFree(huff_tree);
|
||||||
VP8LFreeHistogramSet(histogram_image);
|
VP8LFreeHistogramSet(histogram_image);
|
||||||
@ -1942,7 +1942,7 @@ static int EncodeStreamHook(void* input, void* data2) {
|
|||||||
}
|
}
|
||||||
VP8LBitWriterSwap(&bw_best, bw);
|
VP8LBitWriterSwap(&bw_best, bw);
|
||||||
|
|
||||||
Error:
|
Error:
|
||||||
VP8LBitWriterWipeOut(&bw_best);
|
VP8LBitWriterWipeOut(&bw_best);
|
||||||
// The hook should return false in case of error.
|
// The hook should return false in case of error.
|
||||||
return (params->picture_->error_code == VP8_ENC_OK);
|
return (params->picture_->error_code == VP8_ENC_OK);
|
||||||
@ -2089,7 +2089,7 @@ int VP8LEncodeStream(const WebPConfig* const config,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Error:
|
Error:
|
||||||
VP8LBitWriterWipeOut(&bw_side);
|
VP8LBitWriterWipeOut(&bw_side);
|
||||||
VP8LEncoderDelete(enc_main);
|
VP8LEncoderDelete(enc_main);
|
||||||
VP8LEncoderDelete(enc_side);
|
VP8LEncoderDelete(enc_side);
|
||||||
@ -2181,7 +2181,7 @@ int VP8LEncodeImage(const WebPConfig* const config,
|
|||||||
memset(picture->extra_info, 0, mb_w * mb_h * sizeof(*picture->extra_info));
|
memset(picture->extra_info, 0, mb_w * mb_h * sizeof(*picture->extra_info));
|
||||||
}
|
}
|
||||||
|
|
||||||
Error:
|
Error:
|
||||||
if (bw.error_) {
|
if (bw.error_) {
|
||||||
WebPEncodingSetError(picture, VP8_ENC_ERROR_OUT_OF_MEMORY);
|
WebPEncodingSetError(picture, VP8_ENC_ERROR_OUT_OF_MEMORY);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user