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;
112 enc->thread_level_ = config->thread_level;
114 enc->do_search_ = (config->target_size > 0 || config->target_PSNR > 0);
115 if (!config->low_memory) {
144 static VP8Encoder* InitVP8Encoder(const WebPConfig* const config,
148 (config->filter_strength > 0) || (config->autofilter > 0);
161 config->autofilter ? sizeof(*enc->lf_stats_) + WEBP_ALIGN_CST : 0;
204 enc->num_parts_ = 1 << config->partitions;
224 enc->config_ = config;
225 enc->profile_ = use_filter ? ((config->filter_type == 1) ? 0 : 1) : 2;
241 const float scale = 1.f + config->quality * 5.f / 100.f; // in [1,6]
316 int WebPEncode(const WebPConfig* config, WebPPicture* pic) {
321 if (config == NULL) { // bad params
324 if (!WebPValidateConfig(config)) {
336 if (!config->lossless) {
339 if (!config->exact) {
345 if (config->use_sharp_yuv || (config->preprocessing & 4)) {
351 if (config->preprocessing & 2) {
352 const float x = config->quality / 100.f;
364 enc = InitVP8Encoder(config, pic);
390 if (!config->exact) {
394 ok = VP8LEncodeImage(config, pic); // Sets pic->error in case of problem.