VP8GetInfo() + WebPResetDecParams()

- add an internal VP8GetInfo() to parse header
- add WebPResetDecParams() for proper initialization

Change-Id: Ic39ea634d1d8016d25bdcfef2cb0d00b6dad83e9
This commit is contained in:
Pascal Massimino
2011-05-19 19:07:01 -07:00
parent 416b7a6b95
commit 92e5c6e1d4
5 changed files with 75 additions and 52 deletions

View File

@ -429,6 +429,8 @@ WebPIDecoder* WebPINew(WEBP_CSP_MODE mode) {
}
idec->state_ = STATE_HEADER;
WebPResetDecParams(&idec->params_);
idec->params_.mode = mode;
InitMemBuffer(&idec->mem_);