Revision 09cbf60f libavcodec/motion_est.c

View differences:

libavcodec/motion_est.c
1119 1119
//    pic->mb_cmp_score[s->mb_stride * mb_y + mb_x] = dmin;
1120 1120
    c->mc_mb_var_sum_temp += (vard+128)>>8;
1121 1121

  
1122
#if 0
1123
    printf("varc=%4d avg_var=%4d (sum=%4d) vard=%4d mx=%2d my=%2d\n",
1124
           varc, s->avg_mb_var, sum, vard, mx - xx, my - yy);
1125
#endif
1122
    av_dlog(s, "varc=%4d avg_var=%4d (sum=%4d) vard=%4d mx=%2d my=%2d\n",
1123
            varc, s->avg_mb_var, sum, vard, mx - xx, my - yy);
1126 1124
    if(mb_type){
1127 1125
        int p_score= FFMIN(vard, varc-500+(s->lambda2>>FF_LAMBDA_SHIFT)*100);
1128 1126
        int i_score= varc-500+(s->lambda2>>FF_LAMBDA_SHIFT)*20;

Also available in: Unified diff