X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fmpeg2enc%2Fratectl.c;h=7758dae9f1e81db5ee1db35487bb7f1014e8cbcc;hp=19242cddefe87ba1e5ae4c8a2e5fc25d66655e84;hb=7e5a0760f40ff787cc3d93cb7768a901ebe52809;hpb=1f004d22ca7bd7a98a3bf02b12ec5b1adece92f2 diff --git a/cinelerra-5.1/mpeg2enc/ratectl.c b/cinelerra-5.1/mpeg2enc/ratectl.c index 19242cdd..7758dae9 100644 --- a/cinelerra-5.1/mpeg2enc/ratectl.c +++ b/cinelerra-5.1/mpeg2enc/ratectl.c @@ -184,7 +184,7 @@ static int scale_quant(pict_data_s *picture, double quant ) - +#if 0 /* compute variance of 8x8 block */ static double var_sblk(p, lx) unsigned char *p; @@ -210,7 +210,7 @@ int lx; return (double)s2 / 64.0 - ((double)s / 64.0) * ((double)s / 64.0); } - +#endif static double calc_actj(pict_data_s *picture) { @@ -291,7 +291,7 @@ void ratectl_init_pict(ratectl_t *ratectl, pict_data_s *picture) of DCT coefficients) and actual quantisation weighted activty. We use this to try to predict the activity of each frame. */ - + avg_K = 1; ratectl->actsum = calc_actj(picture ); ratectl->avg_act = (double)ratectl->actsum/(double)(mb_per_pict); ratectl->sum_avg_act += ratectl->avg_act;