| 1 | /* |
| 2 | measure.c |
| 3 | |
| 4 | measures video pixel and profile values with averaging |
| 5 | |
| 6 | Version 0.1 jun 2010 |
| 7 | |
| 8 | Copyright (C) 2010 Marko Cebokli http://lea.hamradio.si/~s57uuu |
| 9 | |
| 10 | |
| 11 | This program is free software; you can redistribute it and/or modify |
| 12 | it under the terms of the GNU General Public License as published by |
| 13 | the Free Software Foundation; either version 2 of the License, or |
| 14 | (at your option) any later version. |
| 15 | |
| 16 | This program is distributed in the hope that it will be useful, |
| 17 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 | GNU General Public License for more details. |
| 20 | |
| 21 | You should have received a copy of the GNU General Public License |
| 22 | along with this program; if not, write to the Free Software |
| 23 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 24 | |
| 25 | */ |
| 26 | |
| 27 | //measurement functions for direct inclusion in pr0be.c, pr0file.c |
| 28 | |
| 29 | typedef structcxx . . $ $anonymous_type_287814115e8eb467_0# //float pixel |
| 30 | { |
| 31 | float rcxx . . $ $anonymous_type_287814115e8eb467_0#r.; |
| 32 | float gcxx . . $ $anonymous_type_287814115e8eb467_0#g.; |
| 33 | float bcxx . . $ $anonymous_type_287814115e8eb467_0#b.; |
| 34 | float acxx . . $ $anonymous_type_287814115e8eb467_0#a.; |
| 35 | } float_rgbacxx . . $ float_rgba#; |
| 36 | |
| 37 | typedef structcxx . . $ $anonymous_type_287814115e8eb467_1# //statistics |
| 38 | { |
| 39 | float avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.; |
| 40 | float rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.; |
| 41 | float mincxx . . $ $anonymous_type_287814115e8eb467_1#min.; |
| 42 | float maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.; |
| 43 | } statcxx . . $ stat#; |
| 44 | |
| 45 | typedef structcxx . . $ $anonymous_type_287814115e8eb467_2# //profile data and statistics |
| 46 | { |
| 47 | int ncxx . . $ $anonymous_type_287814115e8eb467_2#n.; //number of points used |
| 48 | float rcxx . . $ $anonymous_type_287814115e8eb467_2#r.[8192]; |
| 49 | float gcxx . . $ $anonymous_type_287814115e8eb467_2#g.[8192]; |
| 50 | float bcxx . . $ $anonymous_type_287814115e8eb467_2#b.[8192]; |
| 51 | float acxx . . $ $anonymous_type_287814115e8eb467_2#a.[8192]; |
| 52 | float ycxx . . $ $anonymous_type_287814115e8eb467_2#y.[8192]; |
| 53 | float ucxx . . $ $anonymous_type_287814115e8eb467_2#u.[8192]; |
| 54 | float vcxx . . $ $anonymous_type_287814115e8eb467_2#v.[8192]; |
| 55 | statcxx . . $ stat# srcxx . . $ $anonymous_type_287814115e8eb467_2#sr.; |
| 56 | statcxx . . $ stat# sgcxx . . $ $anonymous_type_287814115e8eb467_2#sg.; |
| 57 | statcxx . . $ stat# sbcxx . . $ $anonymous_type_287814115e8eb467_2#sb.; |
| 58 | statcxx . . $ stat# sacxx . . $ $anonymous_type_287814115e8eb467_2#sa.; |
| 59 | statcxx . . $ stat# sycxx . . $ $anonymous_type_287814115e8eb467_2#sy.; |
| 60 | statcxx . . $ stat# sucxx . . $ $anonymous_type_287814115e8eb467_2#su.; |
| 61 | statcxx . . $ stat# svcxx . . $ $anonymous_type_287814115e8eb467_2#sv.; |
| 62 | int xzcxx . . $ $anonymous_type_287814115e8eb467_2#xz.,xkcxx . . $ $anonymous_type_287814115e8eb467_2#xk.,yzcxx . . $ $anonymous_type_287814115e8eb467_2#yz.,ykcxx . . $ $anonymous_type_287814115e8eb467_2#yk.; //start and end point |
| 63 | } profdatacxx . . $ profdata#; |
| 64 | |
| 65 | //----------------------------------------------------- |
| 66 | //luminance/luma statistics of a float_rgba pixel group |
| 67 | //color: |
| 68 | //0=use rec 601 |
| 69 | //1=use rec 709 |
| 70 | //w=width of image (stride) |
| 71 | //x,y=position of the center of the group in pixels |
| 72 | //sx,sy=size of the group in pixels |
| 73 | void meri_ycxx . . $ meri_y(73f9e2a8cbe6f3c6).(float_rgbacxx . . $ float_rgba# *s, statcxx . . $ stat# *yy, int color, int x, int y, int w, int sx, int sy) |
| 74 | { |
| 75 | float wr,wg,wb,luma,nf; |
| 76 | int xp,yp; |
| 77 | float_rgbacxx . . $ float_rgba# pix; |
| 78 | int i,j; |
| 79 | |
| 80 | switch (color) |
| 81 | { |
| 82 | case 0: //CCIR rec 601 |
| 83 | wr=0.299;wg=0.587;wb=0.114; |
| 84 | break; |
| 85 | case 1: //CCIR rec 709 |
| 86 | wr=0.2126;wg=0.7152;wb=0.0722; |
| 87 | break; |
| 88 | default: //unknown color model |
| 89 | // printf("Unknown color model %d\n",color); |
| 90 | break; |
| 91 | } |
| 92 | |
| 93 | yy->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=0.0; yy->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=0.0; yy->mincxx . . $ $anonymous_type_287814115e8eb467_1#min.=1.0E9; yy->maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.=-1.0E9; |
| 94 | for (i=0;i<sy;i++) |
| 95 | for (j=0;j<sx;j++) |
| 96 | { |
| 97 | xp=x-sx/2+j; |
| 98 | yp=y-sy/2+i; |
| 99 | if (xp<0) xp=0; if (xp>=w) xp=w-1; |
| 100 | if (yp<0) yp=0; //if (yp>=h) xp=h-1; |
| 101 | pix=s[yp*w+xp]; |
| 102 | luma=wr*pix.rcxx . . $ $anonymous_type_287814115e8eb467_0#r.+wg*pix.gcxx . . $ $anonymous_type_287814115e8eb467_0#g.+wb*pix.bcxx . . $ $anonymous_type_287814115e8eb467_0#b.; |
| 103 | if (luma<yy->mincxx . . $ $anonymous_type_287814115e8eb467_1#min.) yy->mincxx . . $ $anonymous_type_287814115e8eb467_1#min.=luma; |
| 104 | if (luma>yy->maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.) yy->maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.=luma; |
| 105 | yy->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=yy->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.+luma; |
| 106 | yy->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=yy->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.+luma*luma; |
| 107 | } |
| 108 | nf=(float)(sx*sy); |
| 109 | yy->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=yy->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg./nf; |
| 110 | yy->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=sqrtf((yy->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.-nf*yy->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.*yy->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.)/nf); |
| 111 | |
| 112 | } |
| 113 | |
| 114 | //------------------------------------------------------- |
| 115 | //R,G,B statistics of a float_rgba pixel group |
| 116 | //w=width of image (stride) |
| 117 | //x,y=position of the center of the group in pixels |
| 118 | //sx,sy=size of the group in pixels |
| 119 | void meri_rgbcxx . . $ meri_rgb(97c97ca50c132d10).(float_rgbacxx . . $ float_rgba# *s, statcxx . . $ stat# *r, statcxx . . $ stat# *g, statcxx . . $ stat# *b, int x, int y, int w, int sx, int sy) |
| 120 | { |
| 121 | float nf; |
| 122 | int xp,yp; |
| 123 | float_rgbacxx . . $ float_rgba# pix; |
| 124 | int i,j; |
| 125 | |
| 126 | r->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=0.0; r->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=0.0; r->mincxx . . $ $anonymous_type_287814115e8eb467_1#min.=1.0E9; r->maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.=-1.0E9; |
| 127 | g->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=0.0; g->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=0.0; g->mincxx . . $ $anonymous_type_287814115e8eb467_1#min.=1.0E9; g->maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.=-1.0E9; |
| 128 | b->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=0.0; b->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=0.0; b->mincxx . . $ $anonymous_type_287814115e8eb467_1#min.=1.0E9; b->maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.=-1.0E9; |
| 129 | for (i=0;i<sy;i++) |
| 130 | for (j=0;j<sx;j++) |
| 131 | { |
| 132 | xp=x-sx/2+j; |
| 133 | yp=y-sy/2+i; |
| 134 | if (xp<0) xp=0; if (xp>=w) xp=w-1; |
| 135 | if (yp<0) yp=0; //if (yp>=h) xp=h-1; |
| 136 | pix=s[yp*w+xp]; |
| 137 | |
| 138 | if (pix.rcxx . . $ $anonymous_type_287814115e8eb467_0#r.<r->mincxx . . $ $anonymous_type_287814115e8eb467_1#min.) r->mincxx . . $ $anonymous_type_287814115e8eb467_1#min.=pix.rcxx . . $ $anonymous_type_287814115e8eb467_0#r.; |
| 139 | if (pix.rcxx . . $ $anonymous_type_287814115e8eb467_0#r.>r->maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.) r->maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.=pix.rcxx . . $ $anonymous_type_287814115e8eb467_0#r.; |
| 140 | r->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=r->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.+pix.rcxx . . $ $anonymous_type_287814115e8eb467_0#r.; |
| 141 | r->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=r->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.+pix.rcxx . . $ $anonymous_type_287814115e8eb467_0#r.*pix.rcxx . . $ $anonymous_type_287814115e8eb467_0#r.; |
| 142 | |
| 143 | if (pix.gcxx . . $ $anonymous_type_287814115e8eb467_0#g.<g->mincxx . . $ $anonymous_type_287814115e8eb467_1#min.) g->mincxx . . $ $anonymous_type_287814115e8eb467_1#min.=pix.gcxx . . $ $anonymous_type_287814115e8eb467_0#g.; |
| 144 | if (pix.gcxx . . $ $anonymous_type_287814115e8eb467_0#g.>g->maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.) g->maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.=pix.gcxx . . $ $anonymous_type_287814115e8eb467_0#g.; |
| 145 | g->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=g->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.+pix.gcxx . . $ $anonymous_type_287814115e8eb467_0#g.; |
| 146 | g->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=g->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.+pix.gcxx . . $ $anonymous_type_287814115e8eb467_0#g.*pix.gcxx . . $ $anonymous_type_287814115e8eb467_0#g.; |
| 147 | |
| 148 | if (pix.bcxx . . $ $anonymous_type_287814115e8eb467_0#b.<b->mincxx . . $ $anonymous_type_287814115e8eb467_1#min.) b->mincxx . . $ $anonymous_type_287814115e8eb467_1#min.=pix.bcxx . . $ $anonymous_type_287814115e8eb467_0#b.; |
| 149 | if (pix.bcxx . . $ $anonymous_type_287814115e8eb467_0#b.>b->maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.) b->maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.=pix.bcxx . . $ $anonymous_type_287814115e8eb467_0#b.; |
| 150 | b->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=b->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.+pix.bcxx . . $ $anonymous_type_287814115e8eb467_0#b.; |
| 151 | b->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=b->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.+pix.bcxx . . $ $anonymous_type_287814115e8eb467_0#b.*pix.bcxx . . $ $anonymous_type_287814115e8eb467_0#b.; |
| 152 | } |
| 153 | nf=(float)(sx*sy); |
| 154 | |
| 155 | r->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=r->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg./nf; |
| 156 | r->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=sqrtf((r->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.-nf*r->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.*r->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.)/nf); |
| 157 | |
| 158 | g->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=g->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg./nf; |
| 159 | g->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=sqrtf((g->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.-nf*g->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.*g->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.)/nf); |
| 160 | |
| 161 | b->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=b->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg./nf; |
| 162 | b->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=sqrtf((b->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.-nf*b->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.*b->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.)/nf); |
| 163 | |
| 164 | } |
| 165 | |
| 166 | //-------------------------------------------------------- |
| 167 | //alpha channel statistics of a float_rgba pixel group |
| 168 | //w=width of image (stride) |
| 169 | //x,y=position of the center of the group in pixels |
| 170 | //sx,sy=size of the group in pixels |
| 171 | void meri_acxx . . $ meri_a(52a0662f898273c9).(float_rgbacxx . . $ float_rgba# *s, statcxx . . $ stat# *a, int x, int y, int w, int sx, int sy) |
| 172 | { |
| 173 | float nf; |
| 174 | int xp,yp; |
| 175 | float_rgbacxx . . $ float_rgba# pix; |
| 176 | int i,j; |
| 177 | |
| 178 | a->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=0.0; a->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=0.0; a->mincxx . . $ $anonymous_type_287814115e8eb467_1#min.=1.0E9; a->maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.=-1.0E9; |
| 179 | for (i=0;i<sy;i++) |
| 180 | for (j=0;j<sx;j++) |
| 181 | { |
| 182 | xp=x-sx/2+j; |
| 183 | yp=y-sy/2+i; |
| 184 | if (xp<0) xp=0; if (xp>=w) xp=w-1; |
| 185 | if (yp<0) yp=0; //if (yp>=h) xp=h-1; |
| 186 | pix=s[yp*w+xp]; |
| 187 | |
| 188 | if (pix.acxx . . $ $anonymous_type_287814115e8eb467_0#a.<a->mincxx . . $ $anonymous_type_287814115e8eb467_1#min.) a->mincxx . . $ $anonymous_type_287814115e8eb467_1#min.=pix.acxx . . $ $anonymous_type_287814115e8eb467_0#a.; |
| 189 | if (pix.acxx . . $ $anonymous_type_287814115e8eb467_0#a.>a->maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.) a->maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.=pix.acxx . . $ $anonymous_type_287814115e8eb467_0#a.; |
| 190 | a->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=a->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.+pix.acxx . . $ $anonymous_type_287814115e8eb467_0#a.; |
| 191 | a->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=a->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.+pix.acxx . . $ $anonymous_type_287814115e8eb467_0#a.*pix.acxx . . $ $anonymous_type_287814115e8eb467_0#a.; |
| 192 | } |
| 193 | nf=(float)(sx*sy); |
| 194 | |
| 195 | a->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=a->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg./nf; |
| 196 | a->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=sqrtf((a->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.-nf*a->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.*a->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.)/nf); |
| 197 | |
| 198 | } |
| 199 | |
| 200 | //-------------------------------------------------------- |
| 201 | //R-Y, B-Y statistics of a float_rgba pixel group |
| 202 | //color: |
| 203 | //0=use rec 601 |
| 204 | //1=use rec 709 |
| 205 | //w=width of image (stride) |
| 206 | //x,y=position of the center of the group in pixels |
| 207 | //sx,sy=size of the group in pixels |
| 208 | void meri_uvcxx . . $ meri_uv(71ccd8673bc9f5a7).(float_rgbacxx . . $ float_rgba# *s, statcxx . . $ stat# *u, statcxx . . $ stat# *v, int color, int x, int y, int w, int sx, int sy) |
| 209 | { |
| 210 | float wr,wg,wb,uu,vv,nf; |
| 211 | int xp,yp; |
| 212 | float_rgbacxx . . $ float_rgba# pix; |
| 213 | int i,j; |
| 214 | |
| 215 | switch (color) |
| 216 | { |
| 217 | case 0: //CCIR rec 601 |
| 218 | wr=0.299;wg=0.587;wb=0.114; |
| 219 | break; |
| 220 | case 1: //CCIR rec 709 |
| 221 | wr=0.2126;wg=0.7152;wb=0.0722; |
| 222 | break; |
| 223 | default: //unknown color model |
| 224 | // printf("Unknown color model %d\n",color); |
| 225 | break; |
| 226 | } |
| 227 | |
| 228 | u->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=0.0; u->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=0.0; u->mincxx . . $ $anonymous_type_287814115e8eb467_1#min.=1.0E9; u->maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.=-1.0E9; |
| 229 | v->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=0.0; v->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=0.0; v->mincxx . . $ $anonymous_type_287814115e8eb467_1#min.=1.0E9; v->maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.=-1.0E9; |
| 230 | for (i=0;i<sy;i++) |
| 231 | for (j=0;j<sx;j++) |
| 232 | { |
| 233 | xp=x-sx/2+j; |
| 234 | yp=y-sy/2+i; |
| 235 | if (xp<0) xp=0; if (xp>=w) xp=w-1; |
| 236 | if (yp<0) yp=0; //if (yp>=h) xp=h-1; |
| 237 | pix=s[yp*w+xp]; |
| 238 | |
| 239 | //R-Y |
| 240 | uu=(1.0-wr)*pix.rcxx . . $ $anonymous_type_287814115e8eb467_0#r.-wg*pix.gcxx . . $ $anonymous_type_287814115e8eb467_0#g.-wb*pix.bcxx . . $ $anonymous_type_287814115e8eb467_0#b.; |
| 241 | if (uu<u->mincxx . . $ $anonymous_type_287814115e8eb467_1#min.) u->mincxx . . $ $anonymous_type_287814115e8eb467_1#min.=uu; |
| 242 | if (uu>u->maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.) u->maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.=uu; |
| 243 | u->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=u->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.+uu; |
| 244 | u->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=u->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.+uu*uu; |
| 245 | |
| 246 | //B-Y |
| 247 | vv=(1.0-wb)*pix.bcxx . . $ $anonymous_type_287814115e8eb467_0#b.-wr*pix.rcxx . . $ $anonymous_type_287814115e8eb467_0#r.-wg*pix.gcxx . . $ $anonymous_type_287814115e8eb467_0#g.; |
| 248 | if (vv<v->mincxx . . $ $anonymous_type_287814115e8eb467_1#min.) v->mincxx . . $ $anonymous_type_287814115e8eb467_1#min.=vv; |
| 249 | if (vv>v->maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.) v->maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.=vv; |
| 250 | v->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=v->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.+vv; |
| 251 | v->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=v->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.+vv*vv; |
| 252 | } |
| 253 | nf=(float)(sx*sy); |
| 254 | |
| 255 | u->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=u->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg./nf; |
| 256 | u->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=sqrtf((u->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.-nf*u->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.*u->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.)/nf); |
| 257 | |
| 258 | v->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=v->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg./nf; |
| 259 | v->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=sqrtf((v->rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.-nf*v->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.*v->avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.)/nf); |
| 260 | |
| 261 | } |
| 262 | |
| 263 | //------------------------------------------------------------ |
| 264 | //statistics of a float_rgba pixel profile |
| 265 | //color: |
| 266 | //0=use rec 601 |
| 267 | //1=use rec 709 |
| 268 | //w,h=size of image |
| 269 | //xz,yy,xk,yk=end points of the profile line |
| 270 | //sir=width of profile in pixels (averaging) |
| 271 | void meriprofcxx . . $ meriprof(77de16fb5c54a3ac).(float_rgbacxx . . $ float_rgba# *s, int w, int h, int xz, int yz, int xk, int yk, int sir, profdatacxx . . $ profdata# *p) |
| 272 | { |
| 273 | int x,y,d,i; |
| 274 | float_rgbacxx . . $ float_rgba# pix; |
| 275 | |
| 276 | d = abscxx . . $ abs(7864480464b09eea).(xk-xz)>abscxx . . $ abs(7864480464b09eea).(yk-yz) ? abscxx . . $ abs(7864480464b09eea).(xk-xz) : abscxx . . $ abs(7864480464b09eea).(yk-yz); |
| 277 | p->ncxx . . $ $anonymous_type_287814115e8eb467_2#n.=d; |
| 278 | for (i=0;i<d;i++) |
| 279 | { |
| 280 | x=xz+(float)i/d*(xk-xz); |
| 281 | y=yz+(float)i/d*(yk-yz); |
| 282 | if ((x>=0)&&(x<w)&&(y>=0)&&(y<h)) |
| 283 | pix=s[w*y+x]; |
| 284 | else |
| 285 | {pix.rcxx . . $ $anonymous_type_287814115e8eb467_0#r.=0.0;pix.gcxx . . $ $anonymous_type_287814115e8eb467_0#g.=0.0;pix.bcxx . . $ $anonymous_type_287814115e8eb467_0#b.=0.0;pix.acxx . . $ $anonymous_type_287814115e8eb467_0#a.=0.0;} |
| 286 | p->rcxx . . $ $anonymous_type_287814115e8eb467_2#r.[i]=pix.rcxx . . $ $anonymous_type_287814115e8eb467_0#r.; |
| 287 | p->gcxx . . $ $anonymous_type_287814115e8eb467_2#g.[i]=pix.gcxx . . $ $anonymous_type_287814115e8eb467_0#g.; |
| 288 | p->bcxx . . $ $anonymous_type_287814115e8eb467_2#b.[i]=pix.bcxx . . $ $anonymous_type_287814115e8eb467_0#b.; |
| 289 | p->acxx . . $ $anonymous_type_287814115e8eb467_2#a.[i]=pix.acxx . . $ $anonymous_type_287814115e8eb467_0#a.; |
| 290 | } |
| 291 | |
| 292 | } |
| 293 | |
| 294 | //----------------------------------------------------- |
| 295 | //c=0 rec 601 c=1 rec 709 |
| 296 | void prof_yuvcxx . . $ prof_yuv(163c2bf12b7c1005).(profdatacxx . . $ profdata# *p, int color) |
| 297 | { |
| 298 | int i; |
| 299 | float wr,wg,wb; |
| 300 | |
| 301 | switch (color) |
| 302 | { |
| 303 | case 0: //CCIR rec 601 |
| 304 | wr=0.299;wg=0.587;wb=0.114; |
| 305 | break; |
| 306 | case 1: //CCIR rec 709 |
| 307 | wr=0.2126;wg=0.7152;wb=0.0722; |
| 308 | break; |
| 309 | default: //unknown color model |
| 310 | // printf("Unknown color model %d\n",color); |
| 311 | break; |
| 312 | } |
| 313 | |
| 314 | for (i=0;i<p->ncxx . . $ $anonymous_type_287814115e8eb467_2#n.;i++) |
| 315 | { |
| 316 | p->ycxx . . $ $anonymous_type_287814115e8eb467_2#y.[i]=wr*p->rcxx . . $ $anonymous_type_287814115e8eb467_2#r.[i]+wg*p->gcxx . . $ $anonymous_type_287814115e8eb467_2#g.[i]+wb*p->bcxx . . $ $anonymous_type_287814115e8eb467_2#b.[i]; |
| 317 | p->ucxx . . $ $anonymous_type_287814115e8eb467_2#u.[i]=p->rcxx . . $ $anonymous_type_287814115e8eb467_2#r.[i]-p->ycxx . . $ $anonymous_type_287814115e8eb467_2#y.[i]; |
| 318 | p->vcxx . . $ $anonymous_type_287814115e8eb467_2#v.[i]=p->bcxx . . $ $anonymous_type_287814115e8eb467_2#b.[i]-p->ycxx . . $ $anonymous_type_287814115e8eb467_2#y.[i]; |
| 319 | } |
| 320 | } |
| 321 | |
| 322 | //--------------------------------------------------------- |
| 323 | //calculates AVG, RMS, MIN, MAX |
| 324 | //for r,g,b,a,y,u,v profiles |
| 325 | void prof_statcxx . . $ prof_stat(3359ee0b8b70859e).(profdatacxx . . $ profdata# *p) |
| 326 | { |
| 327 | int i; |
| 328 | float nf; |
| 329 | |
| 330 | p->srcxx . . $ $anonymous_type_287814115e8eb467_2#sr..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=0.0; p->srcxx . . $ $anonymous_type_287814115e8eb467_2#sr..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=0.0; p->srcxx . . $ $anonymous_type_287814115e8eb467_2#sr..mincxx . . $ $anonymous_type_287814115e8eb467_1#min.=1.0E9; p->srcxx . . $ $anonymous_type_287814115e8eb467_2#sr..maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.=-1.0E9; |
| 331 | p->sgcxx . . $ $anonymous_type_287814115e8eb467_2#sg..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=0.0; p->sgcxx . . $ $anonymous_type_287814115e8eb467_2#sg..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=0.0; p->sgcxx . . $ $anonymous_type_287814115e8eb467_2#sg..mincxx . . $ $anonymous_type_287814115e8eb467_1#min.=1.0E9; p->sgcxx . . $ $anonymous_type_287814115e8eb467_2#sg..maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.=-1.0E9; |
| 332 | p->sbcxx . . $ $anonymous_type_287814115e8eb467_2#sb..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=0.0; p->sbcxx . . $ $anonymous_type_287814115e8eb467_2#sb..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=0.0; p->sbcxx . . $ $anonymous_type_287814115e8eb467_2#sb..mincxx . . $ $anonymous_type_287814115e8eb467_1#min.=1.0E9; p->sbcxx . . $ $anonymous_type_287814115e8eb467_2#sb..maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.=-1.0E9; |
| 333 | p->sacxx . . $ $anonymous_type_287814115e8eb467_2#sa..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=0.0; p->sacxx . . $ $anonymous_type_287814115e8eb467_2#sa..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=0.0; p->sacxx . . $ $anonymous_type_287814115e8eb467_2#sa..mincxx . . $ $anonymous_type_287814115e8eb467_1#min.=1.0E9; p->sacxx . . $ $anonymous_type_287814115e8eb467_2#sa..maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.=-1.0E9; |
| 334 | p->sycxx . . $ $anonymous_type_287814115e8eb467_2#sy..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=0.0; p->sycxx . . $ $anonymous_type_287814115e8eb467_2#sy..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=0.0; p->sycxx . . $ $anonymous_type_287814115e8eb467_2#sy..mincxx . . $ $anonymous_type_287814115e8eb467_1#min.=1.0E9; p->sycxx . . $ $anonymous_type_287814115e8eb467_2#sy..maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.=-1.0E9; |
| 335 | p->sucxx . . $ $anonymous_type_287814115e8eb467_2#su..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=0.0; p->sucxx . . $ $anonymous_type_287814115e8eb467_2#su..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=0.0; p->sucxx . . $ $anonymous_type_287814115e8eb467_2#su..mincxx . . $ $anonymous_type_287814115e8eb467_1#min.=1.0E9; p->sucxx . . $ $anonymous_type_287814115e8eb467_2#su..maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.=-1.0E9; |
| 336 | p->svcxx . . $ $anonymous_type_287814115e8eb467_2#sv..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=0.0; p->svcxx . . $ $anonymous_type_287814115e8eb467_2#sv..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=0.0; p->svcxx . . $ $anonymous_type_287814115e8eb467_2#sv..mincxx . . $ $anonymous_type_287814115e8eb467_1#min.=1.0E9; p->svcxx . . $ $anonymous_type_287814115e8eb467_2#sv..maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.=-1.0E9; |
| 337 | for (i=0;i<p->ncxx . . $ $anonymous_type_287814115e8eb467_2#n.;i++) |
| 338 | { |
| 339 | if (p->rcxx . . $ $anonymous_type_287814115e8eb467_2#r.[i]<p->srcxx . . $ $anonymous_type_287814115e8eb467_2#sr..mincxx . . $ $anonymous_type_287814115e8eb467_1#min.) p->srcxx . . $ $anonymous_type_287814115e8eb467_2#sr..mincxx . . $ $anonymous_type_287814115e8eb467_1#min.=p->rcxx . . $ $anonymous_type_287814115e8eb467_2#r.[i]; |
| 340 | if (p->rcxx . . $ $anonymous_type_287814115e8eb467_2#r.[i]>p->srcxx . . $ $anonymous_type_287814115e8eb467_2#sr..maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.) p->srcxx . . $ $anonymous_type_287814115e8eb467_2#sr..maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.=p->rcxx . . $ $anonymous_type_287814115e8eb467_2#r.[i]; |
| 341 | p->srcxx . . $ $anonymous_type_287814115e8eb467_2#sr..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=p->srcxx . . $ $anonymous_type_287814115e8eb467_2#sr..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.+p->rcxx . . $ $anonymous_type_287814115e8eb467_2#r.[i]; |
| 342 | p->srcxx . . $ $anonymous_type_287814115e8eb467_2#sr..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=p->srcxx . . $ $anonymous_type_287814115e8eb467_2#sr..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.+p->rcxx . . $ $anonymous_type_287814115e8eb467_2#r.[i]*p->rcxx . . $ $anonymous_type_287814115e8eb467_2#r.[i]; |
| 343 | |
| 344 | if (p->gcxx . . $ $anonymous_type_287814115e8eb467_2#g.[i]<p->sgcxx . . $ $anonymous_type_287814115e8eb467_2#sg..mincxx . . $ $anonymous_type_287814115e8eb467_1#min.) p->sgcxx . . $ $anonymous_type_287814115e8eb467_2#sg..mincxx . . $ $anonymous_type_287814115e8eb467_1#min.=p->gcxx . . $ $anonymous_type_287814115e8eb467_2#g.[i]; |
| 345 | if (p->gcxx . . $ $anonymous_type_287814115e8eb467_2#g.[i]>p->sgcxx . . $ $anonymous_type_287814115e8eb467_2#sg..maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.) p->sgcxx . . $ $anonymous_type_287814115e8eb467_2#sg..maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.=p->gcxx . . $ $anonymous_type_287814115e8eb467_2#g.[i]; |
| 346 | p->sgcxx . . $ $anonymous_type_287814115e8eb467_2#sg..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=p->sgcxx . . $ $anonymous_type_287814115e8eb467_2#sg..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.+p->gcxx . . $ $anonymous_type_287814115e8eb467_2#g.[i]; |
| 347 | p->sgcxx . . $ $anonymous_type_287814115e8eb467_2#sg..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=p->sgcxx . . $ $anonymous_type_287814115e8eb467_2#sg..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.+p->gcxx . . $ $anonymous_type_287814115e8eb467_2#g.[i]*p->gcxx . . $ $anonymous_type_287814115e8eb467_2#g.[i]; |
| 348 | |
| 349 | if (p->bcxx . . $ $anonymous_type_287814115e8eb467_2#b.[i]<p->sbcxx . . $ $anonymous_type_287814115e8eb467_2#sb..mincxx . . $ $anonymous_type_287814115e8eb467_1#min.) p->sbcxx . . $ $anonymous_type_287814115e8eb467_2#sb..mincxx . . $ $anonymous_type_287814115e8eb467_1#min.=p->bcxx . . $ $anonymous_type_287814115e8eb467_2#b.[i]; |
| 350 | if (p->bcxx . . $ $anonymous_type_287814115e8eb467_2#b.[i]>p->sbcxx . . $ $anonymous_type_287814115e8eb467_2#sb..maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.) p->sbcxx . . $ $anonymous_type_287814115e8eb467_2#sb..maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.=p->bcxx . . $ $anonymous_type_287814115e8eb467_2#b.[i]; |
| 351 | p->sbcxx . . $ $anonymous_type_287814115e8eb467_2#sb..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=p->sbcxx . . $ $anonymous_type_287814115e8eb467_2#sb..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.+p->bcxx . . $ $anonymous_type_287814115e8eb467_2#b.[i]; |
| 352 | p->sbcxx . . $ $anonymous_type_287814115e8eb467_2#sb..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=p->sbcxx . . $ $anonymous_type_287814115e8eb467_2#sb..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.+p->bcxx . . $ $anonymous_type_287814115e8eb467_2#b.[i]*p->bcxx . . $ $anonymous_type_287814115e8eb467_2#b.[i]; |
| 353 | |
| 354 | if (p->acxx . . $ $anonymous_type_287814115e8eb467_2#a.[i]<p->sacxx . . $ $anonymous_type_287814115e8eb467_2#sa..mincxx . . $ $anonymous_type_287814115e8eb467_1#min.) p->sacxx . . $ $anonymous_type_287814115e8eb467_2#sa..mincxx . . $ $anonymous_type_287814115e8eb467_1#min.=p->acxx . . $ $anonymous_type_287814115e8eb467_2#a.[i]; |
| 355 | if (p->acxx . . $ $anonymous_type_287814115e8eb467_2#a.[i]>p->sacxx . . $ $anonymous_type_287814115e8eb467_2#sa..maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.) p->sacxx . . $ $anonymous_type_287814115e8eb467_2#sa..maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.=p->acxx . . $ $anonymous_type_287814115e8eb467_2#a.[i]; |
| 356 | p->sacxx . . $ $anonymous_type_287814115e8eb467_2#sa..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=p->sacxx . . $ $anonymous_type_287814115e8eb467_2#sa..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.+p->acxx . . $ $anonymous_type_287814115e8eb467_2#a.[i]; |
| 357 | p->sacxx . . $ $anonymous_type_287814115e8eb467_2#sa..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=p->sacxx . . $ $anonymous_type_287814115e8eb467_2#sa..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.+p->acxx . . $ $anonymous_type_287814115e8eb467_2#a.[i]*p->acxx . . $ $anonymous_type_287814115e8eb467_2#a.[i]; |
| 358 | |
| 359 | if (p->ycxx . . $ $anonymous_type_287814115e8eb467_2#y.[i]<p->sycxx . . $ $anonymous_type_287814115e8eb467_2#sy..mincxx . . $ $anonymous_type_287814115e8eb467_1#min.) p->sycxx . . $ $anonymous_type_287814115e8eb467_2#sy..mincxx . . $ $anonymous_type_287814115e8eb467_1#min.=p->ycxx . . $ $anonymous_type_287814115e8eb467_2#y.[i]; |
| 360 | if (p->ycxx . . $ $anonymous_type_287814115e8eb467_2#y.[i]>p->sycxx . . $ $anonymous_type_287814115e8eb467_2#sy..maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.) p->sycxx . . $ $anonymous_type_287814115e8eb467_2#sy..maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.=p->ycxx . . $ $anonymous_type_287814115e8eb467_2#y.[i]; |
| 361 | p->sycxx . . $ $anonymous_type_287814115e8eb467_2#sy..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=p->sycxx . . $ $anonymous_type_287814115e8eb467_2#sy..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.+p->ycxx . . $ $anonymous_type_287814115e8eb467_2#y.[i]; |
| 362 | p->sycxx . . $ $anonymous_type_287814115e8eb467_2#sy..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=p->sycxx . . $ $anonymous_type_287814115e8eb467_2#sy..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.+p->ycxx . . $ $anonymous_type_287814115e8eb467_2#y.[i]*p->ycxx . . $ $anonymous_type_287814115e8eb467_2#y.[i]; |
| 363 | |
| 364 | if (p->ucxx . . $ $anonymous_type_287814115e8eb467_2#u.[i]<p->sucxx . . $ $anonymous_type_287814115e8eb467_2#su..mincxx . . $ $anonymous_type_287814115e8eb467_1#min.) p->sucxx . . $ $anonymous_type_287814115e8eb467_2#su..mincxx . . $ $anonymous_type_287814115e8eb467_1#min.=p->ucxx . . $ $anonymous_type_287814115e8eb467_2#u.[i]; |
| 365 | if (p->ucxx . . $ $anonymous_type_287814115e8eb467_2#u.[i]>p->sucxx . . $ $anonymous_type_287814115e8eb467_2#su..maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.) p->sucxx . . $ $anonymous_type_287814115e8eb467_2#su..maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.=p->ucxx . . $ $anonymous_type_287814115e8eb467_2#u.[i]; |
| 366 | p->sucxx . . $ $anonymous_type_287814115e8eb467_2#su..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=p->sucxx . . $ $anonymous_type_287814115e8eb467_2#su..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.+p->ucxx . . $ $anonymous_type_287814115e8eb467_2#u.[i]; |
| 367 | p->sucxx . . $ $anonymous_type_287814115e8eb467_2#su..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=p->sucxx . . $ $anonymous_type_287814115e8eb467_2#su..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.+p->ucxx . . $ $anonymous_type_287814115e8eb467_2#u.[i]*p->ucxx . . $ $anonymous_type_287814115e8eb467_2#u.[i]; |
| 368 | |
| 369 | if (p->vcxx . . $ $anonymous_type_287814115e8eb467_2#v.[i]<p->svcxx . . $ $anonymous_type_287814115e8eb467_2#sv..mincxx . . $ $anonymous_type_287814115e8eb467_1#min.) p->svcxx . . $ $anonymous_type_287814115e8eb467_2#sv..mincxx . . $ $anonymous_type_287814115e8eb467_1#min.=p->vcxx . . $ $anonymous_type_287814115e8eb467_2#v.[i]; |
| 370 | if (p->vcxx . . $ $anonymous_type_287814115e8eb467_2#v.[i]>p->svcxx . . $ $anonymous_type_287814115e8eb467_2#sv..maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.) p->svcxx . . $ $anonymous_type_287814115e8eb467_2#sv..maxcxx . . $ $anonymous_type_287814115e8eb467_1#max.=p->vcxx . . $ $anonymous_type_287814115e8eb467_2#v.[i]; |
| 371 | p->svcxx . . $ $anonymous_type_287814115e8eb467_2#sv..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=p->svcxx . . $ $anonymous_type_287814115e8eb467_2#sv..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.+p->vcxx . . $ $anonymous_type_287814115e8eb467_2#v.[i]; |
| 372 | p->svcxx . . $ $anonymous_type_287814115e8eb467_2#sv..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=p->svcxx . . $ $anonymous_type_287814115e8eb467_2#sv..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.+p->vcxx . . $ $anonymous_type_287814115e8eb467_2#v.[i]*p->vcxx . . $ $anonymous_type_287814115e8eb467_2#v.[i]; |
| 373 | } |
| 374 | nf=(float)(p->ncxx . . $ $anonymous_type_287814115e8eb467_2#n.); |
| 375 | |
| 376 | p->srcxx . . $ $anonymous_type_287814115e8eb467_2#sr..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=p->srcxx . . $ $anonymous_type_287814115e8eb467_2#sr..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg./nf; |
| 377 | p->srcxx . . $ $anonymous_type_287814115e8eb467_2#sr..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=sqrtf((p->srcxx . . $ $anonymous_type_287814115e8eb467_2#sr..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.-nf*p->srcxx . . $ $anonymous_type_287814115e8eb467_2#sr..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.*p->srcxx . . $ $anonymous_type_287814115e8eb467_2#sr..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.)/nf); |
| 378 | |
| 379 | p->sgcxx . . $ $anonymous_type_287814115e8eb467_2#sg..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=p->sgcxx . . $ $anonymous_type_287814115e8eb467_2#sg..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg./nf; |
| 380 | p->sgcxx . . $ $anonymous_type_287814115e8eb467_2#sg..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=sqrtf((p->sgcxx . . $ $anonymous_type_287814115e8eb467_2#sg..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.-nf*p->sgcxx . . $ $anonymous_type_287814115e8eb467_2#sg..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.*p->sgcxx . . $ $anonymous_type_287814115e8eb467_2#sg..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.)/nf); |
| 381 | |
| 382 | p->sbcxx . . $ $anonymous_type_287814115e8eb467_2#sb..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=p->sbcxx . . $ $anonymous_type_287814115e8eb467_2#sb..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg./nf; |
| 383 | p->sbcxx . . $ $anonymous_type_287814115e8eb467_2#sb..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=sqrtf((p->sbcxx . . $ $anonymous_type_287814115e8eb467_2#sb..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.-nf*p->sbcxx . . $ $anonymous_type_287814115e8eb467_2#sb..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.*p->sbcxx . . $ $anonymous_type_287814115e8eb467_2#sb..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.)/nf); |
| 384 | |
| 385 | p->sacxx . . $ $anonymous_type_287814115e8eb467_2#sa..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=p->sacxx . . $ $anonymous_type_287814115e8eb467_2#sa..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg./nf; |
| 386 | p->sacxx . . $ $anonymous_type_287814115e8eb467_2#sa..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=sqrtf((p->sacxx . . $ $anonymous_type_287814115e8eb467_2#sa..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.-nf*p->sacxx . . $ $anonymous_type_287814115e8eb467_2#sa..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.*p->sacxx . . $ $anonymous_type_287814115e8eb467_2#sa..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.)/nf); |
| 387 | |
| 388 | p->sycxx . . $ $anonymous_type_287814115e8eb467_2#sy..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=p->sycxx . . $ $anonymous_type_287814115e8eb467_2#sy..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg./nf; |
| 389 | p->sycxx . . $ $anonymous_type_287814115e8eb467_2#sy..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=sqrtf((p->sycxx . . $ $anonymous_type_287814115e8eb467_2#sy..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.-nf*p->sycxx . . $ $anonymous_type_287814115e8eb467_2#sy..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.*p->sycxx . . $ $anonymous_type_287814115e8eb467_2#sy..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.)/nf); |
| 390 | |
| 391 | p->sucxx . . $ $anonymous_type_287814115e8eb467_2#su..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=p->sucxx . . $ $anonymous_type_287814115e8eb467_2#su..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg./nf; |
| 392 | p->sucxx . . $ $anonymous_type_287814115e8eb467_2#su..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=sqrtf((p->sucxx . . $ $anonymous_type_287814115e8eb467_2#su..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.-nf*p->sucxx . . $ $anonymous_type_287814115e8eb467_2#su..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.*p->sucxx . . $ $anonymous_type_287814115e8eb467_2#su..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.)/nf); |
| 393 | |
| 394 | p->svcxx . . $ $anonymous_type_287814115e8eb467_2#sv..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.=p->svcxx . . $ $anonymous_type_287814115e8eb467_2#sv..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg./nf; |
| 395 | p->svcxx . . $ $anonymous_type_287814115e8eb467_2#sv..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.=sqrtf((p->svcxx . . $ $anonymous_type_287814115e8eb467_2#sv..rmscxx . . $ $anonymous_type_287814115e8eb467_1#rms.-nf*p->svcxx . . $ $anonymous_type_287814115e8eb467_2#sv..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.*p->svcxx . . $ $anonymous_type_287814115e8eb467_2#sv..avgcxx . . $ $anonymous_type_287814115e8eb467_1#avg.)/nf); |
| 396 | |
| 397 | } |
| 398 |