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

@ -34,6 +34,9 @@ typedef struct {
int external_buffer; // If true, the output buffers are externally owned
} WebPDecParams;
// Should be called first, before any use of the WebPDecParams object.
void WebPResetDecParams(WebPDecParams* const params);
// If a RIFF container is detected, validate it and skip over it. Returns
// VP8 bit-stream size if RIFF header is valid else returns 0
uint32_t WebPCheckRIFFHeader(const uint8_t** data_ptr,