Merge changes I25711dd5,I43188fab

* changes:
  Fix assertions in WebPRescalerExportRow()
  Add descriptions of default configuration in help info.
This commit is contained in:
Pascal Massimino
2016-08-16 22:13:23 +00:00
committed by Gerrit Code Review
5 changed files with 42 additions and 30 deletions

View File

@ -173,10 +173,10 @@ void WebPRescalerExportRow(WebPRescaler* const wrk) {
WebPRescalerExportRowExpand(wrk);
} else if (wrk->fxy_scale) {
WebPRescalerExportRowShrink(wrk);
} else { // very special case for src = dst = 1x1
} else { // special case
int i;
assert(wrk->src_height == wrk->dst_height && wrk->x_add == 1);
assert(wrk->src_width == 1 && wrk->dst_width <= 2);
assert(wrk->src_height == 1 && wrk->dst_height == 1);
for (i = 0; i < wrk->num_channels * wrk->dst_width; ++i) {
wrk->dst[i] = wrk->irow[i];
wrk->irow[i] = 0;