Lines Matching defs:config
70 // Mapping from config->method_ to coding tools used.
96 const WebPConfig* const config = enc->config_;
97 const int method = config->method;
98 const int limit = 100 - config->partition_limit;
108 enc->thread_level_ = config->thread_level;
110 enc->do_search_ = (config->target_size > 0 || config->target_PSNR > 0);
111 if (!config->low_memory) {
140 static VP8Encoder* InitVP8Encoder(const WebPConfig* const config,
144 (config->filter_strength > 0) || (config->autofilter > 0);
157 config->autofilter ? sizeof(*enc->lf_stats_) + WEBP_ALIGN_CST : 0;
200 enc->num_parts_ = 1 << config->partitions;
220 enc->config_ = config;
221 enc->profile_ = use_filter ? ((config->filter_type == 1) ? 0 : 1) : 2;
237 const float scale = 1.f + config->quality * 5.f / 100.f; // in [1,6]
312 int WebPEncode(const WebPConfig* config, WebPPicture* pic) {
318 if (config == NULL) // bad params
320 if (!WebPValidateConfig(config))
329 if (!config->lossless) {
332 if (!config->exact) {
338 if (config->preprocessing & 4) {
344 if (config->preprocessing & 2) {
345 const float x = config->quality / 100.f;
357 enc = InitVP8Encoder(config, pic);
383 if (!config->exact) {
387 ok = VP8LEncodeImage(config, pic); // Sets pic->error in case of problem.