mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-20 04:18:26 +01:00
Rename a method
Change-Id: Idc5f4ea1019a828a5fa1fbd81804fa51cd7e8673
This commit is contained in:
parent
30e77d0f66
commit
fdb9177917
@ -217,12 +217,11 @@ static void InitFilterTrial(FilterTrial* const score) {
|
||||
VP8BitWriterInit(&score->bw, 0);
|
||||
}
|
||||
|
||||
// TODO(urvang): This method name is misleading. Should be renamed to
|
||||
// ApplyFiltersAndEncode() perhaps.
|
||||
static int ApplyFilters(const uint8_t* alpha, int width, int height,
|
||||
static int ApplyFiltersAndEncode(const uint8_t* alpha, int width, int height,
|
||||
size_t data_size, int method, int filter,
|
||||
int reduce_levels, int effort_level,
|
||||
uint8_t** const output, size_t* const output_size,
|
||||
uint8_t** const output,
|
||||
size_t* const output_size,
|
||||
WebPAuxStats* const stats) {
|
||||
int ok = 1;
|
||||
uint8_t* filtered_alpha = NULL;
|
||||
@ -324,9 +323,9 @@ static int EncodeAlpha(VP8Encoder* const enc,
|
||||
}
|
||||
|
||||
if (ok) {
|
||||
ok = ApplyFilters(quant_alpha, width, height, data_size, method, filter,
|
||||
reduce_levels, effort_level, output, output_size,
|
||||
pic->stats);
|
||||
ok = ApplyFiltersAndEncode(quant_alpha, width, height, data_size, method,
|
||||
filter, reduce_levels, effort_level, output,
|
||||
output_size, pic->stats);
|
||||
if (pic->stats != NULL) { // need stats?
|
||||
pic->stats->coded_size += (int)(*output_size);
|
||||
enc->sse_[3] = sse;
|
||||
|
Loading…
Reference in New Issue
Block a user