Lines Matching defs:score
59 int score_max, score;
72 score = 0;
74 score += 100;
76 score += 10;
79 score += 5;
81 if (score > score_max) {
82 score_max = score;
136 int score, score_max = 0;
167 score = 0;
169 score = fmt1->read_probe(&lpd);
170 if (score)
171 av_log(NULL, AV_LOG_TRACE, "Probing %s score:%d size:%d\n", fmt1->name, score, lpd.buf_size);
175 score = FFMAX(score, 1);
179 score = FFMAX(score, AVPROBE_SCORE_EXTENSION / 2 - 1);
182 score = FFMAX(score, AVPROBE_SCORE_EXTENSION);
188 score = AVPROBE_SCORE_EXTENSION;
191 if (AVPROBE_SCORE_MIME > score) {
192 av_log(NULL, AV_LOG_DEBUG, "Probing %s score:%d increased to %d due to MIME type\n", fmt1->name, score, AVPROBE_SCORE_MIME);
193 score = AVPROBE_SCORE_MIME;
196 if (score > score_max) {
197 score_max = score;
199 } else if (score == score_max)
223 int score = 0;
224 return av_probe_input_format2(pd, is_opened, &score);
234 int score = 0;
263 score = probe_size < max_probe_size ? AVPROBE_SCORE_RETRY : 0;
270 /* Fail if error was not end of file, otherwise, lower score. */
274 score = 0;
287 *fmt = av_probe_input_format2(&pd, 1, &score);
290 if (score <= AVPROBE_SCORE_RETRY) {
292 "Format %s detected only with low score of %d, "
293 "misdetection possible!\n", (*fmt)->name, score);
296 "Format %s probed with size=%d and score=%d\n",
297 (*fmt)->name, probe_size, score);
300 fprintf(f, "probe_size:%d format:%s score:%d filename:%s\n", probe_size, (*fmt)->name, score, filename);
316 return ret < 0 ? ret : score;