Home | History | Annotate | Download | only in main

Lines Matching refs:vec

290 fxt1_bestcol (GLfloat vec[][MAX_COMP], GLint nv,
299 e += (vec[j][i] - input[i]) * (vec[j][i] - input[i]);
312 fxt1_worst (GLfloat vec[MAX_COMP],
321 e += (vec[i] - input[k][i]) * (vec[i] - input[k][i]);
364 fxt1_choose (GLfloat vec[][MAX_COMP], GLint nv,
375 vec[j][i] = input[m][i];
435 vec[j][i] = (GLfloat)input[hist[j].idx][i];
440 vec[j][i] = vec[0][i];
448 vec[j][i] = ((nv - 1 - j) * input[minCol][i] + j * input[maxCol][i] + (nv - 1) / 2) / (GLfloat)(nv - 1);
458 fxt1_lloyd (GLfloat vec[][MAX_COMP], GLint nv,
474 * vec[][MAX_COMP] initial vectors and resulting colors
477 * nc number of components in input / vec
505 GLfloat e = (vec[j][0] - input[k][0]) * (vec[j][0] - input[k][0]) +
506 (vec[j][1] - input[k][1]) * (vec[j][1] - input[k][1]) +
507 (vec[j][2] - input[k][2]) * (vec[j][2] - input[k][2]);
509 e += (vec[j][3] - input[k][3]) * (vec[j][3] - input[k][3]);
517 GLint best = fxt1_bestcol(vec, nv, input[k], nc, &err);
542 vec[j][i] = div * sum[j][i];
545 /* this vec has no samples or is identical with a previous vec */
546 GLint worst = fxt1_worst(vec[j], input, nc, n);
548 vec[j][i] = input[worst][i];
564 vec[MAX_VECT][MAX_COMP];
569 if (fxt1_choose(vec, n_vect, input, n_comp, N_TEXELS) != 0) {
570 fxt1_lloyd(vec, n_vect, input, n_comp, N_TEXELS);
578 FX64_OR32(hi, (GLuint)(vec[j][i] / 8.0F));
587 lohi |= fxt1_bestcol(vec, n_vect, input[k], n_comp);
592 lolo |= fxt1_bestcol(vec, n_vect, input[k], n_comp);
606 GLfloat vec[MAX_VECT][MAX_COMP];
613 vec[n_vect][i] = 0;
617 if (fxt1_choose(vec, n_vect, reord, n_comp, n) != 0) {
618 fxt1_lloyd(vec, n_vect, reord, n_comp, n);
625 FX64_OR32(hi, (GLuint)(vec[j][ACOMP] / 8.0F));
631 FX64_OR32(hi, (GLuint)(vec[j][i] / 8.0F));
640 lohi |= fxt1_bestcol(vec, n_vect + 1, input[k], n_comp);
645 lolo |= fxt1_bestcol(vec, n_vect + 1, input[k], n_comp);
658 GLfloat vec[1 + 1 + 1][MAX_COMP]; /* 1.5 extrema for each sub-block */
746 vec[0][i] = tv[1 - v1][i];
747 vec[1][i] = (tv[v1][i] * sumL + tv[v2][i] * sumR) / (sumL + sumR);
748 vec[2][i] = tv[5 - v2][i];
756 MAKEIVEC(n_vect, n_comp, iv, b, vec[0], vec[1]);
776 MAKEIVEC(n_vect, n_comp, iv, b, vec[2], vec[1]);
796 FX64_OR32(hi, (GLuint)(vec[j][ACOMP] / 8.0F));
802 FX64_OR32(hi, (GLuint)(vec[j][i] / 8.0F));
891 GLubyte vec[2 * 2][MAX_COMP]; /* 2 extrema for each sub-block */
948 vec[0][i] = 0;
949 vec[1][i] = 0;
954 vec[0][i] = input[minColL][i];
955 vec[1][i] = input[maxColL][i];
959 MAKEIVEC(n_vect, n_comp, iv, b, vec[0], vec[1]);
982 vec[2][i] = 0;
983 vec[3][i] = 0;
988 vec[2][i] = input[minColR][i];
989 vec[3][i] = input[maxColR][i];
993 MAKEIVEC(n_vect, n_comp, iv, b, vec[2], vec[3]);
1011 FX64_MOV32(hi, 9 | (vec[3][GCOMP] & 4) | ((vec[1][GCOMP] >> 1) & 2)); /* chroma = "1" */
1016 FX64_OR32(hi, vec[j][i] >> 3);
1029 GLubyte vec[2 * 2][MAX_COMP]; /* 2 extrema for each sub-block */
1117 vec[0][i] = input[minColL][i];
1118 vec[1][i] = input[maxColL][i];
1122 MAKEIVEC(n_vect, n_comp, iv, b, vec[0], vec[1]);
1136 if ((GLint)((lolo >> 1) & 1) != (((vec[1][GCOMP] ^ vec[0][GCOMP]) >> 2) & 1)) {
1138 vec[1][i] = input[minColL][i];
1139 vec[0][i] = input[maxColL][i];
1150 vec[2][i] = input[minColR][i];
1151 vec[3][i] = input[maxColR][i];
1155 MAKEIVEC(n_vect, n_comp, iv, b, vec[2], vec[3]);
1169 if ((GLint)((lohi >> 1) & 1) != (((vec[3][GCOMP] ^ vec[2][GCOMP]) >> 2) & 1)) {
1171 vec[3][i] = input[minColR][i];
1172 vec[2][i] = input[maxColR][i];
1180 FX64_MOV32(hi, 8 | (vec[3][GCOMP] & 4) | ((vec[1][GCOMP] >> 1) & 2)); /* chroma = "1" */
1185 FX64_OR32(hi, vec[j][i] >> 3);