[encoder] Added 1/8th pel MV refinement
[schroedinger/research-port.git] / testsuite / perceptual_curves.c
blob990c9be320bd2ea4b7b06b81f652a696690fda34
2 #ifdef HAVE_CONFIG_H
3 #include "config.h"
4 #endif
6 #include <schroedinger/schro.h>
7 #include <schroedinger/schrowavelet.h>
8 #include <schroedinger/schrooil.h>
9 #include <liboil/liboil.h>
11 #include <stdio.h>
12 #include <string.h>
13 #include <stdlib.h>
14 #include <math.h>
17 int
18 main (int argc, char *argv[])
20 int i;
21 double ppd_max;
22 double ppd;
24 schro_init();
26 ppd_max = 720 / (2.0*atan(0.5/3.0)*180/M_PI);
28 for(i=0;i<100;i++) {
29 ppd = ppd_max * (i/100.0);
31 printf("%d %g %g %g %g\n",
32 i, ppd,
33 1.0/schro_encoder_perceptual_weight_constant (ppd),
34 1.0/schro_encoder_perceptual_weight_moo (ppd),
35 1.0/schro_encoder_perceptual_weight_ccir959 (ppd));
38 return 0;