Merge "3% speed improvement for lossless webp encoder for low effort mode:"

This commit is contained in:
James Zern 2015-11-23 20:44:15 +00:00 committed by Gerrit Code Review
commit a40f60a9b4

View File

@ -692,7 +692,7 @@ void VP8LResidualImage(int width, int height, int bits, int low_effort,
uint32_t* const current_tile_rows = argb_scratch + width;
int tile_y;
int histo[4][256];
memset(histo, 0, sizeof(histo));
if (!low_effort) memset(histo, 0, sizeof(histo));
for (tile_y = 0; tile_y < tiles_per_col; ++tile_y) {
const int tile_y_offset = tile_y * max_tile_size;
const int this_tile_height =
@ -720,6 +720,7 @@ void VP8LResidualImage(int width, int height, int bits, int low_effort,
image[tile_y * tiles_per_row + tile_x] = 0xff000000u | (pred << 8);
CopyTileWithPrediction(width, height, tile_x, tile_y, bits, pred,
argb_scratch, argb);
if (!low_effort) {
for (y = 0; y < max_tile_size; ++y) {
int all_x;
int all_y = tile_y_offset + y;
@ -733,6 +734,7 @@ void VP8LResidualImage(int width, int height, int bits, int low_effort,
}
}
}
}
void VP8LSubtractGreenFromBlueAndRed_C(uint32_t* argb_data, int num_pixels) {
int i;