Revision a94948d3

View differences:

libpostproc/postprocess_template.c
1439 1439
//                    if((max-min)*QP < 500)
1440 1440
//                    if(max-min<QP/2)
1441 1441
                    if(max-min < 20){
1442
                        static int numSkiped=0;
1442
                        static int numSkipped=0;
1443 1443
                        static int errorSum=0;
1444 1444
                        static int worstQP=0;
1445 1445
                        static int worstRange=0;
......
1450 1450

  
1451 1451
                        if(x==1 || x==8 || y==1 || y==8) continue;
1452 1452

  
1453
                        numSkiped++;
1453
                        numSkipped++;
1454 1454
                        if(absDiff > worstDiff){
1455 1455
                            worstDiff= absDiff;
1456 1456
                            worstQP= QP;
......
1458 1458
                        }
1459 1459
                        errorSum+= error;
1460 1460

  
1461
                        if(1024LL*1024LL*1024LL % numSkiped == 0){
1461
                        if(1024LL*1024LL*1024LL % numSkipped == 0){
1462 1462
                            av_log(c, AV_LOG_INFO, "sum:%1.3f, skip:%d, wQP:%d, "
1463 1463
                                   "wRange:%d, wDiff:%d, relSkip:%1.3f\n",
1464
                                   (float)errorSum/numSkiped, numSkiped, worstQP, worstRange,
1465
                                   worstDiff, (float)numSkiped/numPixels);
1464
                                   (float)errorSum/numSkipped, numSkipped, worstQP, worstRange,
1465
                                   worstDiff, (float)numSkipped/numPixels);
1466 1466
                        }
1467 1467
                    }
1468 1468
                    }

Also available in: Unified diff