Lines Matching defs:config
374 WebPDecoderConfig config;
375 CHECK(WebPInitDecoderConfig(&config));
378 CHECK(WebPGetFeatures(data, data_size, &config.input) == VP8_STATUS_OK);
380 // C) Adjust 'config', if needed
381 config.no_fancy_upsampling = 1;
382 config.output.colorspace = MODE_BGRA;
385 // Note that you can also make config.output point to an externally
387 // picture. Otherwise, config.output will just be used to allocate memory
391 CHECK(WebPDecode(data, data_size, &config) == VP8_STATUS_OK);
393 // E) Decoded image is now in config.output (and config.output.u.RGBA)
395 // F) Reclaim memory allocated in config's object. It's safe to call
398 WebPFreeDecBuffer(&config.output);
473 static WEBP_INLINE int WebPInitDecoderConfig(WebPDecoderConfig* config) {
474 return WebPInitDecoderConfigInternal(config, WEBP_DECODER_ABI_VERSION);
480 // config->input. Otherwise, 'data' can be NULL and no parsing will occur.
481 // Note that 'config' can be NULL too, in which case a default configuration
484 // Returns NULL in case of error (and config->status will then reflect
487 WebPDecoderConfig* config);
490 // 'config' into account. Returns decoding status (which should be VP8_STATUS_OK
493 WebPDecoderConfig* config);