Lines Matching refs:score
377 int score, fec_score, dvhs_score;
382 score = analyze(buf, size, TS_PACKET_SIZE, NULL);
385 // av_log(NULL, AV_LOG_DEBUG, "score: %d, dvhs_score: %d, fec_score: %d \n", score, dvhs_score, fec_score);
387 if (score > fec_score && score > dvhs_score) return TS_PACKET_SIZE;
388 else if(dvhs_score > score && dvhs_score > fec_score) return TS_DVHS_PACKET_SIZE;
389 else if(score < fec_score && dvhs_score < fec_score) return TS_FEC_PACKET_SIZE;
1196 int score, fec_score, dvhs_score;
1203 score = analyze(p->buf, TS_PACKET_SIZE *check_count, TS_PACKET_SIZE , NULL)*CHECK_COUNT/check_count;
1206 // av_log(NULL, AV_LOG_DEBUG, "score: %d, dvhs_score: %d, fec_score: %d \n", score, dvhs_score, fec_score);
1208 // we need a clear definition for the returned score otherwise things will become messy sooner or later
1209 if (score > fec_score && score > dvhs_score && score > 6) return AVPROBE_SCORE_MAX + score - CHECK_COUNT;
1210 else if(dvhs_score > score && dvhs_score > fec_score && dvhs_score > 6) return AVPROBE_SCORE_MAX + dvhs_score - CHECK_COUNT;