Home | History | Annotate | Download | only in encoder

Lines Matching defs:next_frame

121 static int lookup_next_frame_stats(VP8_COMP *cpi, FIRSTPASS_STATS *next_frame)
126 *next_frame = *cpi->stats_in;
142 //FIRSTPASS_STATS next_frame;
148 while ( (i < 1) && input_stats(cpi,&next_frame) != EOF )
151 next_iiratio = next_frame.intra_error / DOUBLE_DIVIDE_CHECK(next_frame.coded_error);
1257 static double get_prediction_decay_rate(VP8_COMP *cpi, FIRSTPASS_STATS *next_frame)
1261 double motion_pct = next_frame->pcnt_motion;
1265 prediction_decay_rate = next_frame->pcnt_inter;
1278 this_mv_rabs = fabs(next_frame->mvr_abs * motion_pct);
1279 this_mv_cabs = fabs(next_frame->mvc_abs * motion_pct);
1341 FIRSTPASS_STATS next_frame;
1378 vpx_memset(&next_frame, 0, sizeof(next_frame)); // assure clean
1406 //double motion_pct = next_frame.pcnt_motion;
1419 if (EOF == input_stats(cpi, &next_frame))
1423 motion_pct = next_frame.pcnt_motion;
1424 mv_accumulator_rabs += fabs(next_frame.mvr_abs * motion_pct);
1425 mv_accumulator_cabs += fabs(next_frame.mvc_abs * motion_pct);
1429 next_frame.mv_in_out_count * motion_pct;
1431 next_frame.mv_in_out_count * motion_pct;
1433 fabs(next_frame.mv_in_out_count * motion_pct);
1438 this_frame_mvr_ratio = fabs(next_frame.mvr_abs) /
1439 DOUBLE_DIVIDE_CHECK(fabs(next_frame.MVr));
1441 this_frame_mvc_ratio = fabs(next_frame.mvc_abs) /
1442 DOUBLE_DIVIDE_CHECK(fabs(next_frame.MVc));
1445 (this_frame_mvr_ratio < next_frame.mvr_abs)
1447 : next_frame.mvr_abs * motion_pct;
1450 (this_frame_mvc_ratio < next_frame.mvc_abs)
1452 : next_frame.mvc_abs * motion_pct;
1463 ( next_frame.intra_error /
1464 DOUBLE_DIVIDE_CHECK(next_frame.coded_error)));
1466 if (next_frame.intra_error > cpi->gf_intra_err_min)
1467 r = (IIKFACTOR2 * next_frame.intra_error /
1468 DOUBLE_DIVIDE_CHECK(next_frame.coded_error));
1471 DOUBLE_DIVIDE_CHECK(next_frame.coded_error));
1486 loop_decay_rate = get_prediction_decay_rate(cpi, &next_frame);
1513 ((boost_score > 20.0) || (next_frame.pcnt_inter < 0.75)) &&
1524 vpx_memcpy(this_frame, &next_frame, sizeof(*this_frame));
1568 (((next_frame.pcnt_inter > 0.75) &&
1877 input_stats(cpi, &next_frame);
1878 accumulate_stats(&sectionstats, &next_frame);
2087 FIRSTPASS_STATS next_frame;
2088 if ( lookup_next_frame_stats(cpi, &next_frame) != EOF )
2090 cpi->next_iiratio = next_frame.intra_error /
2091 DOUBLE_DIVIDE_CHECK(next_frame.coded_error);
2171 static BOOL test_candidate_kf(VP8_COMP *cpi, FIRSTPASS_STATS *last_frame, FIRSTPASS_STATS *this_frame, FIRSTPASS_STATS *next_frame)
2178 (next_frame->pcnt_second_ref < 0.10) &&
2185 ((next_frame->intra_error / DOUBLE_DIVIDE_CHECK(next_frame->coded_error)) > 3.5)
2201 vpx_memcpy(&local_next_frame, next_frame, sizeof(*next_frame));
2264 FIRSTPASS_STATS next_frame;
2279 vpx_memset(&next_frame, 0, sizeof(next_frame)); // assure clean
2323 && lookup_next_frame_stats(cpi, &next_frame) != EOF)
2326 if (test_candidate_kf(cpi, &last_frame, this_frame, &next_frame))
2330 loop_decay_rate = get_prediction_decay_rate(cpi, &next_frame);
2502 if (EOF == input_stats(cpi, &next_frame))
2505 if (next_frame.intra_error > cpi->kf_intra_err_min)
2506 r = (IIKFACTOR2 * next_frame.intra_error /
2507 DOUBLE_DIVIDE_CHECK(next_frame.coded_error));
2510 DOUBLE_DIVIDE_CHECK(next_frame.coded_error));
2516 loop_decay_rate = get_prediction_decay_rate(cpi, &next_frame);
2542 input_stats(cpi, &next_frame);
2543 accumulate_stats(&sectionstats, &next_frame);