WebPReportProgress: use non-encoder specific params

Take picture and percent value storage location instead of VP8Encoder.
This will allow reuse by the lossless encoder.

Change-Id: Ic49dbc800cc3e2df60d20f4ebac277f68ed6031b
This commit is contained in:
James Zern
2012-05-28 23:02:02 -07:00
parent 880fd98ca1
commit f18281ffa0
6 changed files with 16 additions and 13 deletions

View File

@ -311,7 +311,7 @@ int VP8EncFinishAlpha(VP8Encoder* enc) {
enc->alpha_data_size_ = (uint32_t)tmp_size;
enc->alpha_data_ = tmp_data;
}
return WebPReportProgress(enc, enc->percent_ + 20);
return WebPReportProgress(enc->pic_, enc->percent_ + 20, &enc->percent_);
}
void VP8EncDeleteAlpha(VP8Encoder* enc) {