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

@ -53,17 +53,21 @@ int ExUtilLoadWebP(const char* const in_file,
const uint8_t** data, size_t* data_size,
struct WebPBitstreamFeatures* bitstream);
// Decodes the WebP contained in 'data'. 'config' is a structure previously
// initialized by WebPInitDecoderConfig(). 'config->output' should have the
// desired colorspace selected. If 'incremental' is set to true the WebP
// incremental decoder will be used. 'verbose' will cause decode timing to be
// reported.
// Decodes the WebP contained in 'data'.
// 'config' is a structure previously initialized by WebPInitDecoderConfig().
// 'config->output' should have the desired colorspace selected. 'verbose' will
// cause decode timing to be reported.
// Returns the decoder status. On success 'config->output' will contain the
// decoded picture.
enum VP8StatusCode ExUtilDecodeWebP(const uint8_t* const data, size_t data_size,
int incremental, int verbose,
int verbose,
struct WebPDecoderConfig* const config);
// Same as ExUtilDecodeWebP(), but using the incremental decoder.
enum VP8StatusCode ExUtilDecodeWebPIncremental(
const uint8_t* const data, size_t data_size,
int verbose, struct WebPDecoderConfig* const config);
#ifdef __cplusplus
} // extern "C"
#endif