-
+#if 0
/* compute variance of 8x8 block */
static double var_sblk(p, lx)
unsigned char *p;
return (double)s2 / 64.0 - ((double)s / 64.0) * ((double)s / 64.0);
}
-
+#endif
static double calc_actj(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;