Lines Matching refs:kmax
119 enc_options->kmax = INT_MAX; in DisableKeyframes()
120 enc_options->kmin = enc_options->kmax - 1; in DisableKeyframes()
132 if (enc_options->kmax == 1) { // All frames will be key-frames. in SanitizeEncoderOptions()
134 enc_options->kmax = 0; in SanitizeEncoderOptions()
136 } else if (enc_options->kmax <= 0) { in SanitizeEncoderOptions()
141 if (enc_options->kmin >= enc_options->kmax) { in SanitizeEncoderOptions()
142 enc_options->kmin = enc_options->kmax - 1; in SanitizeEncoderOptions()
148 const int kmin_limit = enc_options->kmax / 2 + 1; in SanitizeEncoderOptions()
149 if (enc_options->kmin < kmin_limit && kmin_limit < enc_options->kmax) { in SanitizeEncoderOptions()
161 if (enc_options->kmax - enc_options->kmin > MAX_CACHED_FRAMES) { in SanitizeEncoderOptions()
162 enc_options->kmin = enc_options->kmax - MAX_CACHED_FRAMES; in SanitizeEncoderOptions()
169 assert(enc_options->kmin < enc_options->kmax); in SanitizeEncoderOptions()
286 enc->size_ = enc->options_.kmax - enc->options_.kmin + 1; in WebPAnimEncoderNewInternal()
1260 if (enc->count_since_key_frame_ >= enc->options_.kmax) { in CacheFrame()