Lines Matching refs:patch

254     GfxPatch patch;
255 memset(&patch, 0, sizeof(patch)); // quick-n-dirty
256 return patch;
1997 void PdfParser::fillPatch(GfxPatch *patch, int nComps, int depth) {
2012 if (abs(patch->color[0][0].c[i] - patch->color[0][1].c[i])
2014 abs(patch->color[0][1].c[i] - patch->color[1][1].c[i])
2016 abs(patch->color[1][1].c[i] - patch->color[1][0].c[i])
2018 abs(patch->color[1][0].c[i] - patch->color[0][0].c[i])
2022 color.c[i] = GfxColorComp(patch->color[0][0].c[i]);
2026 state->moveTo(patch->x[0][0], patch->y[0][0]);
2027 state->curveTo(patch->x[0][1], patch->y[0][1],
2028 patch->x[0][2], patch->y[0][2],
2029 patch->x[0][3], patch->y[0][3]);
2030 state->curveTo(patch->x[1][3], patch->y[1][3],
2031 patch->x[2][3], patch->y[2][3],
2032 patch->x[3][3], patch->y[3][3]);
2033 state->curveTo(patch->x[3][2], patch->y[3][2],
2034 patch->x[3][1], patch->y[3][1],
2035 patch->x[3][0], patch->y[3][0]);
2036 state->curveTo(patch->x[2][0], patch->y[2][0],
2037 patch->x[1][0], patch->y[1][0],
2038 patch->x[0][0], patch->y[0][0]);
2044 xx[i][0] = patch->x[i][0];
2045 yy[i][0] = patch->y[i][0];
2046 xx[i][1] = 0.5 * (patch->x[i][0] + patch->x[i][1]);
2047 yy[i][1] = 0.5 * (patch->y[i][0] + patch->y[i][1]);
2048 xxm = 0.5 * (patch->x[i][1] + patch->x[i][2]);
2049 yym = 0.5 * (patch->y[i][1] + patch->y[i][2]);
2050 xx[i][6] = 0.5 * (patch->x[i][2] + patch->x[i][3]);
2051 yy[i][6] = 0.5 * (patch->y[i][2] + patch->y[i][3]);
2058 xx[i][7] = patch->x[i][3];
2059 yy[i][7] = patch->y[i][3];
2104 patch00.color[0][0].c[i] = patch->color[0][0].c[i];
2105 patch00.color[0][1].c[i] = (patch->color[0][0].c[i] +
2106 patch->color[0][1].c[i]) / 2;
2108 patch01.color[0][1].c[i] = patch->color[0][1].c[i];
2109 patch01.color[1][1].c[i] = (patch->color[0][1].c[i] +
2110 patch->color[1][1].c[i]) / 2;
2112 patch11.color[1][1].c[i] = patch->color[1][1].c[i];
2113 patch11.color[1][0].c[i] = (patch->color[1][1].c[i] +
2114 patch->color[1][0].c[i]) / 2;
2116 patch10.color[1][0].c[i] = patch->color[1][0].c[i];
2117 patch10.color[0][0].c[i] = (patch->color[1][0].c[i] +
2118 patch->color[0][0].c[i]) / 2;