example_util: add ExUtilDecodeWebPIncremental

simplifies ExUtilDecodeWebP() call

Change-Id: I33b42ec1c398b9fc0a895ad9deb89ab01a33b3da
This commit is contained in:
James Zern
2014-04-26 14:26:13 -07:00
committed by Pascal Massimino
parent 8e5f90b086
commit 1b2fe14de5
4 changed files with 53 additions and 23 deletions

View File

@ -706,7 +706,11 @@ int main(int argc, const char *argv[]) {
return -1;
}
status = ExUtilDecodeWebP(data, data_size, incremental, verbose, &config);
if (incremental) {
status = ExUtilDecodeWebPIncremental(data, data_size, verbose, &config);
} else {
status = ExUtilDecodeWebP(data, data_size, verbose, &config);
}
End:
free((void*)data);
ok = (status == VP8_STATUS_OK);